• Resolved marcorstock

    (@marcorstock)


    Hello,

    I’m experiencing issues about your wonderful plugin.
    After some troubles with my website, I had to setup a captcha for my contact forms due to a spam attack.
    I don’t know if the problems with Yop poll is related to these problems.
    Anyway, after I recovered my website back online, the plugin didn’t work anymore.
    I deactivated and uploaded a backed up version since some days ago (when everything was working fine) but the problem still exists.
    When I try to activate the plugin through the wp admin panel, it yields the following fatal error:

    Parse error: syntax error, unexpected ‘force_default_editor’ (T_STRING) in /home/marcorst/public_html/wp-content/plugins/yop-poll/inc/templates_admin.php on line 1

    I would like to have the plugin working again, also because I have polls in the archive that I wouldn’t want to loose.

    This is my website:
    http://www.marcorstock.com

    Looking forward for your support.

    Thanks for your cooperation,

    https://ww.wp.xz.cn/plugins/yop-poll/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hello

    Please upload plugin files via ftp and let us know if you still have this issue.

    Best
    YOP Team

    Thread Starter marcorstock

    (@marcorstock)

    Hello,

    I uploaded the plugin files via ftp as advised, but when I try to activate the plugin, it yields always the same parse error.

    This is the line 1 quoted in the error message:

    <?php

    function force_default_editor() {

    return ‘html’;
    }

    Plugin Author YOP

    (@yourownprogrammer)

    Hello

    Lets try this

    delete this code `function force_default_editor() {

    return ‘html’;
    }`

    On inc/templates_admin.php replace add_filter( 'wp_default_editor', 'force_default_editor' );

    with //add_filter( 'wp_default_editor', 'force_default_editor' );

    Let us know how it goes.

    Best
    YOP Team

    Thread Starter marcorstock

    (@marcorstock)

    Thank you!
    Everything works like a charm now!

    Great support!

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

The topic ‘Fatal Error’ is closed to new replies.