Support

Admin Tools

#27835 Problem only with latest version of Admin Tools

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 on Thursday, 22 June 2017 17:17 CDT

mikem22
Hi

I have a problem with 4.20 of Admin tools.
When I install and go to the front end of the website, I get Error: Serialization of 'Closure' is not allowed .. And the site is inaccessible.

Reverting to 4.1.3 clears the error and I can access the site as normal : https://www.mjm.co.uk/

Mike 

nicholas
Akeeba Staff
Manager
You are using a bad quality JoomlaShine template. They are doing something really wrong: because they don't understand how PHP works, they accidentally end up trying to save the state of all plugins loaded on your site into the cache. This will break your site.

Short term solution: go to your site's backend, Global Configuration and set Caching to OFF.

Long term solution (simple): use a different template.

Long term solution (hard): contact the template developer and tell them that they must NOT cache the application object returned by JFactory::getApplication() because it contains the event dispatcher which, in turn, has the plugin objects. The plugin objects are meant to be transient and reloaded on each page load, even if the page is cached. By including the application object inside their objects they end up having Joomla! cache try to save the state of all plugins which actually breaks the site or fails completely when a plugin uses a closure (which is an encouraged practice in modern PHP - where "modern" means "best practices from 2010 onwards"). They should fix their template framework to avoid displaying this wrong behaviour. In fact, they should just call JFactory::getApplication() since it simply returns the cached object without any measurable impact on the application execution time.

If you decide to follow the hard solution please let them know that this answer comes from the same Nicholas Dionysopoulos who writes Akeeba Backup and has written a sizeable portion of Joomla! itself. They should have my email if they need to ask me follow-up questions.

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!

mikem22
Thank you Nicholas,

I must admit that have other issues with the template and will look for a new one. Do you have any recommendation for Template providers that are compliant ?

Thanks again.

Mike

nicholas
Akeeba Staff
Manager
Hi Mike,

I am using the JooStrap template which is a bare bones Bootstrap 3 template for Joomla. It's like a dragster: lightweight, blazing fast, not very forgiving to the unexperienced operator. It requires very thorough customization to make something beautiful, i.e. you end up doing templating the "right way". The great thing about this approach is that it never breaks when updating Joomla -there's not much PHP code to have issues with!- and it's blazing fast, again because there's so little PHP.

Then, there's chaos. Every template framework has a tonne of PHP code and all of that comes at a price in terms of execution speed, possibility that something breaks on update or straight up bad code having unintended results (as you painfully observed). I am not comfortable using any framework-based template but if I were absolutely forced to I would go to one of the established template providers like RocketTheme, JoomlArt etc. Their code is still heavy and they do have the occasional bad idea but it's usually with optional features. As a rule of thumb, if you have enabled the default Admin Tools configuration options, including the .htaccess Maker, and something doesn't work in a template: don't use that something because it'd be a security nightmare.

And a final tip. All template clubs have free templates which use their template framework. Try them on a dev site and see if you have problems, evaluate their performance etc. This is the best way to make an informed decision.

I hope that helps!

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!