If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Joomla 2.5.x. Fatal error: Call to undefined method stdClass::onDisplay()

This tutorial shows how to get rid of the following error:

Fatal error: Call to undefined method stdClass::onDisplay()

Such error may appear when you save changes after editing of K2 item. In some cases blank page may appear when you save K2 item. Blank page does not show this error. In order to solve the issue you need to follow the steps specified below.

1. You need to go to \libraries\joomla\html\ folder on your hosting.

2. Download and open editor.php file in your editor. You should look for the following code:

if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author))

Such code is located on line 459.

3. Replace the code with the following code:

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

4. Save changes and upload upload file to your Joomla. Replace original editor.php. Be sure to back up original file before modification.

Feel free to download modified file in case you experience issues with modifications.

  • Анастасия

    Супер!!На форумах код был не до конца правильный и не помогал, а при вставке Вашего мои пятидневные мучения закончилась! Спасибо огронмое))

    No votes yet.
    Please wait...
  • Frank Chukwuelue

    You are a great guy…Keep this up! God Bless

    No votes yet.
    Please wait...
  • Sancheezy

    AWSOME!! this saved my life! thank you

    No votes yet.
    Please wait...
  • Michał Kortas

    Thank You for this. Veeeerrryy helpful!

    No votes yet.
    Please wait...
  • adriano

    Obrigado!

    No votes yet.
    Please wait...
  • Josè Luis Miranda

    Gracias, muy gentil! Perfecto!!!

    No votes yet.
    Please wait...
  • Zebigbos

    Wow. Perfect!
    Also works for Joomla 3.x, only then you have to look in /libraries/cms/editor.
    THe rest is the same.

    No votes yet.
    Please wait...
  • Hugo Defrance

    Thanks it works! :)

    No votes yet.
    Please wait...
  • mustapha

    merci il fonction correctement

    No votes yet.
    Please wait...
  • bhavesh1989

    it’s Great. It works properly. Thanks….

    No votes yet.
    Please wait...
  • mattorlando

    Thanks for the tip! Works like a charm!

    No votes yet.
    Please wait...
  • xepe

    Brilliant..am sorted

    No votes yet.
    Please wait...
  • Bhavesh Khatri

    good. Thanks…

    No votes yet.
    Please wait...
  • jane wanjiku

    Very good it worked

    No votes yet.
    Please wait...
  • TheRealSimonW

    Fixed it for me too. Thanks.

    No votes yet.
    Please wait...
  • Gary Donson

    Brilliant , worked perfectly!

    No votes yet.
    Please wait...
  • Andres Felipe Botero Velez

    Excelente muchas gracias…

    No votes yet.
    Please wait...
  • Dalton Ameyo

    Thanks also worked for joomla 3.x

    No votes yet.
    Please wait...
  • Alberto Soliman AnM

    Perfect, thanks

    No votes yet.
    Please wait...
  • Peter Godfrey Obike

    This killed the error. I am so grateful.

    No votes yet.
    Please wait...
  • Ubaid Ullah

    Very nice,it works Thanks Alot

    No votes yet.
    Please wait...
  • Raksmey

    It is very good, I can solve the error.

    No votes yet.
    Please wait...
  • M.

    thanks! it works!

    No votes yet.
    Please wait...
  • Jerry Kim

    thanks a million.

    No votes yet.
    Please wait...
  • Isuru Deminda

    Thanks it works :)

    No votes yet.
    Please wait...
  • Metha HaRos

    its works thanks a lot :)

    No votes yet.
    Please wait...
 
Live Chat
We help you to choose the right product.
Start chat