Title: Function not executing
Last modified: December 6, 2017

---

# Function not executing

 *  Resolved [screenmachine](https://wordpress.org/support/users/screenmachine/)
 * (@screenmachine)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/function-not-executing/)
 * Hello, I’ve been using the Insert PHP plugin to call a function on a page. That
   plugin is depreciated so I need to replace it with yours.
 * I have my function called out in your box and your shortcode on the page (see
   screenshot [https://www.screenmachine.com/screenshot.PNG](https://www.screenmachine.com/screenshot.PNG)).
   However when I do a preview of the page, the function does not run.
 * This works using the other plugin so I know the function is correct and can run.
 * Am I missing something?
    -  This topic was modified 8 years, 5 months ago by [screenmachine](https://wordpress.org/support/users/screenmachine/).

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

 *  Plugin Author [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * (@alexander_fuchs)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/function-not-executing/#post-9757573)
 * Hi [@screenmachine](https://wordpress.org/support/users/screenmachine/), could
   you switch on error reporting for your wordpress installation. The mostlikely
   mistake is the function being loaded after my plugin is executed. In what file
   is the function placed?
 * Kind regards,
 * Alex
 *  Thread Starter [screenmachine](https://wordpress.org/support/users/screenmachine/)
 * (@screenmachine)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/function-not-executing/#post-9764222)
 * Hello Alexander,
 * I don’t have a debug.log getting created, supposedly there are no errors then?
 * The function resides in another plugin called My Custom Functions ([https://wordpress.org/plugins/my-custom-functions/](https://wordpress.org/plugins/my-custom-functions/)).
   That gives me custom functions.php power without creating a child theme.
 *  Plugin Author [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * (@alexander_fuchs)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/function-not-executing/#post-9764637)
 * Hi screenmachine, the problem is probably that the plugin loads after PHP everywhere.
   I can’t really influence it.
 * Without a error log I can’t really find the error either.
 * One thing that may work is putting the function in the php everywhere code box.
   But I guess this won’t be a good solution for your use case.

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

The topic ‘Function not executing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-everywhere_5f7aae.svg)
 * [PHP Everywhere](https://wordpress.org/plugins/php-everywhere/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-everywhere/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-everywhere/)
 * [Active Topics](https://wordpress.org/support/plugin/php-everywhere/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-everywhere/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-everywhere/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/function-not-executing/#post-9764637)
 * Status: resolved