Skip to main content

Error when creating product

More
15 years 7 months ago #9065 by blade19941
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.

More
15 years 7 months ago #9069 by nicolas
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.

More
15 years 7 months ago #9075 by blade19941
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.

More
15 years 7 months ago #9076 by nicolas
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.

More
15 years 7 months ago #9077 by blade19941
tried all the editors, which editor do you suggest i use?

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

More
15 years 7 months ago #9080 by nicolas
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.

More
15 years 7 months ago #9081 by blade19941
Button - Readmore
Button - Pagebreak
Button - Image
Button - Article

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

More
15 years 7 months ago #9083 by nicolas
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.

More
15 years 7 months ago #9085 by blade19941
slight problem, ive tried those and im using joomla 1.6

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

More
15 years 7 months ago #9086 by nicolas
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.

More
15 years 7 months ago #9090 by blade19941
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.229 seconds
Powered by Kunena Forum