Support » Plugin: PHP Everywhere » Function not executing

  • Resolved screenmachine

    (@screenmachine)


    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). 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 1 year, 8 months ago by  screenmachine.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Hi @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

    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/). That gives me custom functions.php power without creating a child theme.

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    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.