Title: php widget problems
Last modified: August 19, 2016

---

# php widget problems

 *  [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * (@virtualityreiki)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/)
 * Has anyone else had a problem inserting php into their widgets and having it 
   work??? How did you resolve it? I have tried several different plugins, but come
   up with the same error every time:
 * Fatal error: Call to undefined function search_form() in /home/xxxx/public_html/
   blog/wp-content/plugins/plugin name/plugin.php(100) : eval()’d code on line 1
 * line 1 consists of <?php
 * any thoughts? is there something else going wrong here? i know that my code is
   fine because it works on the bbpress end of things, just not on the wordpress
   pages. help!

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656702)
 * Otto’s Executable PHP Widget has always worked perfectly for me
 *  Thread Starter [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * (@virtualityreiki)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656708)
 * That is one of the ones that I tried 🙁
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656709)
 * could you paste your php code? Just for shiggles? If its long, use the pastebin
   please
    [http://wordpress.pastebin.com/](http://wordpress.pastebin.com/)
 *  Thread Starter [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * (@virtualityreiki)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656712)
 * <?php search_form( $q ); ?>
    <?php login_form(); ?>
 * I think a little lightbulb went off in my head… I never copied the login/search
   forms over to the wordpress side. Doh! Thanks! 🙂
 *  Thread Starter [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * (@virtualityreiki)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656713)
 * that didn’t work either… :((
 * it works in bbpress though.
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656716)
 * I’m not much of an expert…
 * but what is search form doing? Should it be an include?
 *  Thread Starter [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * (@virtualityreiki)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656723)
 * its just a search box for the website… i’m not an expert either, this is sort
   of like fumbling around in the dark for me 🙂
 * I wonder if I just put the code from the forms in there instead of just referencing
   them if it will work… might give that a try.
 *  Thread Starter [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * (@virtualityreiki)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656725)
 * nope… that didn’t work either.

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

The topic ‘php widget problems’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 2 participants
 * Last reply from: [VirtualityStudio](https://wordpress.org/support/users/virtualityreiki/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/php-widget-problems/#post-1656725)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
