Support

Akeeba Backup for Joomla!

#11906 Using $this when not in object context in oneclickaction.php

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 nicholas on Monday, 09 April 2012 03:20 CDT

user13776
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
Joomla! version: 2.5.3
PHP version: 5.3.6
MySQL version: Ver 5.0.95
Host: (optional, but it helps us help you)
Akeeba Backup version: 3.4.3

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:
Hi,
I have started getting the following error when accessing a couple of sites running Joomla 2.5.3 and 2.5.4:

PHP Fatal error: Using $this when not in object context in /home/..../public_html/..../plugins/system/oneclickaction/oneclickaction.php on line 180

I'm not 100% sure, but the error seems intermittent.

Googling for this I see a few other sites have the same problem, but I don't see a solution anywhere. In the short terms I am able to make the problem go away by adding a 'return false' at the top of _checkInstallation(), but this obviously isn't a long term fix.

I'd be grateful if you could advise whether this is a known problem and if so what the correct resolution should be?

Thanks for your help

Mike

nicholas
Akeeba Staff
Manager
This is a known issue. The correct fix is changing line 180 to
if(self::isMySQL()) return false;

and line 222 to
private static function isMySQL()

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!

user13776
Thanks for that, that looks good so far.

Mike

nicholas
Akeeba Staff
Manager
You're welcome, Mike!

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!

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!