No Code Attached Yet
avatar Gratia-Mira
Gratia-Mira
25 Apr 2023

Steps to reproduce the issue

Update Joomla from 4.2.9 to 4.3.0.

Expected result

Installation goes well.

Actual result

For some websites, the update goes wrong. The following error occurs: 0 Class "Joomla\Plugin\Authentication\Cookie\Extension\Cookie" not found

System information (as much as possible)

Joomla 4.3.0
linux
PHP 8.1

Additional comments

I just wanted to report it because I didn't find any after searching the issues. But it is probably already known.
Description of the error in the Joomla forum

avatar Gratia-Mira Gratia-Mira - open - 25 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Apr 2023
avatar Gratia-Mira Gratia-Mira - change - 25 Apr 2023
The description was changed
avatar Gratia-Mira Gratia-Mira - edited - 25 Apr 2023
avatar pixelhexe
pixelhexe - comment - 25 Apr 2023

Probably this issue #40412?

avatar obuisard
obuisard - comment - 25 Apr 2023

Thank you for reporting this error.
It probably related to the issue we have documented here https://docs.joomla.org/J4.x:Error_setCookie().
Please test that the workaround fixes your issue (change the cookie lifetime from 'Year' to 'Session' in the System plugin 'Language filter').


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40479.

avatar brianteeman
brianteeman - comment - 25 Apr 2023

It is a different issue. This sounds the same as the one that I had at #40226

avatar sandewt
sandewt - comment - 26 Apr 2023

Open the file: \Joomla\administrator\cache\autoload_psr4.php

Do you miss the following line?
'Joomla\\Plugin\\Authentication\\Cookie\\' => [JPATH_PLUGINS . '\authentication/cookie/src'],

Then remember me was checked. The error message is then caused by the missing line.

Schermafbeelding 2023-04-26 082344

avatar Gratia-Mira
Gratia-Mira - comment - 26 Apr 2023

@sandewt Thanks! But it doesn't work for me and I haven't missed this line either.
'Joomla\\Plugin\\Authentication\\Cookie\\' => [JPATH_PLUGINS . '/authentication/cookie/src'],

Deleting the file \Joomla\administrator\cache\autoload_psr4.php did not change anything either.

Reinstalling the Joomla 4.3.0 files did not bring anything either.

Fortunately there are backups :)

At the backend login, it displayed the following message at the end.
Failed opening required '/plugins/authentication/joomla/joomla.php

avatar sandewt
sandewt - comment - 26 Apr 2023

At the backend login, it displayed the following message at the end.

No idea.

Advice: don't show the whole path to the joomla.php file on the internet, /plugins/authentication/joomla/joomla.php is enough information about the location. You can edit your comment.

avatar ryhcu404
ryhcu404 - comment - 29 Apr 2023

We're having a very similar issue when upgrading to 4.3.0 on a relatively fresh install (late last year) of Joomla 4 on Ubuntu:

Class "Joomla\Plugin\System\GuidedTours\Extension\GuidedTours" not found

After disabling that plugin, the error changed to the "Content\Contact" plugin, then after disabling that one to the "EmailCloak" plugin.

Deleting/recreating the autoload_psr4.php file did not help, nor did a manual load of the 4.3.0 update tar.gz file.

Oh, and the problem is intermittent. It only happens about 50% of the time!

UPDATE: I restored both database and files backup (4.2.9) and still had the issue even though we had not had issues prior on 4.2.9! I was able to finally stabilize the site by disabling the following extensions:

  • GuidedTours (4.3.0 only)
  • EmailCloak
  • Content Contacts
  • Content Fields
  • Content Finder
    Then, I re-upgraded to 4.3.0 (extensions still disabled). This was on a very simple site, so thankfully we are not requiring any of those, best I can tell.

UPDATE TWO: Updating to Joomla 4.3.1 did not appear to help.

avatar Gratia-Mira
Gratia-Mira - comment - 3 May 2023

The error still exists in Joomla 4.3.1:
Failed to open the required file '/plugins/authentication/joomla/joomla.php'.

Are there any further advices?

avatar Gratia-Mira
Gratia-Mira - comment - 3 May 2023

UPDATE: I restored both database and files backup (4.2.9) and still had the issue even though we had not had issues prior on 4.2.9! I was able to finally stabilize the site by disabling the following extensions:

Probably nothing new: Some servers have a messy backup process. They do not delete the files beforehand, but only overwrite them. In this case, with this difficulty, you have to delete the data manually beforehand and then restore the backup (I also had to do this).

avatar ryhcu404
ryhcu404 - comment - 4 May 2023

Some servers have a messy backup process. They do not delete the files beforehand

You were on the right track. Not to hijack this thread, but I found the problem for my site:

The website is on a load balanced pair of servers. One site is rsync'd to the other--except for the two cache directories. So, the secondary server needed to have it's cache dirs (or perhaps just the autoload file) cleared out to resolve the errors. This also explains why we were only seeing the issue about 50% of the time. Should have known!

avatar Gratia-Mira
Gratia-Mira - comment - 9 May 2023

Is there any news about this case?

avatar pklinke
pklinke - comment - 19 May 2023

Same issue "Class "Joomla\Plugin\Authentication\Cookie\Extension\Cookie" not found" here still after restore with kickstart!!

Still no solution?

avatar Gratia-Mira
Gratia-Mira - comment - 19 May 2023

I have found my mistake. It was a plugin for authentication that has been outdated since Joomla 4.3. I just rewrote it and everything works.
Apparently, however, the error described by @pklinke is still open, but no longer occurs with me.

I will therefore leave the ticket open.

avatar alikon
alikon - comment - 27 May 2023

since the issue reported at beginning of this thread, has been solved, i'm closing this issue, and ask to open a proper and detailed new issue for those that still have the problem

avatar alikon alikon - change - 27 May 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-05-27 06:53:59
Closed_By alikon
avatar alikon alikon - close - 27 May 2023

Add a Comment

Login with GitHub to post a comment