duchoprog Posted February 27 Share Posted February 27 trying to enter module manager in prestashop i get this: Oops... looks like an unexpected error occurred. get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, bool given [TypeError 0] Link to comment Share on other sites More sharing options...
Mr Rick Posted February 28 Share Posted February 28 Hello, Did you installed any third-party modules, or using just the default ones which comes with PrestaShop. Link to comment Share on other sites More sharing options...
duchoprog Posted February 29 Author Share Posted February 29 23 hours ago, Mr Rick said: Hello, Did you installed any third-party modules, or using just the default ones which comes with PrestaShop. I was trying to create a module, that was causing the error. Thanks Mr Rick Link to comment Share on other sites More sharing options...
caovillanueva Posted February 29 Share Posted February 29 On 2/27/2024 at 11:43 AM, duchoprog said: trying to enter module manager in prestashop i get this: Oops... looks like an unexpected error occurred. get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, bool given [TypeError 0] Same problem here, in \src\Core\Module\ModuleRepository.php (line 254) Link to comment Share on other sites More sharing options...
Nickz Posted February 29 Share Posted February 29 1 hour ago, caovillanueva said: Same problem here, in \src\Core\Module\ModuleRepository.php (line 254) You need to give details. Was an upadate done in the past, the shop version, module names, the theme all that matters. Link to comment Share on other sites More sharing options...
caovillanueva Posted February 29 Share Posted February 29 3 minutes ago, Nickz said: You need to give details. Was an upadate done in the past, the shop version, module names, the theme all that matters. Prestashop 8.1.2 PHP ver. 8.1 TypeError HTTP 500 Internal Server Error get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, bool given foreach (self::MODULE_ATTRIBUTES as $attribute) { if (isset($tmpModule->{$attribute})) { $attributes[$attribute] = $tmpModule->{$attribute}; } } $attributes['parent_class'] = get_parent_class($tmpModule); $attributes['is_paymentModule'] = is_subclass_of($tmpModule, 'PaymentModule'); $attributes['is_configurable'] = method_exists($tmpModule, 'getContent'); } return $attributes; Link to comment Share on other sites More sharing options...
Nickz Posted February 29 Share Posted February 29 For a error 500 look at the errorlog in the server, usually at var/log/apache2 Link to comment Share on other sites More sharing options...
caovillanueva Posted March 1 Share Posted March 1 PHP Fatal error: Uncaught ErrorException: Warning: Undefined property: Symfony\Component\VarDumper\Caster\CutStub::$cache_locking in \vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:737 Stack trace: #0 [internal function]: Smarty_Internal_Template->__destruct() #1 {main} thrown in ************\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php on line 737 Link to comment Share on other sites More sharing options...
caovillanueva Posted March 1 Share Posted March 1 Apparently this is the bug: https://github.com/PrestaShop/PrestaShop/issues/30147 Link to comment Share on other sites More sharing options...
Nickz Posted March 1 Share Posted March 1 3 hours ago, caovillanueva said: PHP Fatal error: Uncaught ErrorException: Warning: Undefined property: Symfony\Component\VarDumper\Caster\CutStub::$cache_locking in \vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php:737 This could shed some light onto it: https://www.slingacademy.com/article/fixing-php-notice-undefined-property/ Did you update your shop? If yes revert the update and go to a lower php version. Link to comment Share on other sites More sharing options...
caovillanueva Posted March 4 Share Posted March 4 On 3/1/2024 at 3:14 PM, Nickz said: This could shed some light onto it: https://www.slingacademy.com/article/fixing-php-notice-undefined-property/ Did you update your shop? If yes revert the update and go to a lower php version. No, its a fresh copy, i get the same error using PS 8.1.4 and using the theme Warehouse. LEt me try with classic Link to comment Share on other sites More sharing options...
caovillanueva Posted March 4 Share Posted March 4 2 minutes ago, caovillanueva said: No, its a fresh copy, i get the same error using PS 8.1.4 and using the theme Warehouse. LEt me try with classic Nevermind, in my case its was a custom module issue., thanks for your help anyway 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