[Solved] Call to a member function add() on a non-object – error in Joomla

This was an error I received in Joomla Administrator panel. Whenever I try to post an article or upload a module, I got a white blank screen. There was no logs in the Apache error log. I have changed ‘error_reporting’ from ‘none’ to ‘development’ mode. After enabling ‘development mode’, I got the below error:

Fatal error: Call to a member function get() on a non-object in /home/$user/public_html/joomla/cache/storage/memcache.php on line 449

If you got this error, then you can follow the steps below which helped me to resolve the error.

Solution:

In your Joomla Administrator panel, check

Global Configuration > System > Cache settings

Check if any cache is enabled. Even though you have disabled cache, memcache will be ON which is giving you this error.

You can manually disable Memcache in configuration.php. Change “public $cache_handler” from ‘memcache’ to ‘file’.

public $cache_handler = 'file';

This will fix the error.

That’s it!!!

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

One thought on “[Solved] Call to a member function add() on a non-object – error in Joomla

  1. If you follow such steps as you described the error, it is easy to fix and you can get involved without fear.

Leave a Reply

Your email address will not be published. Required fields are marked *