Jump to content

error en back office en FACTURAS [solucionado]


Recommended Posts

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 by agusbar (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

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

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More