Jump to content

Fatal error Module.php(1361) : eval()'d code


Recommended Posts

Hola, 

Sin tocar nada de repente no me deja abrir la pestana modulos. Se pone en blanco con este mensaje:

[PrestaShop] Fatal error in module file :/home/grecobar/public_html/classes/module/Module.php(1361) : eval()'d code:
'continue' not in the 'loop' or 'switch' context

 

en la linea 1361 encuentro esto:

   // If (false) is a trick to not load the class with "eval".
                    // This way require_once will works correctly
                    if (eval('if (false){    '.$file."\n".' }') !== false) {
                        require_once(_PS_MODULE_DIR_.$module.'/'.$module.'.php');
                    } else {
                        $errors[] = sprintf(Tools::displayError('%1$s (parse error in %2$s)'), $module, substr($file_path, strlen(_PS_ROOT_DIR_)));
                    }
                }

 

Alguien sabe como solucionarlo, muchas gracias de antemano.

 

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...