Niko 81 Posted November 28, 2018 Share Posted November 28, 2018 Hola a todos! Espero que por aquí me podéis ayudar! Es que llevo bastante tiempo como no puedo acceder en los módulos de Prestashop 1.6.1.20 He hablado varias veces con los chicos del alojamiento y me dicen que hay algún fallo en la programación. me han enviado un email con los errores que tengo y no tengo ninguna idea como solucionarlo. Esto son los errores: [28-Nov-2018 17:55:37 Europe/Madrid] PHP Warning: Error while sending QUERY packet. PID=22131 in /usr/home/tutiendacreativa.com/web/classes/db/DbPDO.php on line 134 [28-Nov-2018 17:12:54 Europe/Madrid] PHP Warning: unlink(/usr/home/tutiendacreativa.com/web/config/xml/untrusted_modules_list.xml): No such file or directory in /usr/home/tutiendacreativa.com/web/classes/Tools.php on line 982 [28-Nov-2018 12:44:09 Europe/Madrid] PHP Deprecated: Non-static method PaypalPlusPui::getByIdOrder() should not be called statically, assuming $this from incompatible context in /usr/home/tutiendacreativa.com/web/modules/paypal/paypal.php on line 2625 [28-Nov-2018 07:44:53 Europe/Madrid] PHP Warning: scandir(): (errno 2): No such file or directory in /usr/home/tutiendacreativa.com/web/classes/Media.php on line 628 [28-Nov-2018 05:35:33 Europe/Madrid] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/home/tutiendacreativa.com/web/tools/smarty/plugins/modifier.escape.php on line 40 [28-Nov-2018 06:03:58 Europe/Madrid] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 A ver si alguien me puede ayudar? Link to comment Share on other sites More sharing options...
Rolige Posted November 29, 2018 Share Posted November 29, 2018 Hola: Los errores que indican al parecer no estan relacionados directamente con no poder acceder a la pagina de modulos. La causa mas probable es un modulo con un error de programacion el cual causa que no se pueda cargar dicha pagina. Para identificar de que modulo se trata y eliminarlo tienes que activar el modo debug de Prestashop en tu tienda (en PS 1.6.x hay que hacer directamente mediante FTP o editando el fichero en tu cPanel). Luego de activo ya te saldran mas detalles sobre el error y te dará pistas sobre que modulo es el causando del problema para que puedas eliminarlo. Saludos 1 Link to comment Share on other sites More sharing options...
Niko 81 Posted November 30, 2018 Author Share Posted November 30, 2018 (edited) Hola Rolige, Gracias por contestarme. He activado el modo debug y me ha salido lo siguiente: Notice: Undefined index: nbcusthtml in /usr/home/tutiendacreativa.com/web/modules/leotempcp/classes/widget/customercarousel.php on line 82 Notice: Undefined index: auto_play in /usr/home/tutiendacreativa.com/web/modules/leotempcp/classes/widget/customercarousel.php on line 91 Notice: Undefined index: startSlide in /usr/home/tutiendacreativa.com/web/modules/leotempcp/classes/widget/customercarousel.php on line 96 Alguna idea como puedo corregirlo? public function renderContent( $args, $setting ){ $header = ''; $content = ''; $cs = array(); $languageID = Context::getContext()->language->id; for( $i=1; $i<=$setting['nbcusthtml']; $i++ ){ $title = isset($setting['title_'.$i."_".$languageID])?$setting['title_'.$i."_".$languageID]: ""; $header = isset($setting['header_'.$i."_".$languageID])?$setting['header_'.$i."_".$languageID]: ""; if(!empty($header) && !empty($title)) { $content = isset($setting['content_'.$i."_".$languageID])?$setting['content_'.$i."_".$languageID]: ""; $cs[] = array( 'title' => trim($title), 'header'=> trim($header), 'content' => trim($content) ); } } if($setting['auto_play']){ $setting['interval'] = (isset($setting['interval'])) ? (int)($setting['interval']) : 4000; }else{ $setting['interval'] = "false"; } $setting['startSlide'] = ($setting['startSlide']) ? $setting['startSlide'] : "0"; $setting['customercarousel'] = $cs; $setting['id'] = rand()+count($cs); $output = array('type'=>'customercarousel','data' => $setting ); return $output; } } Edited November 30, 2018 by nikitran81 (see edit history) Link to comment Share on other sites More sharing options...
Rolige Posted December 3, 2018 Share Posted December 3, 2018 Hola: Substituye $setting['auto_play'] por isset($setting['auto_play']) && $setting['auto_play'] Lo mismo con $setting['startSlide'] isset($setting['startSlide']) && $setting['startSlide'] Saludos 1 Link to comment Share on other sites More sharing options...
Niko 81 Posted December 3, 2018 Author Share Posted December 3, 2018 Un parte esta solucionado El error en la linea 91 ya esta! Sigo con los errores en las lineas 96 y 82(las lineas en color AZUL) for( $i=1; $i<=$setting['nbcusthtml']; $i++ ){ $title = isset($setting['title_'.$i."_".$languageID])?$setting['title_'.$i."_".$languageID]: ""; $header = isset($setting['header_'.$i."_".$languageID])?$setting['header_'.$i."_".$languageID]: ""; if(!empty($header) && !empty($title)) { $content = isset($setting['content_'.$i."_".$languageID])?$setting['content_'.$i."_".$languageID]: ""; $cs[] = array( 'title' => trim($title), 'header'=> trim($header), 'content' => trim($content) ); } } if(isset($setting['auto_play'])){ $setting['interval'] = (isset($setting['interval'])) ? (int)($setting['interval']) : 4000; }else{ $setting['interval'] = "false"; } $setting['startSlide'] = ($setting['startSlide']) ? ($setting['startSlide']) : "0"; $setting['customercarousel'] = $cs; $setting['id'] = rand()+count($cs); $output = array('type'=>'customercarousel','data' => $setting ); return $output; } } ?> Link to comment Share on other sites More sharing options...
Niko 81 Posted December 15, 2018 Author Share Posted December 15, 2018 Por favor, no me puede ayudar alguien?! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now