Jump to content

Module manager


Recommended Posts

  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

  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

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

  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

  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

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