vqmod / vqmod

vQmod official repository
424 stars 167 forks source link

v2.6.6 OpenCart issue (Use of "self" in callables is deprecated) #180

Open mehtaman opened 11 months ago

mehtaman commented 11 months ago

Error logs in OpenCart show the following error: PHP Unknown: Use of "self" in callables is deprecated

Web Host using PHP 8.2 OpenCart version 4.0.2.3

Can the build be updated please?

JAY6390 commented 11 months ago

@mehtaman It looks like fixing this requires editing vqmod.php and searching/replacing all self:: with self::class:: from what I can find online.

Can you please test this on your installation and check if this fixes the issue? I don't have a php 8.2 install to test on unfortunately

once confirmed, I can make the necessary update

EnvyPhD commented 7 months ago

I stumbled upon this exact problem. Trying your fix above does not fix the problem, @JAY6390.

sgmmaffe commented 6 months ago

i have same issue with opencart 3.0.3.9 - vqmod 2.6.6. - php 8.2

osworx commented 6 months ago

Simply use that fix here: https://github.com/vqmod/vqmod/pull/177 A shame that the creators of VQMod do not fix that after that long time!