Page 4 of 4

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

Posted: Mon Jan 03, 2011 9:59 pm
by uaintgotthisid
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?

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

Posted: Thu Jan 13, 2011 5:01 pm
by charleyhankins
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

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

Posted: Tue Feb 15, 2011 6:44 pm
by yantzey
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.

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

Posted: Thu Mar 17, 2011 2:01 pm
by naza_pkgsgpari
I am running Joomla 1.5.22 and got the problem too.

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

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

Posted: Thu Apr 07, 2011 12:49 am
by Unreal04
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.

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

Posted: Mon May 23, 2011 3:19 pm
by cucubrian
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.

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

Posted: Sun Aug 14, 2011 7:45 pm
by MrRoyce
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 :)

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

Posted: Wed Nov 23, 2011 8:10 am
by waising
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!

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

Posted: Fri Nov 25, 2011 12:40 pm
by dondevivir
I got the same error when installing JCE editor. I UNPublish the plugin, clean the chache and ready again.

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

Posted: Tue Jan 03, 2012 3:59 am
by dent_dc
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

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

Posted: Wed Feb 29, 2012 11:20 pm
by saeer
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!

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

Posted: Thu Mar 01, 2012 12:28 pm
by dent_dc
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.

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

Posted: Fri Sep 21, 2012 3:19 pm
by numinousmedia
Thanks Yusuf Anyanzwa, your post answered my question!

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

Posted: Sun Jan 20, 2013 10:59 am
by random12
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.

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

Posted: Mon May 27, 2013 8:56 am
by webytint
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/

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

Posted: Thu Feb 20, 2014 8:21 am
by mizanbdit
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

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

Posted: Mon Jan 18, 2016 11:19 pm
by wassaj
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").

.