Jump to content

Next Order button White Screen


Recommended Posts

Hello everyone.

 

After the recent update I noticed that when I go to my last order and I click the Next order button I get the following error

Fatal error: Call to a member function hasBeenShipped() on a non-object in /home/***/public_html/****/controllers/admin/AdminOrdersController.php on line 261

The page is white.

 

The order button link is as following

 

https://rebeltech.co.za/****/****1/index.php?controller=AdminOrders&token=79e336f39cacfsd8dccb939e93ec50f93&vieworder&id_order=0

 

Any idea why it is not returning to either the order page (I assume that is the default route) or have the button greyed out.

 

Thanks

 

 

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Was having the same issue. Looks like a bug

 

Here's a fix:

In admin/themes/default/template/controllers/orders/helpers/view/view.tpl

 

Replace

						<div class="btn-group">
							<a class="btn btn-default" href="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}&vieworder&id_order={$previousOrder|intval}">
								<i class="icon-backward"></i>
							</a>
							<a class="btn btn-default" href="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}&vieworder&id_order={$nextOrder|intval}">
								<i class="icon-forward"></i>
							</a>
						</div>

With

<div class="btn-group">
<a class="btn btn-default{if !$previousOrder} disabled{/if}" href="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}&vieworder&id_order={$previousOrder|intval}">
<i class="icon-backward"></i>
</a>
<a class="btn btn-default{if !$nextOrder} disabled{/if}" href="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}&vieworder&id_order={$nextOrder|intval}">
<i class="icon-forward"></i>
</a>
</div>
Link to comment
Share on other sites

×
×
  • Create New...