Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mister_woyng

Ajax Attribute Manager and PHP8

Recommended Posts

Hello,

after updating to PHP8 the Attribute Manager throws errors, like this one:
 

Quote

Fatal error:  Uncaught Error: Non-static method stopDirectAccess::authorise() cannot be called statically in /is/htdocs/wp1177774_IEGJAXJ88H/www/OSC/catalog/admin/attributeManager/includes/attributeManagerPlaceHolder.inc.php:17

I learned that this is a new error in PHP8, and, not being so proficient in advanced OOP, tried a workaround...from

Quote

stopDirectAccess::authorise(AM_SESSION_VALID_INCLUDE);

to

Quote

$stop = new stopDirectAccess();
$stop->authorise(AM_SESSION_VALID_INCLUDE);

but there is still an error.

Is there a PHP8-Version of the Attribute Manager? If not...what can I do to fix this?

Thanks a lot!

Share this post


Link to post
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

×