• Hi,

    I’m trying to use advanced poll in my posts with wordpress. To execute the PHP code I’m using run PHP plugin.

    I tried it once using code:

    <phpcode><?php
    include_once “/var/www/vhosts/directmandate.com/httpdocs/poll/booth.php”;
    echo $php_poll->poll_process(6);
    ?>
    </phpcode>

    It WORKED.

    Then I tried posting again, the EXACT SAME post.

    I get this showing up in my post:

    Fatal error: Call to a member function on a non-object in /var/www/vhosts/directmandate.com/httpdocs/wp-content/plugins/runPHP.php(410) : eval()’d code on line 3

    Now I don’t understand how it can work once, but not again, even when the post is EXACTLY the same? So now I have 2 polls on my blog.. one working, one not! Although the code is exactly the same 🙂

    Does anyone know how to resolve this or shed any light on it?

    Thanks in advance for your replies.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP problems (run PHP advanced poll)’ is closed to new replies.