News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[NOT A BUG] Fatal error: Editor.php on line 263

Started by damarz, January 28, 2008, 15:39:47 PM

Previous topic - Next topic

damarz

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!


damarz

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

aravot

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.

damarz

#4
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.


uk1403

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


td123

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.

akerman

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



http://stolt-akerman.com - Web & Design agency. Speshitpillt in e-shop, ecommerce and marketing.
http://infoclip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

td123

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,

akerman

Hi,

thanks for the info! Much appreciated.  ;)


Regards
Akerman
http://stolt-akerman.com - Web & Design agency. Speshitpillt in e-shop, ecommerce and marketing.
http://infoclip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

JoseR

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.