Jump to content

[RESOLU] Erreur fatal sur l'export commande


Recommended Posts

J'ai upgradé de la v 1.5.6.0 à la 1.6.0.9 et je me retrouve face à une erreur fatal lorsque j'essaye d'exporter mes commande.

 

L'erreur que j'ai est:

[Sat Aug 30 19:30:34 2014] [error] [client 192.168.1.104] PHP Notice:  Undefined index: link in /var/www/html/p1609/cache/smarty/compile/83/40/01/83400146417b1b707fbd5a6a1dba3bd58c8c58e0.file._print_pdf_icon.tpl.php on line 34, referer: http://192.168.1.104/p1609/control/index.php?controller=AdminOrders&token=97529016afe362e0d2fff4d72ac42726
[Sat Aug 30 19:30:34 2014] [error] [client 192.168.1.104] PHP Notice:  Trying to get property of non-object in /var/www/html/p1609/cache/smarty/compile/83/40/01/83400146417b1b707fbd5a6a1dba3bd58c8c58e0.file._print_pdf_icon.tpl.php on line 34, referer: http://192.168.1.104/p1609/control/index.php?controller=AdminOrders&token=97529016afe362e0d2fff4d72ac42726
[Sat Aug 30 19:30:34 2014] [error] [client 192.168.1.104] PHP Fatal error:  Call to a member function getAdminLink() on a non-object in /var/www/html/p1609/cache/smarty/compile/83/40/01/83400146417b1b707fbd5a6a1dba3bd58c8c58e0.file._print_pdf_icon.tpl.php on line 34, referer: http://192.168.1.104/p1609/control/index.php?controller=AdminOrders&token=97529016afe362e0d2fff4d72ac42726

correspondant à :

<a class="btn btn-default" target="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), ENT_QUOTES, 'UTF-8', true);?>
&submitAction=generateInvoicePDF&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id;?>

quelqu'un as t il déjà été confronté à cette erreur?

 

Edited by jd440 (see edit history)
Link to comment
Share on other sites

Bonjour

 

Faites ça :

 

sur la 1.5.x 1.6.x  /cache/smarty/cache & /cache/smarty/compile
Supprimer tous les fichiers et dossiers sauf le index.php s'il y est.
 

Faites aussi CTRL+F5  pour vider le cache du navigateur.

Normalement l'erreur disparaitra.

Edited by Oron (see edit history)
Link to comment
Share on other sites

Je te remercie @Oron.

 

Malheureusement déjà testé  sans succès.

Comme les désactivation des surcharges.

 

Finalement sous Prestashop ca deviens un reflexe, mais dans ce cas malheureusement sans succès.

Link to comment
Share on other sites

oui en local sous LAMP.

sachant que sur ce serveur local j'ai 4 version installé

  • 1.5.6.0 vierge(installation neuve)
  • 1.5.6.0 (copié du serveur prod)
  • 1.6.0.9 vierge (installation neuve)
  • 1.6.0.9 upgradé depuis la 1.5.6.0

Et je n'ai un soucis que sous la dernière version.

 

 

Edit:

Mais j'ai l'impression que la V1.6.0.9 soit buggé de ce coté là.

 même sur un version vierge, il m'est impossible

 

* concernant mon pb d'erreur fatal j'ai réussit à la résoudre en overridant

controller/admin/AdminOrdersController.php par:

public function printPDFIcons($id_order, $tr)
	{
		return;
	}

Mais d'ailleurs je ne comprenant même pas pourquoi cette fonction est appelé à l'export?

Edited by jd440 (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...