Title: PHP error&#8230;
Last modified: August 22, 2016

---

# PHP error…

 *  Resolved [sagive](https://wordpress.org/support/users/sagive/)
 * (@sagive)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/)
 * You got a php error bloating my error log ;( – needs a fix
 * `insert_php.php(48) : eval()'d code on line 3`
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

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

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/#post-5204700)
 * Thanks, sagive.
 * Post the PHP code you’re using with Insert PHP. It might give me a clue to where
   to start the search.
 * Will
 *  [fabi.b](https://wordpress.org/support/users/fabib/)
 * (@fabib)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/#post-5204711)
 * Hi Will Bontrager,
 * I’ve exactly the same error with login form like
 * `[insert_php] php wp_login_form(); [/insert_php]`
 * error : Parse error: syntax error, unexpected T_STRING in /wp-content/plugins/
   insert-php/insert_php.php(48) : eval()’d code on line 1
 * Thanks for your help,
    have a good day ! 🙂
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/#post-5204712)
 * fabi.b, in your case, `php wp_login_form();` is invalid PHP code.
 * Try this on a separate PHP web page:
 *     ```
       <?php
       php wp_login_form();
       ?>
       ```
   
 * Your error log will give you a better error message than Insert PHP will.
 * Actually, just
 *     ```
       <?php
       wp_login_form();
       ?>
       ```
   
 * (without the “php” part of the line) most likely won’t work, either.
 * Insert PHP doesn’t have access to variables and such outside its own code block.
   See
    [http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#functionscope](http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#functionscope)
   for more info about that.
 * The above “separate PHP web page” technique is a very good way to test the code
   before using it in Insert PHP. You get better error messages and, once it passes
   on your separate PHP web page, it should work just fine in Insert PHP.
 * Will
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/#post-5204744)
 * sagive, I’m assuming you figured out what part of your code was causing the error
   because there was no response from you to this thread.
 * For others who may consult this thread, the page at the following URL has information
   about error messages and how to deal with them:
 * [http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#errormessages](http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#errormessages)
 * Will
 *  [fabi.b](https://wordpress.org/support/users/fabib/)
 * (@fabib)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/#post-5204758)
 * Hi Will,
 * It’s right, this code is Ok :
    `[insert_php]wp_login_form();[/insert_php]`
 * thanks for your help
    Fabi

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

The topic ‘PHP error…’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [fabi.b](https://wordpress.org/support/users/fabib/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-101/#post-5204758)
 * Status: resolved