Page 1 of 1

Class 'ModuleOperations' not found

Posted: Thu Oct 30, 2025 7:29 pm
by enrico1982
A site running for years has now started to give the following error:

Fatal error: Uncaught Error: Class 'ModuleOperations' not found in /data09/localdir/public_html/lib/autoloader.php:127 Stack trace: #0 [internal function]: cms_autoloader('ModuleOperation...') #1 /data09/localdir/public_html/lib/autoloader.php(127): spl_autoload_call('ModuleOperation...') #2 [internal function]: cms_autoloader('global_cachable') #3 /data09/localdir/public_html/lib/include.php(109): spl_autoload_call('CMSMS\\internal\\...') #4 /data09/localdir/public_html/index.php(36): require_once('/data09/localdir...') #5 {main} thrown in /data09/localdir/public_html/lib/autoloader.php on line 127

I can't access any pages including the admin area.

Its currently running cmsms 2.1.5. After looking through a few old posts, I did try clearing out the tmp cache folders, but no change.

Its running on a shared hosting cpanel service, so maybe the server has updated the php version. Its running PHP 7.4.33.

Thanks!

Re: Class 'ModuleOperations' not found

Posted: Fri Oct 31, 2025 2:26 am
by DIGI3
It's going to be hard to diagnose, that version is almost 10 years old. It's possible it's a PHP version change, but it doesn't seem likely a host would change to 7.4 given that's also outdated and unsupported.

You could try rolling PHP back to 7.1 or earlier as that's what was out around the same time as 2.1.5. You could also try a "freshen" install by running the 2.1.5 installer so it replaces all core files.

Obviously upgrading to the latest version, and PHP 8.1+, would be the best option. If you need any help with that, see our Hire a Dev program via the link in my signature.

Re: Class 'ModuleOperations' not found

Posted: Fri Oct 31, 2025 7:52 am
by creopard

Re: Class 'ModuleOperations' not found

Posted: Fri Oct 31, 2025 9:27 am
by enrico1982
DIGI3 wrote: Fri Oct 31, 2025 2:26 am It's going to be hard to diagnose, that version is almost 10 years old. It's possible it's a PHP version change, but it doesn't seem likely a host would change to 7.4 given that's also outdated and unsupported.

You could try rolling PHP back to 7.1 or earlier as that's what was out around the same time as 2.1.5. You could also try a "freshen" install by running the 2.1.5 installer so it replaces all core files.

Obviously upgrading to the latest version, and PHP 8.1+, would be the best option. If you need any help with that, see our Hire a Dev program via the link in my signature.
Thanks yes I will give re-installing2.1.5 a go. As it's shared service I don't decide the php version, at the mercy of the host there. Do you know what's the latest I could upgrade to on that php version?

Re: Class 'ModuleOperations' not found

Posted: Fri Oct 31, 2025 1:53 pm
by DIGI3
Most shared services will let you choose a PHP version, either in the control panel (cPanel, Plesk, or similar) or via htaccess. It's highly unlikely a host would only offer a single version that's already obsolete. I would ask them if you're unsure. If they only offer the one obsolete version, consider changing to a better host.

To find the CMSMS versions most likely to work with the PHP version(s) you have available, Google the release date of the PHP version then find a CMSMS version from around the same time here: https://dev.cmsmadesimple.org/project/files/6