No Code Attached Yet
avatar lemuelvdm
lemuelvdm
10 Sep 2025

Steps to reproduce the issue

Create a new record in Joomla Categories for example. Edit it and save again. Then try to restore previous version.

Expected result

The first or previous version is restored and new changes removed.

Actual result

I'm getting a error Class "Joomla\CMS\Versioning\ContentHistory" not found
Here is the call stack:
Image

System information (as much as possible)

I'm running the following:
Joomla! Version | 6.0.0-beta2
PHP Version | 8.3.25
Database
- Server -> mysql
- Version -> 11.4.3-MariaDB-ubu2404
- Collation -> utf8mb4_unicode_ci
- Conn Collation -> utf8mb4_uca1400_ai_ci
OS | Ubuntu 24.04
Browser | Firefox latest version
System | Joomla is running on a Docker Container

Additional comments

This issue might be related to #46042

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar lemuelvdm lemuelvdm - open - 10 Sep 2025
avatar joomla-cms-bot joomla-cms-bot - change - 10 Sep 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Sep 2025
avatar lemuelvdm lemuelvdm - change - 10 Sep 2025
The description was changed
avatar lemuelvdm lemuelvdm - edited - 10 Sep 2025
avatar lemuelvdm lemuelvdm - change - 10 Sep 2025
Title
Bug in Joomla Versioning `Class "Joomla\CMS\Versioning\ContentHistory" not found`
[6.0] Bug in Joomla Versioning `Class "Joomla\CMS\Versioning\ContentHistory" not found`
avatar lemuelvdm lemuelvdm - edited - 10 Sep 2025
avatar lemuelvdm
lemuelvdm - comment - 10 Sep 2025

I've added:

use Joomla\CMS\Factory;
use Joomla\CMS\Table\ContentHistory;

to the use statements of the VersionableModelTrait.php

Now it does not give me the Class "Joomla\CMS\Versioning\ContentHistory" not found error anymore. And the version is older version is restored.

avatar richard67 richard67 - change - 11 Sep 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-09-11 18:29:37
Closed_By richard67
avatar richard67 richard67 - close - 11 Sep 2025
avatar richard67
richard67 - comment - 11 Sep 2025

Closing as having a pull request. See #46073 .

Add a Comment

Login with GitHub to post a comment