Title: PHP problems (run PHP   advanced poll)
Last modified: August 19, 2016

---

# PHP problems (run PHP advanced poll)

 *  [tnejad](https://wordpress.org/support/users/tnejad/)
 * (@tnejad)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/php-problems-run-php-advanced-poll/)
 * 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)

 *  [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/php-problems-run-php-advanced-poll/#post-906259)
 * Why not use a Polls plugin for WordPress instead, [http://wordpress.org/extend/plugins/wp-polls/](http://wordpress.org/extend/plugins/wp-polls/)
 *  Thread Starter [tnejad](https://wordpress.org/support/users/tnejad/)
 * (@tnejad)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/php-problems-run-php-advanced-poll/#post-906275)
 * Hi Gamerz,
 * I just switched to it 🙂
 * Great minds think alike.

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [tnejad](https://wordpress.org/support/users/tnejad/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/php-problems-run-php-advanced-poll/#post-906275)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
