Tuesday, July 23, 2013

How to Solve "Fatal error: Call to undefined method stdClass::onDisplay()" in Joomla! 2.5

I will show you on this post how to solve the following error:

Fatal error: Call to undefined method stdClass::onDisplay()

1. You need to go to \libraries\joomla\html\ folder on your hosting.

2. Download and open editor.php file in your editor. You should look for the following code:

if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author))

Such code is located on line 459.

3. Replace the code with the following code:

if (method_exists($plugin,'onDisplay') && $temp = $plugin->onDisplay($editor, $this->asset, $this->author)) 

4. Save changes and upload upload file to your Joomla. Replace original editor.php. Be sure to back up original file before modification.

Disqus Comments