Jump to content

Cant access one of my modules on the backend


Recommended Posts

When i try to access a module for database stock update i get this error in the error log.

"The length of property Combination->location is currently 128 chars. It must be between 0 and 64 chars. at line 1004 in file classes/ObjectModel.php"

 

I can access the module interface when debuing is off but it wont do any stock updates, thats when i get the above error in the prestashop error log.

There are no PHP errors in PHP error log, however apache error log displays this:

[Tue Oct 22 15:25:08.636655 2019] [proxy_fcgi:error] [pid 29431:tid 140089270793984] [client 162.158.18.127:39954] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: id_csvelem in /var/www/xxx.xxx/html/src/Adapter/Routing/LegacyHelperLinkBuilder.php on line 74
PHP message: PHP Notice:  Undefined index: id_csvelem in /var/www/xxx.xxx/html/src/Adapter/Routing/LegacyHelperLinkBuilder.php on line 74

Any ideas?

Link to comment
Share on other sites

Ok managed to get the module to work while debug mode on, applied a github fix, however, still cant update the stock count with the module, still get error 

[PrestaShopException]

The length of property Combination->location is currently 128 chars. It must be between 0 and 64 chars.
at line 1004 in file classes/ObjectModel.php

999. } 1000. 1001. $message = $this->validateField($field, $this->$field); 1002. if ($message !== true) { 1003. if ($die) { 1004. throw new PrestaShopException($message); 1005. } 1006. 1007. return $error_return ? $message : false; 1008. } 1009. }

Edited by eynos (see edit history)
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...