Support » Plugin: My Custom Functions » triggered a fatal error

  • Resolved silvite


    Hi there,

    I’ve made a bit of a hash of this. I entered a piece of code which broke my whole site, so went in through FTP and deleted the plugin which restored my site, great, however now whenever I try to activate the My Custom Functions plugin I get the error below.

    Parse error: syntax error, unexpected ‘<‘ in …/plugins/my-custom-functions/inc/php/functional.php(85) : eval()’d code on line 19

    Can anyone advise me on how to correct this please?

Viewing 1 replies (of 1 total)
  • Plugin Author Space X-Chimp


    Hi @silvite,

    Sorry for the delay in response.

    Thank you for choosing my WordPress plugin! 🙂

    I’m sorry that you have this problem. This plugin has a built-in functions for checking the custom PHP code for syntax errors, duplicate functions names, and etc. But plugin is not perfect, so there are times when the entered custom PHP code causes an error and white screen. This is due to the fact that your custom PHP code has a syntax error that this plugin could not detect. When this happens with you just do the following and all will be fine.

    1. Via FTP, go to the plugin folder (in ‘wp-content/plugins/my-custom-functions/’).
    2. Rename the “START” file to “STOP”. This will stop the execution of your custom code.
    3. Return to the WordPress Admin Panel and activate the plugin. Now it should activate without problems.
    4. Go to the plugin settings page and edit/fix your custom PHP code that you entered before the crash.
    5. Rename the “STOP” file to “START” and you’re done!

    I’m already working on the function to automatically stop the plugin for cases when this plugin could not detect the error, and this caused the inaccessibility of the website.

Viewing 1 replies (of 1 total)
  • The topic ‘triggered a fatal error’ is closed to new replies.