duchoprog Posted February 27, 2024 Share Posted February 27, 2024 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, 2024 Share Posted February 28, 2024 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, 2024 Author Share Posted February 29, 2024 On 2/28/2024 at 11:39 AM, Mr Rick said: Hello, Did you installed any third-party modules, or using just the default ones which comes with PrestaShop. Expand 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, 2024 Share Posted February 29, 2024 On 2/27/2024 at 5:43 PM, 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] Expand 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, 2024 Share Posted February 29, 2024 On 2/29/2024 at 2:23 PM, caovillanueva said: Same problem here, in \src\Core\Module\ModuleRepository.php (line 254) Expand 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, 2024 Share Posted February 29, 2024 On 2/29/2024 at 2:47 PM, Nickz said: You need to give details. Was an upadate done in the past, the shop version, module names, the theme all that matters. Expand 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, 2024 Share Posted February 29, 2024 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, 2024 Share Posted March 1, 2024 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, 2024 Share Posted March 1, 2024 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, 2024 Share Posted March 1, 2024 On 3/1/2024 at 6:37 PM, 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 Expand 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, 2024 Share Posted March 4, 2024 On 3/1/2024 at 9: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. Expand 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, 2024 Share Posted March 4, 2024 On 3/4/2024 at 6:02 PM, 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 Expand 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