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

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
uaintgotthisid
Joomla! Explorer
Joomla! Explorer
Posts: 361
Joined: Wed Sep 10, 2008 6:05 pm
Location: Essex, England, United Kingdom
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by uaintgotthisid » Mon Jan 03, 2011 9:59 pm

Thanks a million, I used the edited code and mine work well now. I don't have Docman installed though.

Kuenea, Alphareg, SOBI2, Autotweet, are installed if that helps anyone?
Joomla lover, web designer, marketeer
https://www.squareballoon.co.uk
JOIN US at Joomla! User Group London
https://www.joomlalondon.co.uk

 
charleyhankins
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 178
Joined: Fri Oct 12, 2007 7:07 pm

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by charleyhankins » Thu Jan 13, 2011 5:01 pm

THANKS GUYS!

I just listed all the plugins that were enabled and disabled all the plugins that I didn't need including the editor buttons, "readmore", "pagebreak", etc.

All back to normal now.

Thanks,
CH

yantzey
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Wed Feb 18, 2009 12:27 am

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by yantzey » Tue Feb 15, 2011 6:44 pm

I'm still getting this:

Parse error: syntax error, unexpected $end, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c01/h13/mnt/12356/domains/quivaproductions.com/html/libraries/joomla/html/editor.php on line 314

I've added and subtracted } and get nothing or the same issue as before. Can anyone help me resolve this. Its driving me nuts and has been for days now.

naza_pkgsgpari
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Oct 16, 2007 4:54 am

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by naza_pkgsgpari » Thu Mar 17, 2011 2:01 pm

I am running Joomla 1.5.22 and got the problem too.

In my case, i just disable SimpleCaddyButton plugin. Its werks!

Unreal04
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Mar 31, 2011 12:00 am

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by Unreal04 » Thu Apr 07, 2011 12:49 am

Also
Here is how to fix that problem
log in to Admin page and go to
Extensions>Plug in Manager
Find the
Editor Button - JAComment ON
and disable it.
problem solved.

cucubrian
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun May 22, 2011 2:05 pm

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by cucubrian » Mon May 23, 2011 3:19 pm

I had the same problem, that was after i shifted my j152 files to another cpanel server. Re installing never did solve the problem but i discovered that disabling several components that i had installed and where reflected in the database but actually i never did have by the backup date solved the problem.

User avatar
MrRoyce
Joomla! Ace
Joomla! Ace
Posts: 1176
Joined: Mon Oct 09, 2006 9:52 pm
Location: Tampuh Floriduh - The jewels of America's wang.
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by MrRoyce » Sun Aug 14, 2011 7:45 pm

I just got this same problem! In my case, I hadn't installed or changed anything. I was merrily updating content, uploading files with FileZilla, etc. Then, all of a sudden, I got this error when attempting up update a K2 category!

I tried to change the editor.php code as mentioned, and it fixed the fatal error, but all of my editor buttons were gone (page break, image, etc). The problem turned out that I had mistakenly moved the editors-xtd directory when uploading files. It was inadvertently moved to another directory so the editor couldn't find any plugins even though they were installed.

All was well after I found the wayward directory and moved it back to its rightful place :)

waising
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Nov 23, 2011 7:53 am

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by waising » Wed Nov 23, 2011 8:10 am

Thank you very much!!!

I have resolved the issue by following what dessery and caiorg said in their previous post.

I think this is a better solution to really "resolve" the issue instead of modifying the source code as a workaround.
Step 1. Identify which plugin is having problem:

You can either disable those plugin one by one in Administration control panel under Extensions -> Plugin Manager. When you disable one plugin and the error doesn't show again when editing post, then this is the plugin in problem.

You can also go to Extensions -> Install/Uninstall -> Plugins
Look for those plugins which its "version", "date" and "author" column is empty. These are the plugins in problem.

Step 2. Remove the plugin which is having problem:

You can try to uninstall the plugins under "Extensions -> Install/Uninstall -> Plugins", although you will see error uninstalling, you may try if you can edit post now to see if the Fatal error persists. (this works for some people, but for my case, the error persists)

If the error persists, you need to delete the plugins from your MySQL database table directly.

Go to your MySql database and open the "jos_plugins" table, delete those lines which the plugins are having problem (those you identified in Step1).

Step 3. You can now re-install the plugins:
At Adminstrator page then select "Extensions -> Install/Uninstall".
From here you can re-install the plugin and it will be working properly.
Hope it helps!

dondevivir
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jan 10, 2009 11:07 pm

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by dondevivir » Fri Nov 25, 2011 12:40 pm

I got the same error when installing JCE editor. I UNPublish the plugin, clean the chache and ready again.

dent_dc
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Jan 03, 2012 3:55 am
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by dent_dc » Tue Jan 03, 2012 3:59 am

If this happens after you reinstall, restore or upgrade your joomla usually all you need to do is to check the

components
administrator/components
modules
administrator/modules
plugins/ and all subfolders here

for differences

