Error when creating product

  • Posts: 21
  • Thank you received: 0
13 years 9 months ago #9065

Hi

Everytime i click add product and i get this error. PHP Fatal error: Call to undefined method stdClass::onDisplay() in E:\web\soundrsa\libraries\joomla\html\editor.php on line 287

the line says
// Try to authenticate
if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author)) {
$result[] = $temp;

how do i correct this error?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #9069

It seems that your HTML editor has a bug (HikaShop uses your HTML editor for the product description area). What editor do you use ? In HikaShop, you can switch between all the editors installed on your website by changing the option "editor" in the config of HikaShop under the main tab. If you set it to JCE, you should not have that problem anymore. Could you try that ?

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
13 years 9 months ago #9075

I dont have the option to set it to JCE and i have the same problem all over joomla when i try edit an article or create one.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #9076

What choices do you have ? Did you try with the other choices ?
Maybe you should try to install another editor ?

If the problem is all over your joomla it's normal that you also have it in HikaShop if you use that same editor.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
13 years 9 months ago #9077

tried all the editors, which editor do you suggest i use?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #9080

Which ones do you have at the moment ?

Also, it seems that the problem could come from an editor plugin. Could you go in your joomla plugins manager and give a list of your plugins of the type editors-xtd ?

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
13 years 9 months ago #9081

Button - Readmore
Button - Pagebreak
Button - Image
Button - Article

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #9083

You should find a lot of different solutions on that forum thread:
forum.joomla.org/viewtopic.php?p=1468168

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
13 years 9 months ago #9085

slight problem, ive tried those and im using joomla 1.6

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #9086

You should try to replace the line:
if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author)) {

by:
if (method_exists($plugin,'onDisplay') && $temp = $plugin->onDisplay($editor, $this->asset, $this->author)) {

That should definitely avoid the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
13 years 9 months ago #9090

thank you so so so much, it worked, your the best

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum