agusbar Posted January 30, 2013 Share Posted January 30, 2013 (edited) hola uso la version 1.5.3.1 cuando entro en Pedidos / Facturas, me da este error arriba del todo aunque se visualiza bien. Warning : array_merge() [ function.array-merge ]: Argument #2 is not an array in /usr/home/1r7AsTb02o8P/midominio.es/web/controllers/admin/AdminInvoicesController.php on line 266 Warning : Invalid argument supplied for foreach() in /usr/home/1r7AsTb02o8P/midominio.es/web/controllers/admin/AdminInvoicesController.php on line 266 y si le doy a "generar archivo pdf".... pantalla en blanco con este error : Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /usr/home/1r7AsTb02o8P/midominio.es/web/controllers/admin/AdminInvoicesController.php on line 266 Warning: Invalid argument supplied for foreach() in /usr/home/1r7AsTb02o8P/midominio.es/web/controllers/admin/AdminInvoicesController.php on line 266 Warning: Cannot modify header information - headers already sent by (output started at /usr/home/1r7AsTb02o8P/midominio.es/web/controllers/admin/AdminInvoicesController.php:266) in/usr/home/1r7AsTb02o8P/midominio.es/web/classes/Tools.php on line 141 no tengo ni idea a que se debe... gracias y saludos Edited March 17, 2013 by agusbar (see edit history) Link to comment Share on other sites More sharing options...
mlarbi Posted March 8, 2013 Share Posted March 8, 2013 estoy igual que tu, alguien tiene idea de que es esto? Link to comment Share on other sites More sharing options...
mlarbi Posted March 8, 2013 Share Posted March 8, 2013 creo que es esto, buscando por allí he encontrado esto: Hay que editar el fichero /controllers/admin/AdminInvoicesController.php y modificar la linea line 266: foreach (array_merge($templates_default, $templates_override) as $template) should be replaced: foreach (array_merge($templates_default, (array)$templates_override) as $template Link to comment Share on other sites More sharing options...
mlarbi Posted March 8, 2013 Share Posted March 8, 2013 perdón falta un ) al final, quedaría así: y modificar la linea line 266: foreach (array_merge($templates_default, $templates_override) as $template) should be replaced: foreach (array_merge($templates_default, (array)$templates_override) as $template) Lo he probado y funciona perfectamente Si te ha servido pon [solucionado] en el título de tu topic. Un saludo 1 Link to comment Share on other sites More sharing options...
agusbar Posted March 17, 2013 Author Share Posted March 17, 2013 muchas gracias si funciona... perdon por no responder antes... Link to comment Share on other sites More sharing options...
hermosilla Posted May 27, 2013 Share Posted May 27, 2013 Gracias mlarbi por tu aporte porque a mí también me ha funcionado perfectamente. Un saludo. Link to comment Share on other sites More sharing options...
Recommended Posts