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.
- consigliere
- Joomla! Explorer
- Posts: 365
- Joined: Fri Sep 02, 2005 10:23 pm
- Location: Mazatlan, Sinaloa, Mexico
- Contact:
Fatal error: Call to undefined method stdClass::onDisplay()
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
Fatal error: Call to undefined method stdClass::onDisplay() in /home/wwwccnt/public_html/libraries/joomla/html/editor.php on line 263
You do not have the required permissions to view the files attached to this post.
Last edited by pe7er on Mon Apr 28, 2008 8:56 pm, edited 1 time in total.
Reason: Please use a more descriptive subject for your messages.
Reason: Please use a more descriptive subject for your messages.
http://www.joomla.com.mx
Joomla Mexico!
Joomla Mexico!
- consigliere
- Joomla! Explorer
- Posts: 365
- Joined: Fri Sep 02, 2005 10:23 pm
- Location: Mazatlan, Sinaloa, Mexico
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Upload all the files again and the same error remains on the frontpage.
I am totally lost
I am totally lost
http://www.joomla.com.mx
Joomla Mexico!
Joomla Mexico!
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sat Apr 26, 2008 3:41 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I have the same problem. Seems lots of other people do, too, but no answers posted yet, it seems.
Any thoughts, anyone?
Thanks!
Any thoughts, anyone?
Thanks!
- consigliere
- Joomla! Explorer
- Posts: 365
- Joined: Fri Sep 02, 2005 10:23 pm
- Location: Mazatlan, Sinaloa, Mexico
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
It seems it is an internal error on the Joomla Code, perhaps they released the 1.5.3 and did not noticed this error. But we need to wait until a response to solve it.theboblet2 wrote:I have the same problem. Seems lots of other people do, too, but no answers posted yet, it seems.
Any thoughts, anyone?
Thanks!
http://www.joomla.com.mx
Joomla Mexico!
Joomla Mexico!
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sat Apr 26, 2008 3:41 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I found this post:
http://forum.joomla.org/viewtopic.php?f ... 6#p1286656
For me, reinstalling sorted the problem. A bit of a pain, but at least it works now
http://forum.joomla.org/viewtopic.php?f ... 6#p1286656
For me, reinstalling sorted the problem. A bit of a pain, but at least it works now
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri May 02, 2008 2:07 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I had the same problem on a 1.5.2 installation. Turned out to be the doclink plugin 1.4.0rc1. After disabling the plugin the error disappeared.
- consigliere
- Joomla! Explorer
- Posts: 365
- Joined: Fri Sep 02, 2005 10:23 pm
- Location: Mazatlan, Sinaloa, Mexico
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
What I coincidence, I enabled all the docman suite and upgraded to 1.5.3. Put Joomla in legacy mode, then the error came up.patricko67 wrote:I had the same problem on a 1.5.2 installation. Turned out to be the doclink plugin 1.4.0rc1. After disabling the plugin the error disappeared.
Now I now that the Docman 1.4.rc3. distribution is not compatible with 1.5.3.
http://www.joomla.com.mx
Joomla Mexico!
Joomla Mexico!
-
- Joomla! Intern
- Posts: 91
- Joined: Fri Mar 28, 2008 6:45 pm
- Location: New York
- Contact:
--SOLVED!-- Re: Fatal error stdClass::onDisplay()
I found this and it worked. I had trouble every time I tried to create an article. I had to simply shut off the editor plugin button.
I run Joomla 1.5.3, and use JCE, ArtForms and LinkR. It worked when I turned off the button for LinkR. It seemed to be interfering with the rendering of editor pages. The error you get when creating an article also appeared when I was trying to work with my forms.
http://www.joomlaholic.com/index.php?op ... 84&catid=5
Thank god, I hate reinstalls
CHANGE THE HEADER TO SOLVED
I run Joomla 1.5.3, and use JCE, ArtForms and LinkR. It worked when I turned off the button for LinkR. It seemed to be interfering with the rendering of editor pages. The error you get when creating an article also appeared when I was trying to work with my forms.
http://www.joomlaholic.com/index.php?op ... 84&catid=5
Thank god, I hate reinstalls
CHANGE THE HEADER TO SOLVED
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Oct 25, 2008 7:56 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Hi All,
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.
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.
-
- Joomla! Apprentice
- Posts: 26
- Joined: Sat Feb 03, 2007 7:43 am
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Oct 25, 2008 7:56 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
You're most welcome.
By the way, please note that this code change makes the system more resistant to leftover (or failed install, or incompatible) editor plug-ins so that you can still access all the remaining valid functions.
When I ran into this problem myself, it was because of an attachment component and pulg-in that I forgot about while upgrading to the latest release. A look in the jos_plugins tables using something like phpMyAdmin with a filter of editors-xtd should point you in the right direction.
Glad to be of help.
By the way, please note that this code change makes the system more resistant to leftover (or failed install, or incompatible) editor plug-ins so that you can still access all the remaining valid functions.
When I ran into this problem myself, it was because of an attachment component and pulg-in that I forgot about while upgrading to the latest release. A look in the jos_plugins tables using something like phpMyAdmin with a filter of editors-xtd should point you in the right direction.
Glad to be of help.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Nov 01, 2008 9:45 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Editor works but no doclink shown.ed209 wrote:Hi All,
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.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Oct 25, 2008 7:56 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
bitye, can you elaborate on the doclink comment? Possibly attach a screen capture etc. Happy to help if I can.
- joorland
- Joomla! Apprentice
- Posts: 34
- Joined: Wed Sep 10, 2008 4:53 pm
- Location: Bucuresti
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
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 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
- linkedla
- Joomla! Apprentice
- Posts: 29
- Joined: Fri Dec 15, 2006 3:05 am
- Location: Miami, USA
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
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
Jose Antonio Suarez.
Graphic Designer
Graphic Designer
- mustaq-ahmed
- Joomla! Explorer
- Posts: 312
- Joined: Tue May 15, 2007 7:15 am
- Location: South Africa
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
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
Mustaq -War defines who's left , not who's right...
Live. Love, Learn and Joomla ! FREE ! Joomla Extensions and Tutorials @ http://www.herdboy.com Joomla Web Design and Development / Joomla Retainer Club
Live. Love, Learn and Joomla ! FREE ! Joomla Extensions and Tutorials @ http://www.herdboy.com Joomla Web Design and Development / Joomla Retainer Club
-
- Joomla! Intern
- Posts: 95
- Joined: Sat Nov 08, 2008 7:37 pm
- Location: London
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I also experienced this problem and thanks to this post I discovered it was the Doclink Plugin causing all the problems.
Seems it doesn't like 1.5.8.
Seems it doesn't like 1.5.8.
Blootrax Underground Radio - Broadcasting 24 hours a day 365 days a year!
http://www.blootrax.co.cc
http://www.blootrax.co.cc
- THE_AI
- Joomla! Explorer
- Posts: 252
- Joined: Sat Jun 03, 2006 4:33 pm
- Contact:
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Hey there!
I've run in exactly the same problem.
My story:
the website is working perfectly on my local host, but on the live problem there is this problem.
As I uploaded the files through FTP i noticed that I had a lot of us not uploaded files. With every upload there were files that were not uploaded.
I believe that something is missing on the system and that is why I get this error.
In my case what helped me was turning the default pagebreak plugin off.
I've run in exactly the same problem.
My story:
the website is working perfectly on my local host, but on the live problem there is this problem.
As I uploaded the files through FTP i noticed that I had a lot of us not uploaded files. With every upload there were files that were not uploaded.
I believe that something is missing on the system and that is why I get this error.
In my case what helped me was turning the default pagebreak plugin off.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue May 13, 2008 4:06 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Ok,
There are lot's of threads on this issue and I have read through most of them. This seems to be the last updated so I'll add my findings here.
It was a comment in another thread that got me onto this line of thinking but the solution provided was a little more technical than the one I used.
The button plugins are referenced in the sites database, so if you have some plugins installed locally as you build your site then you move it to the server with a nice fresh install and import your database from your local environment you have a conflict. The database sees the "button" plugin reference and tries to load them when you try to add or edit an article. The Plugins aren't installed so they can't be displayed: Fatal error: Call to undefined method stdClass::onDisplay()
So it is a user error, in my case anyway, even though a little convoluted and hard to track down. Using a hack to get around it or disabling plugins isn't a great solution, what if you actually want to use the plugins?
I solved my issue by uninstalling the plugins that weren't actually installed, this showed me errors as you can't uninstall something that isn't installed, but it worked.
Luke
There are lot's of threads on this issue and I have read through most of them. This seems to be the last updated so I'll add my findings here.
It was a comment in another thread that got me onto this line of thinking but the solution provided was a little more technical than the one I used.
The button plugins are referenced in the sites database, so if you have some plugins installed locally as you build your site then you move it to the server with a nice fresh install and import your database from your local environment you have a conflict. The database sees the "button" plugin reference and tries to load them when you try to add or edit an article. The Plugins aren't installed so they can't be displayed: Fatal error: Call to undefined method stdClass::onDisplay()
So it is a user error, in my case anyway, even though a little convoluted and hard to track down. Using a hack to get around it or disabling plugins isn't a great solution, what if you actually want to use the plugins?
I solved my issue by uninstalling the plugins that weren't actually installed, this showed me errors as you can't uninstall something that isn't installed, but it worked.
Luke
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu Jun 19, 2008 11:36 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
THANK YOU A LOT!munchdes wrote:Ok,
There are lot's of threads on this issue and I have read through most of them. This seems to be the last updated so I'll add my findings here.
It was a comment in another thread that got me onto this line of thinking but the solution provided was a little more technical than the one I used.
The button plugins are referenced in the sites database, so if you have some plugins installed locally as you build your site then you move it to the server with a nice fresh install and import your database from your local environment you have a conflict. The database sees the "button" plugin reference and tries to load them when you try to add or edit an article. The Plugins aren't installed so they can't be displayed: Fatal error: Call to undefined method stdClass::onDisplay()
So it is a user error, in my case anyway, even though a little convoluted and hard to track down. Using a hack to get around it or disabling plugins isn't a great solution, what if you actually want to use the plugins?
I solved my issue by uninstalling the plugins that weren't actually installed, this showed me errors as you can't uninstall something that isn't installed, but it worked.
Luke
Even though other solutions may work, they're only workarounds IMHO (because they just make Joomla! work again and most of the times, there are some drawbacks), but yours SOLVED the problem the way it should be.
Why I'm saying this? I followed your line of thought and uninstalled the AllVideos Reloaded component which has a "button" plugin, then I reinstalled the component and VOILA! Everything is working again INCLUDING the AllVideos Reloaded "button" plugin.
Again IMHO, this is the FINAL solution to this kind of problem.
Caio
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Jun 05, 2008 11:52 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
You're the maned209 wrote:Hi All,
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.
-
- Joomla! Apprentice
- Posts: 13
- Joined: Mon Jul 23, 2007 12:02 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Code: Select all
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Oct 27, 2008 5:39 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I tried commenting and replacing the mentioned code in the previous posts, but I still cannot see the button in my editor. The bot also when enabled gives error on line 74 in the front-end.
Can somebody please help??
Can somebody please help??
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed May 14, 2008 9:23 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Experienced same after creating a new local development site and then restoring the Production database using MySQL Administrator GUI (Restore) tool.
I resolved this through the localsite/administrator panel
Site -> User Manager
Select Administrator
In the Parameters block ensure that you have something other than '--Select Editor--'
I resolved this through the localsite/administrator panel
Site -> User Manager
Select Administrator
In the Parameters block ensure that you have something other than '--Select Editor--'
-
- Joomla! Fledgling
- Posts: 3
- Joined: Thu Apr 16, 2009 9:04 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
hello,
i tryed to change:
// Try to authenticate
$result[] = $plugin-
>onDisplay($editor);
}
with:
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
but now the error when edit an articole is:
Parse error: syntax error, unexpected $end, expecting
T_FUNCTION in
C:\inetpub\vhosts\mysite.com\httpdocs\home\libraries\j
oomla\html\editor.php on line 315
what's this ??????????
i tryed to change:
// Try to authenticate
$result[] = $plugin-
>onDisplay($editor);
}
with:
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
but now the error when edit an articole is:
Parse error: syntax error, unexpected $end, expecting
T_FUNCTION in
C:\inetpub\vhosts\mysite.com\httpdocs\home\libraries\j
oomla\html\editor.php on line 315
what's this ??????????
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Jun 24, 2007 7:53 pm
Re: Fatal error: Call to undefined method stdClass::onDisplay()
I had this error after upgrading to 1.5.10 every time I tried to access an article in the backend. The solution which worked for me was to unzip 'plg_doclink_1.5.0.stable.zip' from 'http://www.joomlatools.eu/downloads/cat ... d-ons.html'. I then used an ftp transfer to put the 2 files and folder into '[ROOT]/plugins/editors-xtd.
I am now able to access my articles
I am now able to access my articles
-
- Joomla! Apprentice
- Posts: 41
- Joined: Mon Feb 23, 2009 4:47 am
- Location: The 9th Circle of Hell, aka Washington DC
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Okay, my turn to talk about a problem. I had RawContent installed on my build, but because it wasn't working for me, I uninstalled it. Not only did it not completely install (I have a plugin that has "uninstalled" but still will not go away), I'm now getting the 261 error and it's knocked out my ability to write custom HTML modules. I upgraded from 1.5.9 to 1.510 in the hopes that it would solve the issue, but so far no dice. Anyone have an idea on how to fix this? Thanks for the assist.
-
- Joomla! Apprentice
- Posts: 31
- Joined: Sat Dec 22, 2007 10:09 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
thw wrote:hello,
i tryed to change:
// Try to authenticate
$result[] = $plugin-
>onDisplay($editor);
}
with:
// Try to authenticate
if (method_exists($plugin, 'onDisplay')) {
$result[] = $plugin->onDisplay($editor);
}
}
but now the error when edit an articole is:
Parse error: syntax error, unexpected $end, expecting
T_FUNCTION in
C:\inetpub\vhosts\mysite.com\httpdocs\home\libraries\j
oomla\html\editor.php on line 315
what's this ??????????
Last edited by zombla on Sun May 24, 2009 4:40 pm, edited 1 time in total.
-
- Joomla! Apprentice
- Posts: 31
- Joined: Sat Dec 22, 2007 10:09 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
you forgot one }
-
- Joomla! Enthusiast
- Posts: 130
- Joined: Sun Dec 11, 2005 4:41 am
Re: Fatal error: Call to undefined method stdClass::onDisplay()
Yes, that really worked for me too. Thanks!Bulent wrote:That's it.. Thank you.Code: Select all
// Try to authenticate if (method_exists($plugin, 'onDisplay')) { $result[] = $plugin->onDisplay($editor); }