if any folder seems to be missing on the new install, upload it from the old without overwriting anything, just adding, it should work fine

saeer
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 29, 2012 11:10 pm
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by saeer » Wed Feb 29, 2012 11:20 pm

If this happens after you reinstall, restore or upgrade your joomla usually all you need to do is to check the

components
administrator4/components
modules
administrator4/modules
plugins/ and all subfolders here

for differences

if any folder seems to be missing on the new install, upload it from the old without overwriting anything, just adding, it should work fine
I recently solved this issue by disabling all editors besides JCE 154, and this corrected the errors.

I'm now able to view/edit articles!

dent_dc
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Jan 03, 2012 3:55 am
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by dent_dc » Thu Mar 01, 2012 12:28 pm

if any folder seems to be missing on the new install, upload it from the old without overwriting anything, just adding, it should work fine


Basicly what would have happened is that a plugin, component or module on your old install had a folder that it used that is now missing. When reinstalling the plugin/comp/mod was not included and as the folder with its files are missing itcauses your install to break.

Most common seems to be that you used a different editor, then after reinstall your install is configured to use an editor that doesnt exist, unless you replace the missing files or reinstall it.

User avatar
numinousmedia
Joomla! Ace
Joomla! Ace
Posts: 1562
Joined: Fri Dec 16, 2011 6:13 pm
Location: Millersburg, OH
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by numinousmedia » Fri Sep 21, 2012 3:19 pm

Thanks Yusuf Anyanzwa, your post answered my question!
Ryan
Frontend Developer and Joomla Professional
Ethode Website Development: http://www.ethode.com
Personal Site: http://www.numinousmedia.com

random12
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 103
Joined: Wed Jan 16, 2013 9:02 pm

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by random12 » Sun Jan 20, 2013 10:59 am

This sounds like my case, except it is not an editor. If you dont have the previous installation, how do you know where to put the files for each 3rd party extension that was previously installed?

dent_dc wrote:
if any folder seems to be missing on the new install, upload it from the old without overwriting anything, just adding, it should work fine


Basicly what would have happened is that a plugin, component or module on your old install had a folder that it used that is now missing. When reinstalling the plugin/comp/mod was not included and as the folder with its files are missing itcauses your install to break.

Most common seems to be that you used a different editor, then after reinstall your install is configured to use an editor that doesnt exist, unless you replace the missing files or reinstall it.

User avatar
webytint
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu May 12, 2011 4:25 pm
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by webytint » Mon May 27, 2013 8:56 am

Cuando reinstaléis un joomla, o restauréis una versión vieja, por que habéis tenido un ataque de virus o algo, y hayáis subido una versión vieja, podéis encontraros con muchos problemas.

Uno de ellos es que los componente, plugins y plantillas que teníais instaladas no está metidas en esa versión vieja que tenéis guardada, por lo que por un lado en la base de datos os pide elementos (componentes, plugin, plantiulla, editores, idiomas…) que no los tenéis. Eso os dará errores, por lo que conviene revisar toda la web antes de darlo por terminado el trabajo de restauración.

Uno de los posibles errores es:

Al entrar dentro de un artículo o módulo (cualquier parte que tenga un editor)

Fatal error: Call to undefined method stdClass::onDisplay() in .. libraries/joomla/html/editor.php on line 263

Antes de nada probad a despublicar los plugins de todos los editores que tengáis, si con ello se soluciona, tenéis que reinstalar el editor que os falte, si no sabéis cual, reinstalad todos.


Con eso debería bastar.

http://webytint.net/blog/error-joomla-1 ... -line-263/
Recursos para Desarrollo Web, Diseño Gráfico y Fotografía
http://www.webytint.net

mizanbdit
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Mar 18, 2009 3:35 pm
Location: Dhaka
Contact:

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by mizanbdit » Thu Feb 20, 2014 8:21 am

I am using Joomla 1.5

yesterday, I changed work on Email Cloaking plugin to disable email climbable options on the website's content , then happened the error

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

I replaced code according to your instruction here.

Now, its working fine for Editor.php

Thanks a lot

wassaj
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Feb 27, 2014 7:18 pm

Re: Fatal error: Call to undefined method stdClass::onDispla

Post by wassaj » Mon Jan 18, 2016 11:19 pm

Found the problem. Just for posterity:

Change line 268 of /libraries/joomla/html/editor.php from:

Code: Select all

$resultTest = $plugin->onDisplay($editor);
To:

Code: Select all

// $resultTest = $plugin->onDisplay($editor);

if (method_exists($plugin, 'onDisplay')) {
     $result[] = $plugin->onDisplay($editor);
     if ($resultTest) $result[] =  $resultTest;
}
else{
     $resultTest = false;
     echo '<h4>Bad Plugin: '.$plugin->name.'</h4>';
}
This will get rid of the error, and also show you what plugin is not properly installed so you can reinstall it (in my case it was "Modules Anywhere").

.

 

Locked

Return to “Administration 1.5”