Support

Akeeba Backup for Joomla!

#12883 PHP Warning: Division by zero --Backup Professional 3.5.2

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 Thursday, 05 July 2012 15:52 CDT

user64563
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (2.5.6)
PHP version: (5.2.17)
MySQL version: (5.0.95)
Host: (Certified Hosting)
Akeeba Backup version: Akeeba Backup Professional 3.5.2

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:

PHP Warning: Division by zero in your file: public_html/administrator/components/com_akeeba/plugins/models/srprestores.php on line 658 -->

line:
657 // Return statistics
658 $pct_done = ceil($dbInfo->runSize / $dbInfo->totalSize * 100);

nicholas
Akeeba Staff
Manager
Hm, this should never happen under normal circumstances. This would mean that the database backup is empty. Which extension is this SRP for?

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!

user64563
I'm unsure of which extension, probably my sites biggest problem lol.

Must be an error on my end then. As i'm trying to debug my log-in/registration problem and noticed this was found in my Joomla/registration/ErrorLog.php

I was basically making you aware of it, If its nothing in your code to worry about, then you may delete this topic, as I'm ready to just do a full fresh install of everything on my entire site, with BackUp Pro installed FIRST this time! =)

Thanks for the quick response. =)

nicholas
Akeeba Staff
Manager
You can always change that line with
if($dbInfo->totalSize < 1) {
			$pct_done = 0;
		} else {
			$pct_done = ceil($dbInfo->runSize / $dbInfo->totalSize * 100);
		}
to allow Akeeba Backup proceed with the restoration of the SRP backup.

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!