Support » Plugin: PHP Code Widget » Fatal Error: Call to member function

  • Resolved Tech4Eleven

    (@tech4eleven)


    Im not sure where my php code is wrong but Im getting this on the front end of my site:

    Fatal error: Call to a member function getOption() on a non-object in /home/ohanapie/public_html/wp-content/plugins/php-code-widget/execphp.php(27) : eval()’d code on line 2

    my php code is:


    <?php
    if ($gummWpHelper->getOption(‘banda_header_countdown_display’) === ‘true’) {
    View::renderElement(‘header/event-countdown-timer’);
    }
    ?>

    My guess is that the widget can’t call the function? Any help is appreciated. Im trying to render an event countdown in my sidebar that i originally omitted from the header.php

    http://wordpress.org/plugins/php-code-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error: Call to member function’ is closed to new replies.