Support

Akeeba Backup for Joomla!

#11112 Native CRON script: fatal error Class 'JVersion' not found

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by user57747 on Thursday, 16 February 2012 05:54 CST

user57747
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes, about setting up Cron
Joomla! version: 1.7.3
PHP version: 5.3.2
MySQL version: (unknown)
Host: my own vps
Akeeba Backup version: latest stable, PRO

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

I am trying to set up CRON backup for the Akeeba PRO, when launching a command to backup it gives following error:

PHP Fatal error: Class 'JVersion' not found in /var/www/vhosts/[.....]/httpdocs/administrator/components/com_akeeba/akeeba/platform/joomlacli/platform.php on line 402

What could be the reason?

nicholas
Akeeba Staff
Manager
I have never published a version called "latest". In fact, "latest" can mean several different things to you and me. It could the latest version you downloaded, the latest 3.0, 3.1, 3.2 or 3.3 version, the latest developer's release and so on. "Latest" is so ambiguous that makes it impossible for me to understand which version you are using. Can you please give me the exact version number so that I will be able to help you?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user57747
For me latest means the one available on your website 'as we speak'. It is 3.3.13-pro downloaded yesterday, hope it is more clear now. Thanks for looking.

nicholas
Akeeba Staff
Manager
OK, much better now :) I just installed a fresh Joomla! 1.7.5 site and installed Akeeba Backup 3.3.13 on it. I run the following command
php /path/to/site/administrator/components/com_akeeba/backup.php
and the backup worked perfectly. This means either of two things:
1. Your Akeeba Backup installation is broken. This is easy to fix. Just install it again, without uninstalling your existing version. This will force Joomla!'s extension installer to copy again all files, even those files which it might have "forgotten" to update (a known issue with Joomla!'s extensions installer).
2. You have installed Joomla! 1.7 on top of an older Joomla! 1.5 site, leaving old files behind. This can throw off the backup process, since it will think it's running under Joomla! 1.5.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user57747
Installed Akeeba Backup again, no errors, everything went OK. This was not an updated from joomla 1.5, just a fresh install of 1.7 as far as I am aware.

Unfortunately it is still the same. Full output of the error message after executing command is attached.

nicholas
Akeeba Staff
Manager
I believe that you are using PHP CGI instead of PHP CLI to execute the backup script. Please note that as stated in the documentation you must use PHP CLI. The PHP CGI binary has some limitations which make it very improbable that it will work.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user57747
I tried with the following switches applied:

-q -d safe_mode=Off

And everything worked fine, cron backup is now working, please close the ticket.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!