Fatal error on edit article or new article

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
zanzibarwinds
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Jun 05, 2011 6:07 pm

Fatal error on edit article or new article

Post by zanzibarwinds » Mon Mar 12, 2012 4:10 pm

Hi

I am suddenly getting a fatal error whenever I try access an existing article or try to create a new one on my remote website, its fine on my localhost.

The error occurs where the article body editor is supposed to be with the message:

Code: Select all

Fatal error: Call to undefined method stdClass::onDisplay() in /home/mydrive/public_html/subdomain.domain.com/libraries/joomla/html/editor.php on line 459
This was working fine last week and I have not made any changes. This exact same site is working 100% on my localhost (Mac). I have uploaded all the Joomla files again and recreated the database from a mysql dump of structure and data.

Further addition: I am getting the same when trying to edit a Category.

TIA
John

zanzibarwinds
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Jun 05, 2011 6:07 pm

Re: Fatal error on edit article or new article

Post by zanzibarwinds » Mon Mar 12, 2012 4:50 pm

Ok, if anyone has can shed light on why this would all of a sudden stop working, please let me know cause I'd like to change my code hack back to the original.

In the mean time go it working by doing the following:

Code: Select all

if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author))
			{
				$result[] = $temp;
			}
changed to

Code: Select all

            if (method_exists($plugin, 'onDisplay')) {
                $temp = $plugin->onDisplay($editor, $this->asset, $this->author);
                $result[] = $temp;
            }
Thanks to the post at: http://www.seblod.com/support/forum/23- ... splay.html for pointing out how to get around it.

artmaster
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Tue Oct 31, 2006 7:50 pm

Re: Fatal error on edit article or new article

Post by artmaster » Sun Mar 25, 2012 6:34 pm

thanks

PierreB
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Tue Sep 21, 2010 2:39 pm

Re: Fatal error on edit article or new article

Post by PierreB » Thu Apr 05, 2012 7:25 pm

I experienced the exact same thing today, out of the blue...I had only installed an updated version of EasyCalcCheckPlus (not at fault in any way) and had uninstalled JUMultithumb extension...
...this extension did give me an error when uninstalling, but I checked methodically and didn't find any left overs...
After the above, I tried editing an article and got the error you have quoted there

But for some reason, I only got the error when setting JCE as my editor...

I tried several things which eventually worked:
1) Did a cross-check between Database / Plugins Manager / Joomla Files for plugins in "content", "editors" and "editors-xtd"
2) reinstalled all the plugin with buttons (editors-xtd)
3) Uninstalled and reinstalled JCE

I came across this fix you mentioned myself, but this is a bad workaround...the trouble lies elsewhere (installed plugins, content plugins with editor buttons specifically) and you better find what the trouble is...

If you had JCE installed and set as default editor too, there is a chance that this could be due to a setting telling JCE to load the compressed version of its files...check the components options to remedy this...

joshkurz
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jul 18, 2012 10:02 pm

Re: Fatal error on edit article or new article

Post by joshkurz » Wed Jul 18, 2012 10:06 pm

zanzibarwinds

Thank you so much. This saved me so much time. I was hacked and had my code base wrecked. I had fixed everything until this error came about. Now i am good to go. :)

faneendra
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Nov 03, 2006 5:18 pm

Re: Fatal error on edit article or new article

Post by faneendra » Thu Jul 19, 2012 7:31 am

Thank you....

if (method_exists($plugin, 'onDisplay')) {
$temp = $plugin->onDisplay($editor, $this->asset, $this->author);
$result[] = $temp;
}

works like a charm...

lostinthewoods
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sun Sep 17, 2006 10:01 pm
Location: Aroostook County, Maine, U.S.A.
Contact:

Re: Fatal error on edit article or new article

Post by lostinthewoods » Sun Aug 26, 2012 8:28 pm

Yes it does work, but it is not the problem. As PierreB said
I came across this fix you mentioned myself, but this is a bad workaround...the trouble lies elsewhere (installed plugins, content plugins with editor buttons specifically) and you better find what the trouble is.
I am using Joomlart templates and found if I disabled the jaupdater.jatypobutton plugin it fixed the problem. I am still able to use the JA Typo button and all the other editors-XTD type buttons.

It was just the jaupdater.jatypobutton causing the problem.

Hope this helps some of you place your code back to what it was as the other way is a bad workaround. ;D

User avatar
carsten888
Joomla! Ace
Joomla! Ace
Posts: 1200
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland
Contact:

Re: Fatal error on edit article or new article

Post by carsten888 » Wed Dec 12, 2012 8:35 am

I got the same issue on one site without any Joomlart template installed or jaupdater.jatypobutton-plugin.

Obviously, there is a problem when the editor plugin does not have that function declared. But even when using editor 'none', the same error shown.

I'm sure this is a bug.

joomla 2.5.8
http://www.pages-and-items.com
Admin-Help-Pages, Dynamic-Menu-Links, Admin-Menu-Manager, Access-Manager, Redirect-on-Login, Pages-and-Items, module Admin-Messages, module Logged-in-Users, plugin load module in article, plugin pure css tooltip and more...

AtTrue
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Mon Jun 07, 2010 1:32 am

Fatal error admin article manager

Post by AtTrue » Sat Jan 05, 2013 3:21 am

Out of the blue I am getting a 500 server error when trying to go to the admin article manager. administrator/index.php?option=com_content but there is no error log anywhere really frustrating.

All other areas of the admin are fine this is pretty weird it doesn't create a log of the error not even in the server raw logs.

joomla 2.5.8

Tomicsekk
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Mar 07, 2013 12:36 pm

Re: Fatal error on edit article or new article

Post by Tomicsekk » Thu Mar 07, 2013 12:41 pm

Hi all,
Same error on my site. Using joomla 2.5.9 and Gavick template. Errors everywhere and in every components where editor could be used.

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

Re: Fatal error on edit article or new article

Post by numinousmedia » Mon May 20, 2013 2:36 pm

**Work-Around without Hacks** I ran into the same fatal error out of the blue on a 2.5.11 site, using the latest JCE editor. Turning off all of the plugin buttons (pagebreak, article, image, etc.) solved the problem. I wish I knew why this worked, but in this case, the client never uses these buttons, so this solution takes care of the issue.
Ryan
Frontend Developer and Joomla Professional
Ethode Website Development: http://www.ethode.com
Personal Site: http://www.numinousmedia.com

kcrbsd
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Nov 11, 2010 5:08 pm
Location: Sri Lanka, Colombo
Contact:

Re: Fatal error on edit article or new article

Post by kcrbsd » Wed Aug 28, 2013 5:39 am

Thanks.
zanzibarwinds wrote:Ok, if anyone has can shed light on why this would all of a sudden stop working, please let me know cause I'd like to change my code hack back to the original.

In the mean time go it working by doing the following:

Code: Select all

if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author))
			{
				$result[] = $temp;
			}
changed to

Code: Select all

            if (method_exists($plugin, 'onDisplay')) {
                $temp = $plugin->onDisplay($editor, $this->asset, $this->author);
                $result[] = $temp;
            }
Thanks to the post .
Thanks

dor88keys
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Mar 08, 2010 3:39 pm

Re: Fatal error on edit article or new article

Post by dor88keys » Tue Jun 24, 2014 5:55 am

this worked great, with tinyMCE:

if (method_exists($plugin, 'onDisplay')) {
$temp = $plugin->onDisplay($editor, $this->asset, $this->author);
$result[] = $temp;
}

thanx!

karilint
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Apr 06, 2011 12:26 am

Re: Fatal error on edit article or new article

Post by karilint » Tue Aug 26, 2014 12:24 pm

Thank you, zanzibarwinds!

donvikro
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Sep 11, 2008 1:47 pm

Re: Fatal error on edit article or new article

Post by donvikro » Fri May 20, 2016 4:59 pm

Oh, I am really thankful . this post was very helpful . I am able to rectify the error by correcting
if (method_exists($plugin, 'onDisplay')) {
$temp = $plugin->onDisplay($editor, $this->asset, $this->author);
$result[] = $temp;
}

Thank you very very much


Locked

Return to “General Questions/New to Joomla! 2.5”