Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mehtaman opened this issue Oct 3, 2023 · 4 comments
Open

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

mehtaman opened this issue Oct 3, 2023 · 4 comments

Comments

@mehtaman
Copy link

mehtaman commented Oct 3, 2023

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
Copy link
Contributor

JAY6390 commented Oct 4, 2023

@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
Copy link

EnvyPhD commented Jan 31, 2024

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

@sgmmaffe
Copy link

sgmmaffe commented Mar 2, 2024

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

@osworx
Copy link

osworx commented Mar 2, 2024

Simply use that fix here: #177
A shame that the creators of VQMod do not fix that after that long time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants