nortom Posted February 23, 2015 Share Posted February 23, 2015 If i want to acces modules i'm getting this error. I deleted every cache. Do someone the fix? [PrestaShopException]Module statsOrderProfit is not a valid module name at line 1461 in file classes/module/Module.php 1456. if (is_file(_PS_MODULE_DIR_.$name))1457. continue; 1458. elseif (is_dir(_PS_MODULE_DIR_.$name.DIRECTORY_SEPARATOR) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) 1459. { 1460. if (!Validate::isModuleName($name)) 1461. throw new PrestaShopException(sprintf('Module %s is not a valid module name', $name)); 1462. $module_list[] = $name; 1463. } 1464. } 1465. 1466. return $module_list; ModuleCore::getModulesDirOnDisk - [line 1149 - classes/module/Module.php] ModuleCore::getModulesOnDisk - [line 1394 - controllers/admin/AdminModulesController.php] - [3 Arguments] AdminModulesControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 175 - override/classes/controller/Controller.php] Controller->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
nortom Posted February 23, 2015 Author Share Posted February 23, 2015 Problem solved. I have delete statsOrderProfit module in my ftp manager and it works. Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 24, 2015 Share Posted February 24, 2015 I got this error too with another module, not sure why some modules are throwing this error after the update... Link to comment Share on other sites More sharing options...
veetouine Posted February 24, 2015 Share Posted February 24, 2015 Same here with a module having uppercases in its name. I removed uppercases and it worked (in the directory name and xml config files) Link to comment Share on other sites More sharing options...
dgmassimo Posted March 1, 2015 Share Posted March 1, 2015 Hi all, well I have the same problem with the gsitemap module I wanted to know how you solved it!! I didn't understand the last intervention to solve this problem. Thank you Link to comment Share on other sites More sharing options...
HTKVCA Posted March 25, 2015 Share Posted March 25, 2015 Problem solved. I have delete statsOrderProfit module in my ftp manager and it works. I think the above is no the best answer because this error not only effects on the statsOrderProfit module but also many other modules. this error will only show on the PS 1.6.0.12 and 1.6.0.13. The cause of this error : The module name now has to conform to the following... Lowercase letter from a to z, Figures from 0 to 9, Symbol “_” => so, any uppercase characters of the statsOrderProfit and other modules will show error. The solution: I have asked the customer service of statsOrderProfit and get the result here If nortom need statsOrderProfit you can get new version I have modified myself as folowing statsorderprofit.zip 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