Jump to content

module error after upgrade to 1.6.0.12


Recommended Posts

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;

Link to comment
Share on other sites

  • 4 weeks later...

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

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