Support

Akeeba Backup for Joomla!

#12764 Call to undefined function hasOption()

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 on Wednesday, 25 July 2012 18:00 CDT

timomer
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Y
Have I searched the tickets before posting? Y
Have I read the documentation before posting (which pages?)? Y
Joomla! version: (2.5.4)
PHP version: (5.3.10 )
MySQL version: (5.5.21 )
Akeeba Backup version: (3.5.1)

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, using Cron backup with akeeba-backup.php, I repeatdly get the follwoing error sent to me: "PHP Fatal error: Call to undefined function hasOption() in /home/www/twoit.co.uk/cli/akeeba-backup.php on line 284"

Line in Cron:
@daily /usr/bin/php /home/www/twoit.co.uk/cli/akeeba-backup.php > /dev/null
@weekly /usr/bin/php /home/www/twoit.co.uk/cli/akeeba-backup.php --profile=2 > /dev/null

Log: twoit.co.uk/AkeebaBackupDebugLog.txt

Many thanks,
tim

nicholas
Akeeba Staff
Manager
Oops, I missed that one! It's a bug. Open the file cli/akeeba-backup.php and change line 284 from
if($warnings_flag && !hasOption('quiet')) {
to
if($warnings_flag && ($this->input->get('quiet',-1,'int') == -1)) {
and this will be solved.

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!

timomer
Great thanks Nicholas, will let you know if there are any errors from tonights backups.

I trust this will be fixed in the next version.

Many thanks
tim

nicholas
Akeeba Staff
Manager
Yes, please let me know if that worked.

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!

timomer
Hi, yes all looks good, many thanks!

nicholas
Akeeba Staff
Manager
Thank you for the feedback!

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!