• Resolved Jimmie Iversen

    (@jimmieiversen91)


    I am new to this website stuff, but hope you can help me.

    I entered some code i a wrong spot, so I had to remove the plugin. so now everytime I try to activate the plugin again it says: Parse error: syntax error, unexpected ‘dds’ (T_STRING), expecting ‘,’ or ‘;’ in /var/www/dspsnacks.com/public_html/wp-content/plugins/my-custom-functions/my-custom-functions.php(144) : eval()’d code on line 13.

    Can I undo the code or how do I approach it?
    Thanks in advance.

    Jimmie

    https://www.ads-software.com/plugins/my-custom-functions/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author arthur-gareginyan

    (@arthur-gareginyan)

    Hi Jimmie,

    Sorrie for the delay in response.

    This plugin is not perfect, so there are times when the entered custom code causes the error. To fix this, you can use one of two ways.

    1) Your code stored in the Database of your website. For getting your code, you can go to the Database —> Table wp_options —> Option anarcho_cfunctions_settings —> option_value.

    2) You can use the FTP method, for access to plugin’s settings page. Go to plugin’s folder (in wp-content/plugins/). Open my-custom-functions.php file. Find this line of code:

    MCFunctions_exec();

    and comment it by placing two slashes (//) in beginning. Then you can go to plugin’s settings page and edit your entered custom code. After editing, just delete two slashes which you written before.

    Regards,
    Arthur

    Thread Starter Jimmie Iversen

    (@jimmieiversen91)

    Problem solved. Thank you very much Arthur!

    Plugin Author arthur-gareginyan

    (@arthur-gareginyan)

    You’re welcome!

    Hi Arthur,
    Same problem and problem solved !
    Thank you very much Arthur!

    Plugin Author arthur-gareginyan

    (@arthur-gareginyan)

    Hi @rguilbert,

    You’re welcome!

    same problem but that line MCFunctions_exec(); doesn’t exist now – you must have updated?

    Plugin Author arthur-gareginyan

    (@arthur-gareginyan)

    Hi,

    Some time ago I added an easier emergency way to stop the plugin. Here’s the way:

    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 plugin settings page and edit/fix your custom PHP code that you entered before the crash.
    4. 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 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error’ is closed to new replies.