Fatal error: Class 'JVersion' not found in ..administrator/modules/mod_version/helper.php

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

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.
Locked
deyan4
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Jun 27, 2016 11:02 am

Fatal error: Class 'JVersion' not found in ..administrator/modules/mod_version/helper.php

Post by deyan4 » Mon Jun 27, 2016 11:10 am

Hello,

I've got a client's website that doesn't load the admin panel. I've got the following error:

Fatal error: Class 'JVersion' not found in

/home/websitename/public_html/administrator/modules/mod_version/helper.php on line 33

I found two declarations of the Jversion class in two different files and I don't know what to do in that case.

It seems that the site has been updated but the update process finished with this error.

Can anyone help me?

Best regards.

 
itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4026
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Fatal error: Class 'JVersion' not found in ..administrator/modules/mod_version/helper.php

Post by itoctopus » Mon Jun 27, 2016 1:40 pm

If you're using Joomla 3.5.1, then keep the file libraries/cms/version.php and delete the other file declaring the class JVersion.

If you still have the issue, then just disable the version module in phpMyAdmin.

Note: Always backup your website before doing anything.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 22435
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Fatal error: Class 'JVersion' not found in ..administrator/modules/mod_version/helper.php

Post by pe7er » Mon Jun 27, 2016 3:16 pm

itoctopus wrote:If you're using Joomla 3.5.1, then keep the file libraries/cms/version.php and delete the other file declaring the class JVersion.
Sorry, but this is bad advice.

First of all, this topic has been posted in the Joomla 2.5 forum, so I think we can safely assume that the topic poster does not have Joomla 3.5.1.

Furthermore, when you get an error in some file about missing classes, then the class cannot be found.
You should not delete files. Instead you should try to find out why the class cannot be found.

In Joomla 2.5.28 the file /administrator/modules/mod_version/helper.php contains

Code: Select all

$instance = new JVersion();
but it's on line 31 and not line 33. So I suppose that you are running an older Joomla 2.5 version.

Could you check if your website has the file /libraries/cms/version/version.php (it has the missing JVersion class)

I would backup the current website (files + database),]
download the same full package 2.5.x Joomla version,
unzip the .zip on your local computer,
upload all files + folders (except /installation) overwriting the current files.

After your site works again, do not forget to update to the latest version in the Joomla 2.5 series:
Joomla 2.5.28 + install the 2.5.28 security patch.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
Co-developer of d2 Content https://data2site.com/joomla-extensions/d2-content

 

Locked

Return to “Administration Joomla! 2.5”