Support

Admin Tools

#9906 Ajax Error

Posted in ‘Admin Tools 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
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 21 June 2011 16:49 CDT

user11648
Mandatory information about my setup:

Have I searched the forum before posting? yes
Have I read the Troubleshooting Wizard before posting? yes
Have I read the documentation before posting? yes
Joomla! version: (1.5.23)
PHP version: (5.2.17)
MySQL version: (5.0.92)
Host: (ServInt)
Admin Tools Professional version: (2.0.5)


Description of my issue:
Unable to update or reinstall Joomla with Admin Tools Professional. I get a pop up message with this error:

ERROR:
Invalid AJAX data:


Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/footprin/public_html/administrator/components/com_admintools/restoration.php on line 19


Any help on this would be much appreciated.

nicholas
Akeeba Staff
Manager
Your server either has PHP 4 or PHP 5.0 which is not supported by our software. Our software requires at least PHP 5.2. That said, the only actively supported PHP version by PHP developers themselves is PHP 5.3. All other versions are end-of-life and are not being maintained any more. Having any of them running on your server exposes you to potential security threats.

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!

user11648
I'm actually using php 5.2.17 but no matter. The error is an ajax error and not a php error. Not all of my components are going to support php 5.3 yet. I will have to figure this out for myself.

Thank you for your response,
Marie Alline

earthrat
What browser are you using?

nicholas
Akeeba Staff
Manager
Marie,

AJAX error means "the server crapped on its pants" and the rest of the message is the exact response of the server. Take a very good look at the response:

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/footprin/public_html/administrator/components/com_admintools/restoration.php


This is a PHP parse error. It is the same thing as a PHP fatal error, but happens when PHP is actually trying to compile the PHP script to a set of instructions it can execute. This parse error does not and can not happen with PHP 5.2, unless you have modified this file yourself. We currently check our software to make sure it's working with PHP 5.2.17 and PHP 5.3.5.

Please go to your site's back-end, Help, System Info and check the PHP version reported there. Are you sure it is PHP 5.2? If it is, please re-install Admin Tools.

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!

user11648
I went to the back end and checked and it's 5.2.17. I uninstalled admin tools pro and I am now getting this error.
"ERROR:
AJAX Loading Error: Internal Server Error"

This is on a brand new install of Joomla 1.5.23. The only other thing I have installed on the site at the moment is Akeeba Backup Pro.

I will contact my tech support people and see if they will recompile Apache with a newer version of PHP and see what happens.

Firebug says "POST http://mariealline.com/administrator/components/com_amintools/restore.php 500 Internal Server Error
85ms Mootools.js line 75"

all in red, if that helps. Will let you know how it goes after updating php.

Thanks again for your response,
Marie

user11648
Okay! :) I just had them recompile apache with php 5.3.6 and am still getting the previous error. Please advise.

Thank you,
Marie

slaes
Marie, I would install a fresh copy of joomla into a sub dir of your current install, also new database with it obviously.
Then try install ATP, see what happens, its only a 5-10 minute job. If that fails its most likely a configuration issue on your server. Do you have the php.ini file?


user11648
Hiya slaes! Thanks for your response. This is a fresh copy of Joomla and a fresh database. One thing I found out. When they recompile php with Apache, the 5.3 versions of php, are not compatible with the zend optimizer. They had to remove my zend optimizer in order to install the latest version. That could have something to do with it too. I am getting the same responses on my sandbox site in a sub-directory. I do have a sandbox directory installed and nothing is different. I do have access to my php.ini at any time. What would you suggest? I'm open to trying anything.

Marie

slaes
Ive personally not run into your issues before. To me it looks like its to do with your server config.

Since your having the same issue before and after the php upgrade i dot think it would have anything to do with zend.

If your absolutely certain everything is correct with your install.

what disable_functions are listed in your php.ini config? I would TEMPORARILY remove all of them and see if that makes a difference.

nicholas
Akeeba Staff
Manager
We are not using any encrypted files (I despise encrypted software!!!) so the lack of Zend Optimizer is not an issue. Since you are getting that parse error, I can only assume that you have an incomplete installation of Admin Tools Professional.

Please try the following procedure:
1. Rename your .htaccess file to htaccess.bak
2. Go to the plugins/system/admintools directory and rename main.php to main.old.php
3. Log in to your site's back-end and install Admin Tools Professional 2.0.5 - you should receive no errors during the installation.
4. Rename htaccess.bak back to .htaccess
5. Check that everything works

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!

user11648
You guys are just awesome and I love you to pieces! Thank you so much for trying so hard to help and for your responses. Here is what I learned. (Inserting some gravity as well humor here.) Before asking your technical staff to recompile Apache with a new version of PHP, be sure all of your components and applications are compatible with the new version of PHP. I found JomSocial and many other components and modules are not compatible with with PHP 5.3.xx, but thank you for the suggestion. I ended up losing two other sites in the process but was able to bring them back again by recompiling back to the original version of PHP 5.2.17. (Eventually) Also I learned to ask questions, questions, questions.... For some reason my service people found it necessary to change my handler to DSO and then some things started working and some things didn't. They then turned suExec on which started trying to download pages when I tried going to my sites (I have 3 on my server). (Very interesting) By the time we were done, nothing worked, all 3 sites were down and we had to start all over again! I was pulling my hair out and cursing the day I started building websites and trying to learn all this technical stuff!
Eventually, I said "STOP! ENOUGH ALREADY!" "Please just recompile Apache and PHP Version 5.2.17 and put all the other stuff back in that your processes overwrote and the zend optimizer that you uninstalled, etc. and I'll just take it from there!" So they did. I went into Cpanel and reset my handler to CGI And guess what? Admin Tools Pro works perfect! No Ajax or PHP errors! The only problem is that I am having problems with whether to have suExec on or off. Some things work with it on and some things don't work with it on. Any suggestions from here?

Marie Gruidl

nicholas
Akeeba Staff
Manager
Normally, enabling suPHP should not cause a problem as long as all your directories and files are owned by your account's user. Given the history of the sites, some directories and files are currently owned by the Apache user, which is suboptimal in terms of security. If you turn on suPHP and ask your host to change the ownership of all directories/files of each site to the user corresponding to the account they're hosted under you should be up and running and have a much more secure environment for your sites.

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!