Title: Can&#8217;t launch the PHP code from WPCode
Last modified: January 18, 2025

---

# Can’t launch the PHP code from WPCode

 *  [infokonto](https://wordpress.org/support/users/infokonto/)
 * (@infokonto)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/cant-launch-the-php-code-from-wpcode/)
 * Hi, i have fairly new (2 weeks) installation of WordPress 6.7.1, I installed 
   a WPCode Lite plugin, trying to add PHP Code. It seems that any PHP Code snippet
   is not launched (But HTML is).
 * When I test codes from library – HTML one is working fine (like standard counter),
   but even a code to disable the comments from library is not working (but it is
   loaded, displayed on the top of the page).
 * Is there something to launch initially to make those codes working, am I missing
   anything?
 * Tried to disable all other plugins, launched WPCode as standalone – still comments
   are working and displayed, and no other custom PHP is working (even echo “hello”).
   
   thanks for any suggestions for checks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcant-launch-the-php-code-from-wpcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [infokonto](https://wordpress.org/support/users/infokonto/)
 * (@infokonto)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/cant-launch-the-php-code-from-wpcode/#post-18252047)
 * To add here – i found that shortcodes are recognized on the page once I activate
   the plugin, example:
 * [wpcode id=”316″] (this is HTML snippet)
 * [wpcode id=”318″] (this is php snippet)
 * Then, page itself displays: 
   346d 15h 8m 4sIt means that first shortcode is executed,
   second is recognized but not done…[Strona testowa – widget – InfoKonto.pl](https://infokonto.pl/strona-testowa-widget/)
   Snippet code is ultra simple:<?phpecho “some text”;
 * I tried another snippet from library (disable the WP Admin Bar), and once activated,
   as well not functioning. Like all PHP snippets are not working.
 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/cant-launch-the-php-code-from-wpcode/#post-18253236)
 * Hi [@infokonto](https://wordpress.org/support/users/infokonto/),
 * From what you are describing, WPCode might not be able to execute PHP code dynamically
   on your setup.
 * Can you please check with your hosting provider if the `eval` function is disabled
   in PHP? [https://www.php.net/manual/en/function.eval.php](https://www.php.net/manual/en/function.eval.php)

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

The topic ‘Can’t launch the PHP code from WPCode’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/cant-launch-the-php-code-from-wpcode/#post-18253236)
 * Status: not resolved