Support

Akeeba Backup for Joomla!

#23635 Incorrect codification of octal number in php code

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 Friday, 04 December 2015 17:20 CST

atgbcn
Hello,


I've found that on your file com_akeeba/models/cpanels.php you are comparing file permisions of media/com_akeeba with 40755 without the leading 0.

I've added the leading 0 as you can see next and the "media/com_akeeba" error message disappeared.

line 180: if (($parentPerms != 0755) && ($parentPerms != 040755))

line 207: if (($perms != 0755) && ($perms != 040755))

nicholas
Akeeba Staff
Manager
Thank you for the catch! Apparently I made that typo a very, very long time ago. I wonder how come we had never had a bug report about it before! Again, thank you very much for bringing this to my attention!

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!

atgbcn
You are welcome Nicholas,

I've been spending quite some time wondering why your Akeeba backup error message appeared when the permissions of my directories where correct. I've been googling for a response with no success.

The error did not appear on version 4.3.x of your soft.

The thing is that while googling I've seen that many people are lost and the message is somehow "not very helpful". I would reconsider the strictness of that message and of other similar messages your soft might have.

Akeeba Backup will most likely not work at all if you do not perform these steps. Do not ask for support if you can see this message. All the information you need is already on this message.

Best regards!

Angel

nicholas
Akeeba Staff
Manager
The message is terse on purpose.Back in 2009-2010 we had some really vile support tickets filed when a permissions issue on the server was not allowing the browser to load our Javascript. One of them helpfully suggested that I should quit development and take up knitting. This feature and message were implemented right after answering that ticket.

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!

atgbcn
I'm sorry to read about that impertinent suggestion.

On your first reply you were wondering why nobody had said anything about that bug. Maybe the tone of the message explains it: You might scared people... :-)

Best regards!

Angel

nicholas
Akeeba Staff
Manager
Actually, most servers do not return 040755 but plain old 0755 ;) That's why people didn't report this bug. I had added 040755 for completeness' sake.

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!

atgbcn
Unfortunately for me mine does return 040755.

I was stuck since version 4.4.2 appeared. Version 4.3.1 does not throw the error message.

nicholas
Akeeba Staff
Manager
Ugh, apparently 4.3.1 was buggy :D The encoding of this value was been that way since 2009.

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!