Support

Admin Tools

#9912 Error: Model class cpanelModelCpanel not found in file

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, 28 June 2011 13:00 CDT

JUG-Heerenveen
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: (unknown)
PHP version: (A: 5.3.3 / B 5.3.2)
MySQL version: (A: 5.1.41 / 5.0.51)
Host: (A: Hosting2Go.nl / B: PcExtreme.nl)
Domains: (A: hcc-joomla.nl / B: jobala.aharef.nl)
Admin Tools Professional version: (2.1)

Today I installed a fresh version of Admin Tools Pro 2.1 on server A: (see above). Install succeeded bit an error message showed up in administrator control panel: "Model class cpanelModelCpanel not found in file". I uninstalled Admin Tools, and the error disappeared. Reinstalled and it was there again.

Then I switched to my Joomla! 1.6.3 testsite on server "B" where admintools 2.0.5 was already installed. I updated Admin Tools Pro by using Live Update to version 2.1. This was succesfull. But guess what? Same error in Adnministrator control panel.

Finally I installed Admin Tools Pro 2.1 also on my localhost server (Xampp 1.7.3) and also here same error.

So on three completely different servers I get same error.

I think there is something wrong in this new version. I do not understand what this error means, but I will stop using Admin Tools 2.1 till I know if everything is safe to use.

Can you please look after?

T.I.A.

Best regards,
Benno

JUG-Heerenveen
I see now that I forgot to enter the Joomla! version.
On all 3 servers are Joomla! 1.6.3 running.

Best Regards
Benno

ecagle25
I am getting the same error as well. I have tried both automatic/manual installation and still end up with this error.

I am also running Joomla 1.6.3.

ecagle25
Should of posted this in my original reply.

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.6.3
PHP version: 5.3.3-1
MySQL version: 5.1.49-1
Host: Linode VPS (linode.com)
Admin Tools Professional version: 2.1 (Have since reverted back to 2.0.5)

slaes
This issue seems isolated to J1.6. I have tested ATP 21 on J15 without issues at all. IMHO J1.6 is a joke and should be avoided like the plague. It should be considered alpha release AT best.

user41141
push have the same issue

nicholas
Akeeba Staff
Manager
Hi everybody,

This is a cosmetic issue caused by a bug in Joomla! 1.6's administrator control panel component. This bug is fixed in Joomla! 1.7 and presumably on Joomla! 1.6.4 which will be released tomorrow. You can safely ignore it, as it is only a cosmetic issue, not a functional issue (AT works perfectly despite this warning).

Given that this is a Joomla! bug (not an AT bug) and that it supposed to be solved in the new Joomla! release tomorrow, I am not going to push out a new release. You can simply ignore this message for 24 hours, until you install Joomla! 1.6.4.

Technical details:
As per the Joomla! coding standards, our "System - Admin Tools Professional" plugin calls one of Admin Tools models using the following code:
		JModel::addIncludePath(JPATH_ROOT.'/administrator/components/com_admintools/models');
$this->cparams = JModel::getInstance('Storage','AdmintoolsModel');

The first line instruct's Joomla! model loader to look in our component's back-end directory for module files, whereas the second line loads the model.

Under Joomla! 1.6.3 the first line does work properly, but causes the error message to be printed out. The problem is that com_cpanel, Joomla! 1.6's administrator control panel component, has a bug which instructs Joomla!'s model loader to look for an inexistent model class. This goes unnoticed until you ask the model loader to add a new path or load a different class. In that case the model loader tries to perform a self-check, sees that there is one leftover class which it can't load and complains.

Workaround
If you are concerned that you can't go with this error message on client sites, please edit plugins/system/admintools/admintools/core.php and –if you are a subscriber to the Professional release– plugins/system/admintools/admintools/pro.php. Find the following line:
JModel::addIncludePath(JPATH_ROOT.'/administrator/components/com_admintools/models');


and replace it with:

require_once JPATH_ROOT.'/administrator/components/com_admintools/models/storage.php';


This will cause the message to go away, by going around the Joomla! model loader code which exposes the bug in Joomla!'s com_cpanel.

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!

JUG-Heerenveen
Hi Nicholas,

Thank you very much for your extended answer. I can wait for new Joomla! 1.6.4 release. Reading your answer decided me to go on with Admin Tools 2.1.

BTW Thanks for all your great extensions! You are doing a great job!

Best Regards,
Benno

serjo
I had the same issue with a J1.5.23 installation and solved it by using the above workaround. Even though I use the PRO version, I had to make the changes to BOTH files (core.php AND pro.php)

nicholas
Akeeba Staff
Manager
I am glad it's working now :)

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!

JUG-Heerenveen
Hi Nicholas,

Just update Joomla! 1.6.3 to 1.6.4 Unfortunately, the error in Joomla! Control Panel is still there :-) I waited for the this release but now I will start editing the 2 files you mentioned.

Another issue in Admin Tools Pro: The native updater of Joomla! 1.6.3 sees the update to 1.6.4. Admin Tools Pro only sees the update 1.7ALPHA-1 and does not find (yet maybe) the update to 1.6.4.

Best Regards,
Benno

user41141
The same here i just updated to 1.6.4 the error is still there

pjdevries
I can confirm both issues. Admin Tools 2.1 only shows Joomla! 1.7ALPHA-1 and not 1.6.4. After manually upgrading to J! 1.6.4 the cpanelModelCpanel related error message is still there.

nicholas
Akeeba Staff
Manager
Both issues fixed in 2.1.1. Please upgrade. Thank you!

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!

pjdevries
Admin Tools says "You have the latest version" ;)

nicholas
Akeeba Staff
Manager
As the case has been ever since Admin Tools' inception, the update information is cached for 6 hours (otherwise you would overload our server and crash it, as it happened when I removed that caching from Akeeba Backup a month ago). You can either wait for 6 hours or click the button -even though it's a green checkmark- and click on "Reload update information".

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!

pjdevries
I tried the "Reload update information" without the expected result. I'll wait for 6 hours to see what happens.

slaes
Static resources removed - Niko - You dont waste any time :)

nicholas
Akeeba Staff
Manager
Thanks, slaes! I code at machine-gun rate these days :D

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!

slaes
I knew it, you got that gold keyboard with diamond keys after all. LOL

nicholas
Akeeba Staff
Manager
ROFL! Not even close :D But I really enjoy the Apple Wireless Keyboard. It's amazingly sturdy for such a light weight, low profile keyboard. And even after three weeks of 10-14hr/day coding sessions, its battery still reads "100%".

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!

pjdevries
It's been about ten hours ago, but Admin Tools still tells me I have the latest version. "Reload update information" doesn't work either.

Any suggestions?

nicholas
Akeeba Staff
Manager
I just made a slight adjustment on our server just a few minutes ago. Normally, using the "Reload update information" should work now. Can you retry, please? Thank you!

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!

pjdevries
Yep, the reload worked and update went flawlessly. Thanx!

nicholas
Akeeba Staff
Manager
Excellent! Thank you for the feedback :)

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!