Support

Admin Tools

#9703 Fatal Error: Class 'Services JASON' and com_admintools

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 steph.s on Thursday, 02 December 2010 19:22 CST

jparker3119
The site with this problem has installed in it AzrulStudio's JomComment & My Blog.
Apparently there is a conflict between them and com_admintools1.0

Akeeba backup can be installed without any problems, but installation of com_admintools-1.0-pro resulted in the generation of the following error:
Fatal error: Class 'Services_JSON' not found in /home/shogyoadmin/www/new.shogyoshisetsu.net/plugins/system/pc_includes/ajax.php on line 358
Apparently the directory pc_includes is created by the installation of an Azrul component, module or plugin.
I downloaded the latest version of com_admintools1.0.1 and attempted to install it but the same error was generated.
I repeated this 3-4 times with same results.
Any help would be appreciated.
Thanks in advance.
Jim
Joomla 1.5.21
FreeBDS
Azrul JomComment 3.0 Build 562
Azrul My Blog 2.0.1 Build 286
=====================
PHP Built on: FreeBSD 6.4-RELEASE-p8 FreeBSD 6.4-RELEASE-p8 #1 r101746: Mon Aug 30 10:34:40 MDT 2010 root@fc:/usr/src/sys/i386/compile/VKERN i386
Database Version: 5.0.24
Database Collation: utf8_general_ci
PHP Version: 5.2.13
Web Server: Apache/2.2.15 (Unix) PHP/5.2.13 with Suhosin-Patch mod_ssl/2.2.15 OpenSSL/1.0.0a mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.7
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.21 Stable [ senu takaa ama wepulai ] 08-October-2010 18:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729)

nicholas
Akeeba Staff
Manager
Is it possible to put the /home/shogyoadmin/www/new.shogyoshisetsu.net/plugins/system/pc_includes/ajax.php in a ZIP archive, upload it to a free file hosting service (DropBox, Windows Live SkyDrive, etc) and send me a PM with the URL to download it? You can send me a PM using the Personal Messages link on the purple-background module on the top right of this page. Click on Compose and type in my username (nicholas). If that doesn't work, email me at the address nicholas at this domain name. Thanks!

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!

nicholas
Akeeba Staff
Manager
Argh! Azrul's devs seem to have misspelled a path right there. Edit that file and add a line below line 355 which read:
include_once( AZRUL_SYSTEM_PATH . '/system/pc_includes/JSON.php');

Anyway, this plugin is really badly written. It should never load its classes before checking, um, it's actually required to run, at all (the check is performed in line 361).

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!

jparker3119
Nicholas,
Unfortunately, that was not the problem. The variable AZRUL_SYSTEM_PATH includes the path /system/ so if I rewrite the line as you suggest an error is generated due to a double definition of /system/system/ , akeeba backup doesn't work either!!!

nicholas
Akeeba Staff
Manager
Dang! I copied that line from a few lines above on the same file. The only thing I can think of is that the system/pc_includes/JSON.php file doesn't define the Services_JSON class. In that case, please file a bug report with Azrul because it's his code kicking in when it shouldn't. I have gone to great lengths to make sure my code is as unobtrusive as possible, but I can't work around poor coding by other developers writing system plugins :(

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!

jparker3119
I am having a similar problem with another site that HAD AZRUL MyBlog 2.0 and jomComment 2.0 installed on it. (NOTE: their latest version is 3.0 and I have not tested with these two so there may not be a problem with them.) I did a -777 on all the directories and files installed by the 2.0 versions, including the Modules and uninstalled all of them.
I then installed both akeeba 3.15 Pro and AdminTools 1.0.,1 Pro without any problem to that point.
Upon clicking on AdminTools, a blank page was displayed with no HTML. This is true for both Front and Back.,
The URL is http://alpha.purpleribbon.jp
NOTE: I had yet to set any parameters.
Any ideas?

nicholas
Akeeba Staff
Manager
This sounds like one of the following two issues:
a. Wrong permissions. If you have chmod'ed your site's root to 0777 you may be indeed be receiving a blank page. In this case, try changing the permissions of the site's root to 0755
b. Improper uninstallation of plugins. Plugin installations in Joomla! consist of two parts: the files and the database entry. Deleting just the files is not the proper way to uninstall a plugin. The next time you'll try to load a page, Joomla! will see the database entry and try to include the inexistent plugin files, leading to this spectacular white page crash. In this case, use your host's phpMyAdmin and open the jos_plugins database table. Look for all rows referencing the plugins you uninstalled manually and delete them. Tip: before doing any changes to that table, keep a backup copy of it by using phpMyAdmin's export feature.

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!

jparker3119
Thanks for the reply, Nicholas.
What you suggest is quite accurate, but unfortunately is not related to what I am experiencing. First of all, I want to say that I do NOT think it is particularly due to a problem with Akeeba. I think it is related to the prior installation of MyBlog 2.0 and/or Jomcomment 2.0
I did uninstall them using the backroom administrator uninstaller.
I did test the site with them uninstalled prior to installing akeeba. There were no problems.
I then installed Akeeba and the problem of nothing being displayed occurred.
I installed Akeeba on another site on the same server in which MyBlog 2.0 and JomComment 2.0 had not been installed and Akeeba worked great with out any problems as did the Admin as well.
Uninstalling MyBlog and JomComment did not remove the tables from the database, so I did have to do those manually. However, since I did uninstall them using the unistaller, any reference to them should have been removed from the modules table.
Anyway, I will do some more study and if I find the cause I will post it here.
Thanks again for your help!
Jim

nicholas
Akeeba Staff
Manager
Jim,

Since you mentioned changing folder permissions I assumed that you manually uninstalled the plugins. Since you're getting a white page error, this is a hidden PHP fatal error. The first course of action is to make the error visible. Start by commenting any lines starting with php_value or php_flag in your .htaccess file. If there is a php.ini file in your site's root, try renaming it to php.ini.bak. Then edit the configuration.php file of your site using a plain text editor (e.g. Notepad++ on Windows, gedit on Linux or Textedit on Mac OS X). Put the following code at the END of the configuration.php file BEFORE the closing ?>
ini_set( 'display_errors', true ); error_reporting( E_ALL );

Visiting your site again should throw a PHP error. Copy and paste it here so that I can help you further with this issue :)

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!

jparker3119
Hi Nicholas,
Do you every sleep? ;)
I did as you suggested but no error message was displayed!

I have a ready backup of the DB and purpleribbon directory and can easily set it up so that the site is operable. I found another Azurl module in the site and so uninstalled it but this had no effect when I went to install com_admintools again.....another white screen.

I can provide you with a password for superAdmin to the site if you want to test it yourself. Maybe you will see something that I am overlooking. If so, I will set it up so that it is operable condition, ready for you to install either com_admintools or akeeba

steph.s
Do you have any conciliation plugins or redirect plugins that are enabled? I had a conciliation plugin that resulted in a white screen in Admin Tools and Akeeba Backup. And while this doesn't help, I also had to uninstall Azrul plugins due to conflicts with other extensions. Azrul also is the author of JomSocial, do you have jomSocial plugins that may be requesting the JSON.php?

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!