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

RefreshFirebaseTokens error #421

Open
Stampa-Stampa opened this issue Jul 19, 2024 · 3 comments
Open

RefreshFirebaseTokens error #421

Stampa-Stampa opened this issue Jul 19, 2024 · 3 comments

Comments

@Stampa-Stampa
Copy link

One of my Prestahop installations , having version 1.7.8.11 2 days ago stopped working...

In Front office (chrome browser) shows HTTP ERROR 500

Backoffice (chrome browser) shows the following error

"Oops... looks like an unexpected error occurred

Attempted to load trait "RefreshFirebaseTokens" from namespace "PrestaShop\Module\PsAccounts\Account\Session". Did you forget a "use" statement for "PrestaShop\Module\PsAccounts\Account\Session\RefreshFirebaseTokens"?

[Symfony\Component\Debug\Exception\ClassNotFoundException 0]
In server log i get the following errors

2024-07-18 21:53:09 | Warning | 52.143.70.100 | | mod_fcgid: stderr: PHP Fatal error: Trait 'PrestaShop\Module\PsAccounts\Account\Session\RefreshFirebaseTokens' not found in /var/www/vhosts/buyclick.gr/stampa-stampa.com/modules/ps_accounts/src/Account/Session/ShopSession.php on line 35

I presume this happened due to changes in PS Modules (PrestaShop EventBus /account) cause my other installations at the same time had updates that were done while in this installation when i tried to connect to do the updates i could

Expected behavior
Basically login to back office and frontoffice working on all browsers as before 16/7/24

Steps to reproduce
Go to https://stampa-stampa.com/
PrestaShop version(s) where the bug happened
1.7.8.11

PHP version(s) where the bug happened
7.4.33 Fastcgi Apache

If your bug is related to a module, specify its name and its version
No response

Your company or customer's name goes here (if applicable).
Stampa-Stampa.com

@Stampa-Stampa
Copy link
Author

I am back ...
i found out the following ..
The file ShopSession.php is looked for in the wrong url...
This is not normal as my installation has the following stracture
Stampa-Stampa.com/modules/ps_account/src/Account/Session/ShopSession.php

I checked both of my other eshop that have same php and prestahop versions (even theme) and in the stracture there is no account folder after ps_account...

I copied the ps_account folder and after i renamed the initial ps_account folder i replaced it with the one from my other installation ... and it worked...

I will need to check if all works fine like cart ets... but this is not normal....

@hschoenenberger
Copy link
Contributor

Hello @Stampa-Stampa thanks for reporting your issue,
this is more likely to be an upgrade issue than a module issue IMHO.

Could you provide us with the version of the ps_accounts module that caused the issue ?

Also did you try to reset the module or clear the shop cache ?

Thanks

@jokesterfr
Copy link
Contributor

Hi @Stampa-Stampa,
kind up on this one,

best,

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

3 participants