Update 4.0.2 give error —> ​​​​​​​0 Call to undefined method EventbookingHelper.

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago - 3 years 2 months ago #149750 by Patrick Toulze
Update 4.0.2 give error —>
Code:
0 Call to undefined method EventbookingHelper::ensureCommonLanguageFileExist() 
Last edit: 3 years 2 months ago by Patrick Toulze.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 years 2 months ago #149751 by Tuan Pham Ngoc
Hello

Sometime, it happens because the code is cached (when opcache is enabled on server). Could you please try to update again? It should work well now (the code is cached a while by server)

Tuan
The following user(s) said Thank You: Patrick Toulze

Please Log in or Create an account to join the conversation.

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago - 3 years 2 months ago #149757 by Patrick Toulze
Thanks Tuan —It work the second time

This is on my local MAMP server and opcache is off (seem to be the default)
Last edit: 3 years 2 months ago by Patrick Toulze.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 years 2 months ago #149758 by Tuan Pham Ngoc
Strange. I also added some code to the package to invalidate the file to prevent cache in case opcache is enabled

Maybe the issue happens in some special case, I'm unsure yet. For some reasons, the old code is cached, so when the extension calls the method, it is unavailable and there is error

I will see if any other customers get the same error

Tuan
The following user(s) said Thank You: Patrick Toulze

Please Log in or Create an account to join the conversation.

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #149761 by Patrick Toulze
Just for your infos, this is my Mamp settings :

 


Good Day!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 years 2 months ago #149762 by Tuan Pham Ngoc
Thanks. I added some code to invalidate cache, let's see if there is anyone else gets the same error

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #149778 by Manuel Horne
Hi,

just got the same when updating from 3.17.6. to 4.0.2.
opcache is enabled

Cheers,
MAIWEL
Attachments:

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 years 2 months ago #149786 by Tuan Pham Ngoc
Hmm. OK. I added the code directly to installation script instead of calling it via EventbookingHelper class to avoid opcache issue. Hope the issue is sorted now

Tuan
The following user(s) said Thank You: Manuel Horne

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc