VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: damarz on January 28, 2008, 15:39:47 PM

Title: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: damarz on January 28, 2008, 15:39:47 PM
I installed VirtueMart but when I want to edit e.g. Manufacturer Information I will get the following error:

Fatal error: Call to undefined method: stdClass->ondisplay() in /mnt/web2/53/34/51628434/htdocs/libraries/joomla/html/editor.php on line 263
When I go to that specific PHP file it says on line 263:
$result[] = $plugin->onDisplay($editor);

I searched on this forum to find a simular problem, but could not find any. Can someone please help. I expect it can be solved easily, but I really do not know what to do.

I am using Joomla 1.5 Final and VirtueMart 1.1.0 beta3 (Nightly build 1194). I also tried VitueMart 1.0.13 but I keep on having this problem.

MySQL Database Version: 5.0.45
PHP Version: 4.4.8
Web Server: Apache
VirtueMart 1.1: Ver. 1194
Joomla! Version: Joomla! 1.5 Final

Thanks in advance for your help!
Title: Re: Fatal error: Editor.php on line 263
Post by: aravot on January 29, 2008, 20:07:36 PM
Can not replicate.
Title: Re: [UNDER REVIEW] Fatal error: Editor.php on line 263
Post by: damarz on January 29, 2008, 20:13:09 PM
What do you mean with "cannot replicate".
I posted this question in the wrong section, so I now put it in the correct one.
Please help !!!!
Title: Re: [UNDER REVIEW] Fatal error: Editor.php on line 263
Post by: aravot on January 29, 2008, 20:20:12 PM
Quote from: damarz on January 29, 2008, 20:13:09 PM
What do you mean with "cannot replicate".

It means I can not duplicate your issue, i.e. I can edit Manufacturer Information and save without any error.

If you are using a WYSIWYG editor turn it off and try it again.
Title: Re: [UNDER REVIEW] Fatal error: Editor.php on line 263
Post by: damarz on February 15, 2008, 15:02:57 PM
Sorry for the late replay, but unfortunatley your idea is not working.
I turned of the WYSIWYG editors but I still get the following message in the description field when I e.g. want to edit Store Information.
Fatal error: Call to undefined method: stdClass->ondisplay() in /mnt/web2/53/34/51628434/htdocs/libraries/joomla/html/editor.php on line 263

It seams I get all information which I can also edit, but the Save button is not there.

I also installed the editor JoomlaFCK, but without result.
Title: Re: [UNDER REVIEW] Fatal error: Editor.php on line 263
Post by: aravot on February 16, 2008, 06:16:13 AM
It is a Joomla issue search their forum you will find many have the same problem.
example
http://forum.joomla.org/viewtopic.php?f=430&t=260878&p=1190183
Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: uk1403 on May 11, 2008, 00:16:26 AM
Have the same problem and found throughout the forum no answer or solution!

Follow error message appears:
Fatal error: Call to undefined method: stdClass-> ondisplay () in / mnt/web8/13/51/51712451/htdocs/joomla/intranet/libraries/joomla/html/editor.php on line 263


Thank you
Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: aravot on May 11, 2008, 02:45:22 AM
Read the above link.
Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: td123 on September 09, 2008, 20:31:55 PM
Had the same effect. Looks like you have deleted/disabled com_attachement (sorr, no time to look deeper).

in libraries/joomla/html/editor.php

Fix

  // Try to authenticate
  $result[] = $plugin->onDisplay($editor);


to


  // Try to authenticate
  if (method_exists($plugin, 'onDisplay')) {
    $result[] = $plugin->onDisplay($editor);
  }


In general to Joomla & Virtuemart devs and around:
1) Please doublecheck & commit this piece of code - I've spent <=5 min on it
2) It is pity you guys do not bother to find out solution. Much easier to say "provide more info" and hope painguy will come away.
Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: akerman on October 08, 2008, 12:06:47 PM
Hi,

just curious since it solved this problem on one of my installations:

Where did you find the directives on how to solve it? In Joomla?
(Most solutions just talks about different plugins...but that's not the case here)


I got this on a brand new, out of the box Joomla install. And it was not related to VM, nor any Editor! (Proven).

Yet, this solved the problem.

So, many thanx, but I really got to know; from where?

Regards
Akerman



Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: td123 on January 18, 2009, 10:37:34 AM
2akerman: thank you for your appreciation, that made me write one more post..

When I have posted the previous solution, I was total newbie to J so the solution looked the only one to me.

Now I have upgraded to 1.5.9 and (1) experienced the same problem again (2) searched the web (3) found the solution posted by myself half-year ago ;-) Kinda funny. Decided to look more carefully for root cause of the problem. Here are my findings.

Why this damn error occurs? Reason why is that in jos_plugins mysql table there is enabled plugin, which files are missing from file-system. In my case there was a row on 'attachements' plugin and the actual plugins/system/attachements.php and .xml were missing. Simple!

There are two solutions, quick one and good one
1. fix the J file, as I have posted solution above (quick one, does not survive upgrades)
2. go through plugins/ directory and delete/disable actually absent plug-ins (good one, requires skills to look into file system)

To do p.2 properly please be aware
   - look to "Administrator -> Extensions -> Plugin Manager" page for plugin categories and names
   - for each name look into /plugins/<plugin category>/<plugin name>.php and .xml
   - delete or disable corresponding plug-in if files are missing either via mysql or admin ui

Examle: for "Content - Email Cloaking" pls look for /plugins/content/emailcloaking.php and .xml or similar names

p.s. I wrote this msg in case anyone or me myself will have to look for solutions half-year later once again ;-)

Thank you,
Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: akerman on January 26, 2009, 19:47:50 PM
Hi,

thanks for the info! Much appreciated.  ;)


Regards
Akerman
Title: Re: [NOT A BUG] Fatal error: Editor.php on line 263
Post by: JoseR on September 10, 2009, 16:11:28 PM
Thanks to your reflexions, I can find where was the problem.

This was than the folder plugins/editors-xtd was deleted for any installer/desinstaller plugin (I am sure at 99% was the xmap 1.2.2 one).

Ciao.