Advertisement

Error while updating from 4.4.3 to 4.4.4: Class "Joomla\CMS\Crypt\Crypt" not found Topic is solved

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Jefferson49
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Sun Sep 11, 2022 11:07 am

Error while updating from 4.4.3 to 4.4.4: Class "Joomla\CMS\Crypt\Crypt" not found

Post by Jefferson49 » Sat Apr 27, 2024 9:54 am

If updating from from Joomla 4.4.3 to Joomla 4.4.4 I get an error: Class "Joomla\CMS\Crypt\Crypt" not found

With a search in the forum and in the internet, I could not find any solution for this topic. Can anyone help?

Stack trace:
An error has occurred.
0 Class "Joomla\CMS\Crypt\Crypt" not found
Call stack
# Function Location
1 () JROOT/libraries/src/User/UserHelper.php:527
2 Joomla\CMS\User\UserHelper::genRandomPassword() JROOT/administrator/components/com_joomlaupdate/src/Model/UpdateModel.php:566
3 Joomla\Component\Joomlaupdate\Administrator\Model\UpdateModel->createUpdateFile() JROOT/administrator/components/com_joomlaupdate/src/Model/UpdateModel.php:543
4 Joomla\Component\Joomlaupdate\Administrator\Model\UpdateModel->createRestorationFile() JROOT/administrator/components/com_joomlaupdate/src/Controller/UpdateController.php:117
5 Joomla\Component\Joomlaupdate\Administrator\Controller\UpdateController->install() JROOT/libraries/src/MVC/Controller/BaseController.php:693
6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
7 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
9 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
10 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
11 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
12 require_once() JROOT/administrator/index.php:32

Advertisement
User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31344
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Error while updating from 4.4.3 to 4.4.4: Class "Joomla\CMS\Crypt\Crypt" not found

Post by Per Yngve Berg » Sat Apr 27, 2024 10:05 am

Mod. Note: Relocated from Installation to the Upgrade Forum.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31344
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Error while updating from 4.4.3 to 4.4.4: Class "Joomla\CMS\Crypt\Crypt" not found

Post by Per Yngve Berg » Sat Apr 27, 2024 10:23 am


Jefferson49
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Sun Sep 11, 2022 11:07 am

Re: Error while updating from 4.4.3 to 4.4.4: Class "Joomla\CMS\Crypt\Crypt" not found

Post by Jefferson49 » Sun Apr 28, 2024 5:08 am

> That class exists in Joomla 3.x

Yes, and it seems that some of the methods of the class have been deprecated.

However, the class still exists in 4.4:
https://github.com/joomla/joomla-cms/bl ... /Crypt.php

And even in 5.1:
https://github.com/joomla/joomla-cms/bl ... /Crypt.php

And the call to the Crypt method in the UserHelper class, JROOT/libraries/src/User/UserHelper.php:527, is also included in 4.4.:
https://github.com/joomla/joomla-cms/bl ... r.php#L527

Also, the UserHelper class does contain a use statement to Joomla\CMS\Crypt\Crypt:
https://github.com/joomla/joomla-cms/bl ... er.php#L20

A more general question:
What could be a reason that Joomla throws an error Class "Joomla\CMS\..." not found?

Jefferson49
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Sun Sep 11, 2022 11:07 am

Re: Error while updating from 4.4.3 to 4.4.4: Class "Joomla\CMS\Crypt\Crypt" not found

Post by Jefferson49 » Sun Apr 28, 2024 5:36 am

> What could be a reason that Joomla throws an error Class "Joomla\CMS\..." not found?

Further investigation showed that the file "...\libraries\src\Crypt\Crypt.php" was missing in my installation. After restoring the folder "...\libraries\src\Crypt\" from a backup, the 4.4.4 update works.

Sorry for bothering you with this issue. The issue was related to the specific circumstances in my installation. For some unknown reason, the files in "...\libraries\src\Crypt\" got deleted or moved.

Advertisement

Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”