Fatal error: Call to undefined method stdClass::onDisplay()
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.
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.
- WorkOutMan
- Joomla! Explorer
- Posts: 436
- Joined: Sat Jul 11, 2009 8:33 pm
- Location: Van Nuys, California
Re: Fatal error: Call to undefined method stdClass::onDisplay()
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!
I'm now able to view/edit articles!
"The accumulation of knowledge leads to the recognition of ignorance."
- Prof. Ie
If you have an issue, and think I can help you, feel invited to PM me a link to your post.
- Prof. Ie
If you have an issue, and think I can help you, feel invited to PM me a link to your post.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Jan 01, 2010 5:11 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Exactly! Thank you so much all of you! You saved my life!jbanes78 wrote:dessery wrote:Hi All
I just ran into this problem today and found this thread. Thanks to caiorg's excellent post i was able to solve the issue very easily. My problem started aften i uninstalled the content templater component/plugin.
The problem was exactly as caiorg said. There was still a row in the jos_plugins table in the database for the plugin that adds a button to the editor. Just deleted that row and it started working again instantly.
Hope this may help someone with the same problem.
This absolutely did the trick for me.
Thank You so much for your post. I also tried out Content Templater, and once uninstalled.... error.
Your post saved me!!!
Jim
I uninstalled Content Templater! Not useful! And Seconds later, No way to use the editor and create/edit content!
I followed the instructions, then on my CPanel, opened PhpMyAdmin, selected my site database, selected the "jos_plugins" table, then browsed this table until I found the remaining row "Editor Button - Content Templater". Then I deleted the row!
Everything was working fine instantly!!
Again Thanks Men!!!!
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 30, 2009 5:43 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
THANK YOU GRAHAM! Your code worked great!GrahamM wrote:I am running Joomla 1.5.15 and for my editor.php page the code at line 268 shows a very slightly altered code with the word Test included, e.g. $resultTest rather than $result as Ed provided above.ed209 wrote: ................
To retain full functionality, simply encapsulate the line with a check for the ‘onDisplay’ method as shown below.
// This was the original code that did not check for the method
// $result[] = $plugin->onDisplay($editor);
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
Taking this into account I modified the code as suggested (see below) and it works great with no more Fatal Error messages and the editor is working fine again!
My modification of Ed's original suggestion
// Try to authenticate -- only add to array if authentication is successful
if (method_exists($plugin, 'onDisplay')) {
$resultTest = $plugin->onDisplay($editor);
}
if ($resultTest) $result[] = $resultTest;
Thanks Ed, great help!!
-
- Joomla! Apprentice
- Posts: 12
- Joined: Wed Jan 06, 2010 10:05 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
http://img63.imageshack.us/img63/5553/joomlaerror.jpg
This is one from my problems today.
The second is this:
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /hermes/bosweb/web097/b970/my.website/public_html/libraries/joomla/html/editor.php on line 313
Help please!!
This is one from my problems today.
The second is this:
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /hermes/bosweb/web097/b970/my.website/public_html/libraries/joomla/html/editor.php on line 313
Help please!!
-
- Joomla! Apprentice
- Posts: 12
- Joined: Wed Jan 06, 2010 10:05 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
The first error is at admin control panel... the second one is at the live website.
I use joomla 1.5.7 at legacy mode and the admin template is Khepri.
I use joomla 1.5.7 at legacy mode and the admin template is Khepri.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Wed Jan 06, 2010 10:05 pm
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Apr 20, 2009 8:10 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I have tried every suggestion offered. Nothing has worked. What do I do now? My client is going to be totally pissed if I have to take the time to totally re-install.
Oh, and the error has changed slightly. Now the php line is not 261, it's 263
Oh, and the error has changed slightly. Now the php line is not 261, it's 263
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Feb 19, 2010 12:38 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Man!!!!Yusuf Anyanzwa wrote:Go to root directory, libraries\joomla\html\editor.php
In line 261 replace
Code:
// Try to authenticate
$result[] = $plugin->onDisplay($editor);
with
Code:
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
This code works
U save my ass. It works!!!!
I will pray to you man!!! Thanks a lot!
5 stars, buddy!!!!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Mar 06, 2010 6:27 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
consigliere wrote:I have 1.5.3 with legacy mode. When Trying to create a new content item I have this fatal error:
Fatal error: Call to undefined method stdClass::onDisplay() in /home/wwwccnt/public_html/libraries/joomla/html/editor.php on line 263
-------------------------
i also facing the same problem.
Recently I'm using a Datso Gallery extension to view a picture in my website. That's what happened.
What i have done is, unable this plugins:
Datso Picbutton
Search-Datsogallery
Datso Pic
now.....coming back to normal.
Suggestion is, check back the latest extension you installed, then try to unable one by one and see how.....good luck
-
- Joomla! Apprentice
- Posts: 16
- Joined: Thu Mar 04, 2010 5:38 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
button conflict, good call. xmap plug-in. That was out of left field..
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sun Sep 21, 2008 4:44 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Changing code as suggested Worked Perfectly on Joomla Version 1.5.15
Thanks a Ton !
Thanks a Ton !
-
- Joomla! Apprentice
- Posts: 8
- Joined: Tue Mar 02, 2010 6:56 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I have the same problem as everyone else. I get the following error:
Fatal error: Call to undefined method stdClass::onDisplay() in /home/ebruml/public_html/joomla/libraries/joomla/html/editor.php on line 268
When i look at the file there is this code:
// Try to authenticate -- only add to array if authentication is successful
$resultTest = $plugin->onDisplay($editor);
if ($resultTest) $result[] = $resultTest;
}
return $result;
}
What should it say to get the editor to work... I am really desperate to resolve this issue.
Fatal error: Call to undefined method stdClass::onDisplay() in /home/ebruml/public_html/joomla/libraries/joomla/html/editor.php on line 268
When i look at the file there is this code:
// Try to authenticate -- only add to array if authentication is successful
$resultTest = $plugin->onDisplay($editor);
if ($resultTest) $result[] = $resultTest;
}
return $result;
}
What should it say to get the editor to work... I am really desperate to resolve this issue.
- Timeisnow
- Joomla! Explorer
- Posts: 326
- Joined: Tue Nov 04, 2008 12:34 am
- Location: On the far side of the moon and/or under your chair
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
for me, was seyret button - I had just enabled it, was wondering why it was off... now I know why... - Some advice: If you change things, remember everything you changed, so you can figure out what caused a problem.
CriticalUnity.org - Need to Know Info
===> Clarifying conspiracy realities of mass deception for Humanity before it's too late....
THE TIME IS NOW to investigate!
===> Clarifying conspiracy realities of mass deception for Humanity before it's too late....
THE TIME IS NOW to investigate!
- Timeisnow
- Joomla! Explorer
- Posts: 326
- Joined: Tue Nov 04, 2008 12:34 am
- Location: On the far side of the moon and/or under your chair
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
you didnt have to do thatWorkOutMan wrote: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!
CriticalUnity.org - Need to Know Info
===> Clarifying conspiracy realities of mass deception for Humanity before it's too late....
THE TIME IS NOW to investigate!
===> Clarifying conspiracy realities of mass deception for Humanity before it's too late....
THE TIME IS NOW to investigate!
- corrado444
- Joomla! Guru
- Posts: 860
- Joined: Thu Jul 06, 2006 8:30 am
- Location: Sacramento
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
Code: Select all
My modification of Ed's original suggestion
// Try to authenticate -- only add to array if authentication is successful
if (method_exists($plugin, 'onDisplay')) {
$resultTest = $plugin->onDisplay($editor);
}
if ($resultTest) $result[] = $resultTest;
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: [url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips
Itunes: [url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun May 11, 2008 5:59 pm
Re: Fatal error: Call to undefined method stdClass::onDispla
Thanks for the postings. I had installed (then uninstalled) Sourcerer but the Editor Button was still enabled.
I am sooo glad I didn't have to do a reinstall.
Huge Thanks and sigh of relief.
I am sooo glad I didn't have to do a reinstall.
Huge Thanks and sigh of relief.
- darb
- Joomla! Hero
- Posts: 2042
- Joined: Thu Jul 06, 2006 12:57 pm
- Location: Stockholm Sweden
Re: Fatal error: Call to undefined method stdClass::onDispla
I have the same error with Joomla 1.5.18 and addcustomtag - $document->addCustomTag($return);
Fatal error: Call to undefined method JDocumentRAW::addCustomTag() in /home/site/public_html/libraries/joomla/html/editor.php on line 111
any suggestion for solution?
Fatal error: Call to undefined method JDocumentRAW::addCustomTag() in /home/site/public_html/libraries/joomla/html/editor.php on line 111
any suggestion for solution?
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue Jul 28, 2009 12:22 am
Re: Fatal error: Call to undefined method stdClass::onDispla
I encounter this error since 1.5.15 and run those steps ever since. Sad - I updated my site to 1.5.18 recently and got that error message again. I would suggest implementing that solution into Joomla core or into your upgrade and test procedures. Otherwise you get that error message every time you update your system.
Thanks a lot to Yusuf Anyanzwa posting his solution that work flawless out of the box.
Thanks a lot to Yusuf Anyanzwa posting his solution that work flawless out of the box.
- creativesights
- Joomla! Guru
- Posts: 642
- Joined: Tue Jan 13, 2009 11:50 pm
- Location: San Diego, California, USA
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
Had the same issue. Fixed it by deactivating a RokDownloads plugin.
Andrew Crossan
CreativeSights
Professional Custom Website Design & Development in San Diego
https://www.creativesights.com
CreativeSights
Professional Custom Website Design & Development in San Diego
https://www.creativesights.com
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue Jul 28, 2009 12:22 am
Re: Fatal error: Call to undefined method stdClass::onDispla
I have forgotten to mention that happens only if you run Joomla updates. I tried to reproduce same error with a installation from scratch. I installed all components as I have in production but did not got the same error message at all. I assume a small glitch within upgrade files.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Wed Mar 10, 2010 7:31 pm
Re: Fatal error: Call to undefined method stdClass::onDispla
I have this error : Fatal error: Call to undefined method stdClass::onDisplay() in /home/purecomm/public_html/libraries/joomla/html/editor.php on line 268
Not sure what to do.
Version : 1.5.15
EDIT : I did Ed's coding and got : Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/purecomm/public_html/libraries/joomla/html/editor.php on line 320
Not sure what to do.
Version : 1.5.15
EDIT : I did Ed's coding and got : Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/purecomm/public_html/libraries/joomla/html/editor.php on line 320
-
- Joomla! Fledgling
- Posts: 3
- Joined: Fri Sep 04, 2009 6:38 am
Re: Fatal error: Call to undefined method stdClass::onDispla
I had the same problem using Joomla v1.5.15 when I tried editing an existing article. The problem was caused by DOClink editor being enabled after I installed DOCman and it's addons. Before that, I was working with TinyMCE editor. I think the solution is simply to ensure that one has only one editor enabled at a time. Thanks Joorland for the post!joorland wrote:Hello to all,
I solve this issue Call to undefined method stdClass::onDisplay() by disabling the doclink plugin (DOCLink is a Joomla! editor plugin that allows the insertion of links to DOCman files using a popup dialog.)
All the best
- Timeisnow
- Joomla! Explorer
- Posts: 326
- Joined: Tue Nov 04, 2008 12:34 am
- Location: On the far side of the moon and/or under your chair
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
And same here! I just disabled it, and now can post.mustaq-ahmed wrote:Hi
Same hereI had the same problem in my case it was with the Seyret Button plugin on J.1.5.8 so it may be a small bug between J.1.5.x and advanced editors.. mmm
Anyone recomment a good editor that doest add _mce stuff on links?
CriticalUnity.org - Need to Know Info
===> Clarifying conspiracy realities of mass deception for Humanity before it's too late....
THE TIME IS NOW to investigate!
===> Clarifying conspiracy realities of mass deception for Humanity before it's too late....
THE TIME IS NOW to investigate!
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sun Mar 29, 2009 10:38 pm
Re: Fatal error: Call to undefined method stdClass::onDispla
Sefket wrote:I have this error : Fatal error: Call to undefined method stdClass::onDisplay() in /home/purecomm/public_html/libraries/joomla/html/editor.php on line 268
Not sure what to do.
Version : 1.5.15
EDIT : I did Ed's coding and got : Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/purecomm/public_html/libraries/joomla/html/editor.php on line 320
This is as far as I got...is there a solution? If it's a missing bracket as I have seen suggested elsewhere could someone list the entire block of code needed to work?
- dunxmax
- Joomla! Intern
- Posts: 60
- Joined: Mon Sep 21, 2009 9:33 am
- Location: UK
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
Hi,
I have just had this same problem - followed what DBoon and caiorg said.
Common problem seems to be transfer of AVReloaded component.
Uninstall component, but don't forget to unpublish it first, which is what I did.
Editor is back - hooray!
Duncan
I have just had this same problem - followed what DBoon and caiorg said.
Common problem seems to be transfer of AVReloaded component.
Uninstall component, but don't forget to unpublish it first, which is what I did.
Editor is back - hooray!
Duncan
The more we learn the less we know!
http://www.aquamandesign.co.uk
Committed to the Joomla way of life, based in the UK.
http://www.aquamandesign.co.uk
Committed to the Joomla way of life, based in the UK.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Nov 27, 2009 5:10 pm
Re: Fatal error: Call to undefined method stdClass::onDispla
I had this error mine was on line 268, libraries/joomla/html/editor.php on line 268 When attempting to use the html editor for Modules Custom, the page only displayed partially, my setup, joomla 1.5.20, DOCman v1.4.0.stable and Legacy: 1.0, to fix it I disabled in the plugin DOCLink and bingo it was fixed.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Oct 28, 2010 9:42 am
Re: Fatal error: Call to undefined method stdClass::onDispla
Yusuf Anyanzwa wrote:Go to root directory, libraries\joomla\html\editor.php
In line 261 replace
Code:
// Try to authenticate
$result[] = $plugin->onDisplay($editor);
with
Code:
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
This code works
Yusuf Anyanzwa you are the best...this worked for me...thanks a lot
-
- Joomla! Apprentice
- Posts: 44
- Joined: Mon Dec 28, 2009 9:01 am
Re: Fatal error: Call to undefined method stdClass::onDispla
EDIT : I did Ed's coding and got : Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/purecomm/public_html/libraries/joomla/html/editor.php on line 320[/quote]
Likewise for me...
Anyone any clue as to solving this?
How can I find out what plugin could be causing the problem here??
Likewise for me...
Anyone any clue as to solving this?
How can I find out what plugin could be causing the problem here??
- Josh Lewis
- Joomla! Guru
- Posts: 528
- Joined: Wed Jun 11, 2008 11:12 pm
- Location: Lynnwood,WA
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDispla
After spending a ton of time trying to figure it out, it was a broken editor button that was the problem. What a hassle! At least I fixed it.
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sat Sep 18, 2010 9:11 pm
Re: Fatal error: Call to undefined method stdClass::onDispla
ed209 wrote:Hi ,
i tried this but it didn't worked ,if i try this then it shows error on line 320, ie., unaccepted termination of function. please help my whole the site progress is stopped due to same problem
I have seen over 20 reported errors relating to this incident and most seem to indicate removing plug-ins and/or removing the offending line of code.
If you remove the offending line 261 in the 1.5.7 release of Joomla, the editor will work but you will lose access to button plug-ins such as ‘Image’ and ‘Page Break’.
To retain full functionality, simply encapsulate the line with a check for the ‘onDisplay’ method as shown below.
// This was the original code that did not check for the method
// $result[] = $plugin->onDisplay($editor);
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
I hope this helps everyone.
Best regards,
Ed.