Support

Akeeba Backup for Joomla!

#8438 Help!!! Akeeba Has locked me out of ADMIN

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 Friday, 14 May 2010 02:09 CDT

user10575
I recently developed a website and installed Akeeba Pro
Once the site was done I did the following:
[ul]1. pointed the nameservers to the site
2. updated the url's to SEO Friendly
3. Tried to back the site up with Akeeba and it gave me an error so instead I went into the host control panel and backed the site up.
Now I can't get into the back end and I am getting this error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/transgl4/public_html/administrator/components/com_akeeba/akeeba/factory.php on line 33 [/list][/ul]

Can I go in and manually (FTP) and uninstall Akeeba? This is a disaster I need to give the information to the client.
the url is http://www.transglobalinvestment.com/

The error does not show in admin until you try to log in.

Toni

nicholas
Akeeba Staff
Manager
Your site has PHP4. As stated, Akeeba Backup requires PHP 5. IMHO, it is of paramount importance that you upgrade to PHP 5 a.s.a.p.! PHP 4 is not supported since August 2008. That's almost 2 years which, in IT time, is equivalent to a couple of lifetimes and some more. Sticking with PHP4 is like asking your site to be hacked.

That said, if you want to live dangerously, you can simply edit your jos_modules table and delete the line which refers to mod_akadmin. This is the "Backup required" icon, which tries to auto-load parts of Akeeba Backup - that's throwing the error.

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!

user10575
The version of PHP is interesting because I know I was running 5.0 and then for some unknown reason it changed to 4.4.9. The web host upgraded it to 5.0 when it was discovered. I installed joomla / the data base through the WH simple scripts and they have not been running 5.0 for over a year now. I have not gone in to test Akeeba since the upgrade, I don't want to mess with it since the client has an important presentation coming up this week. I did back the site up through cPanel when it would not back up with Akeeba.

If anyone has ever seen something like this before I would be interested in hearing how it happened, I don't want it to happen again. Thanks for your response.

nicholas
Akeeba Staff
Manager
If you now have PHP 5, there is nothing to worry about. If not, you can safely try to use Akeeba, but do not enable the administrator panel module before you make sure that Akeeba Backup loads. This is the very reason it is now distributed separately from the component. I don't want to DOA my users' sites :)

The way it can happen? Simple. Most hosts who support both PHP 4 and PHP 5 will give you special directives to place in your .htaccess file to switch your site to PHP5. If you remove them, or remove .htaccess, or overwrite it with another version which doesn't have those lines, PHP 4 kicks in.

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!

user10575
Just checked the "old" .htaccess file and it did not have the php 5 directive. The one on the site now does. Interesting. Something new to watch for.

You mention -
"do not enable the administrator panel module before you make sure that Akeeba Backup loads."

Not sure what you mean by that or how I would do it. I understand about the admin panel (I think) but "make sure that Akeeba backup loads" I am not quite sure. I have not uninstalled Akeeba and I have Akeeba Pro. Running on joomla 1.5.17.

Toni

nicholas
Akeeba Staff
Manager
I posted my last message late at night yesterday. On second reading, it wasn't very clear what I meant, right?

Let's take it one step at a time. The Akeeba Backup distribution is split in two parts: the component (Core or Pro, doesn't matter) and the administration panel icon module (mod_akadmin). The standard procedure is:
1. Install the component
2. Try running a backup. If you get a PHP4-related error, upgrade to PHP5 and repeat this step until there is no PHP fatal error thrown.
3. Install mod_akadmin and publish it to the icon position.

The icon module (mod_akadmin) can and will lock you out of admin if you have PHP4. The reason is that in order to check for out-of-date backups it has to load Akeeba Engine's factory class, which requires PHP5. Since this happens as soon as you try to access the backend control panel, if you have PHP 4 you are effectively locked out. The easy workaround if you do get locked out:
1. Try logging in to your site's back-end
2. You get a white page or an error page. This is normal. The Control Panel can't load, but Joomla!'s session cookie is set, so you are effectively logged in.
3. Visit http://www.yoursite.com/administrator/index.php?option=com_modules Since you bypass the administrator's Control Panel page, this one loads ;)
4. Click on Administrator, find the Akeeba Backup notification module and unpublish it

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!

user10575
Thanks for the clarification and I appreciate your help. At least now I have a better understanding of Akeeba and backing up the site, which is so very important and something I continue to stress with all my clients.

nicholas
Akeeba Staff
Manager
You're welcome :)

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!