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
WorkOutMan
Joomla! Explorer
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()

Post by WorkOutMan » Mon Dec 28, 2009 5:56 pm

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! :D
"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. :)

 
mediterran81
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jan 01, 2010 5:11 am

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

Post by mediterran81 » Fri Jan 01, 2010 5:17 am

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
Exactly! Thank you so much all of you! You saved my life!
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!!!!

treebeard
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Jan 30, 2009 5:43 am

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

Post by treebeard » Wed Jan 06, 2010 5:50 am

GrahamM wrote:
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);
}
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.
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!! :)
THANK YOU GRAHAM! Your code worked great! :)

albvitali
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Jan 06, 2010 10:05 pm

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

Post by albvitali » Wed Jan 06, 2010 10:10 pm

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!!

albvitali
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Jan 06, 2010 10:05 pm

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

Post by albvitali » Thu Jan 07, 2010 12:52 am

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.

albvitali
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Jan 06, 2010 10:05 pm

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

Post by albvitali » Sat Jan 09, 2010 4:06 am

So!!!!!!

jbandsma
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Apr 20, 2009 8:10 pm

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

Post by jbandsma » Tue Jan 19, 2010 4:09 pm

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

dboyko
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Feb 19, 2010 12:38 am

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

Post by dboyko » Fri Feb 19, 2010 12:43 am

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
Man!!!!
U save my ass. It works!!!!

I will pray to you man!!! Thanks a lot!

5 stars, buddy!!!! :)

zahar
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Mar 06, 2010 6:27 pm

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

Post by zahar » Sat Mar 06, 2010 6:37 pm

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

samiam
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 04, 2010 5:38 pm

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

Post by samiam » Thu Mar 11, 2010 5:41 pm

button conflict, good call. xmap plug-in. That was out of left field..

soshe
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Sep 21, 2008 4:44 am

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

Post by soshe » Fri Mar 12, 2010 8:37 am

Changing code as suggested Worked Perfectly on Joomla Version 1.5.15

Thanks a Ton !

ebruml
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Mar 02, 2010 6:56 am

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

Post by ebruml » Sat Mar 13, 2010 9:02 pm

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.

User avatar
Timeisnow
Joomla! Explorer
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

Post by Timeisnow » Sat May 22, 2010 1:05 am

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!

User avatar
Timeisnow
Joomla! Explorer
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

Post by Timeisnow » Sat May 22, 2010 1:08 am

WorkOutMan 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! :D
you didnt have to do that
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!

User avatar
corrado444
Joomla! Guru
Joomla! Guru
Posts: 856
Joined: Thu Jul 06, 2006 8:30 am
Location: Sacramento
Contact:

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

Post by corrado444 » Mon May 24, 2010 5:07 am

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;
I could kiss you. :-[ Works great in Joomla 1.5.17
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: [url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips

vlewis
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun May 11, 2008 5:59 pm

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

Post by vlewis » Thu May 27, 2010 9:53 pm

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.

User avatar
darb
Joomla! Ace
Joomla! Ace
Posts: 1545
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden
Contact:

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

Post by darb » Sat Jun 05, 2010 7:05 pm

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?
Success in the long run Its not about the code its about the people and community that's make it!
Its not what you say its what you do that matters!

Darb - aka ssnobben

andyhelico
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Jul 28, 2009 12:22 am

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

Post by andyhelico » Mon Jun 07, 2010 5:03 pm

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. :geek:

User avatar
creativesights
Joomla! Guru
Joomla! Guru
Posts: 636
Joined: Tue Jan 13, 2009 11:50 pm
Location: San Diego, California, USA
Contact:

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

Post by creativesights » Thu Jun 17, 2010 2:53 am

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

andyhelico
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Jul 28, 2009 12:22 am

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

Post by andyhelico » Thu Jun 17, 2010 4:10 am

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.

Sefket
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Mar 10, 2010 7:31 pm

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

Post by Sefket » Fri Jul 02, 2010 5:45 pm

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

joviman
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Sep 04, 2009 6:38 am

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

Post by joviman » Sun Jul 11, 2010 8:26 pm

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
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!

:pop

User avatar
Timeisnow
Joomla! Explorer
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

Post by Timeisnow » Sun Jul 25, 2010 6:46 pm

mustaq-ahmed wrote:Hi
I 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
Same here >:(
And same here! I just disabled it, and now can post.

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!

A V North
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Mar 29, 2009 10:38 pm

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

Post by A V North » Sat Aug 28, 2010 12:11 am

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?

User avatar
dunxmax
Joomla! Intern
Joomla! Intern
Posts: 56
Joined: Mon Sep 21, 2009 9:33 am
Location: UK
Contact:

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

Post by dunxmax » Thu Sep 23, 2010 10:12 am

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
The more we learn the less we know!

http://www.aquamandesign.co.uk
Committed to the Joomla way of life, based in the UK.

dennisvon
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Nov 27, 2009 5:10 pm

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

Post by dennisvon » Mon Oct 18, 2010 9:17 am

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.

farodeluz
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Oct 28, 2010 9:42 am

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

Post by farodeluz » Thu Oct 28, 2010 9:46 am

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 :)

LeopardCT
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Mon Dec 28, 2009 9:01 am

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

Post by LeopardCT » Tue Nov 30, 2010 8:04 pm

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??

User avatar
Josh Lewis
Joomla! Guru
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

Post by Josh Lewis » Tue Dec 07, 2010 6:33 am

:laugh: 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. 8)

shivnarayan
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Sep 18, 2010 9:11 pm

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

Post by shivnarayan » Wed Dec 15, 2010 5:36 pm

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.

 

Locked

Return to “Administration 1.5”