Support » Plugin: Cloudflare » Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_ST

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi Scott,

    Which version of the plugin are you using?


    Version 1.3.23.

    However, I just updated to Version 1.3.24 and it still gives me the parse error.

    I have no other plugins activated. I am using default installation of the Twenty Sixteen theme.

    What line is the error on in 1.3.24? Its not 36 right because line 36 in 1.3.24 is the namespace.

    use CloudFlare\IpRewrite;

    yes. it is use CloudFlare\IpRewrite; (screenshot)

    and this is what is contained in that file: (txt)

    Interestingly enough, I did have this plugin enabled in the past. Here are the DB table items:

    I deleted all the plugin files as well as deleted those entries from my DB and the error still occurs when I try to activate the plugin.

    What version of PHP are you running Scott?

    PHP Version 5.2.17

    Ah ha!

    I just updated to PHP Version 5.3.24 and I’m able to activate the Plugin now.

    Sorry for the hassle, but hopefully this support thread will help others if they find it.

    Scott O.

    No worries Scott – glad you were able to resolve your issue!

    Solved my problem perfectly! Thank you.Just had to update the version of PHP in my Cpanel

    good morning

    I have a problem with my web paguina since I did not dega my login to the wordpress administrator nor to the paguina that there is an error which is
    Parse error: syntax error, unexpected ‘?’ In; And I do not know how I can fix it since I can not login to the administrator

    I can collaborate thank you very much


    What version of PHP are you using?

    I am new hear and would highly appreciate your help please. I just had a user name and password to access the ( I installed a theme (twentyseventeen) on wordpress and did something wrong inside the theme: Appearance-Editor-Functions (area) and now I can not acces the dashboard/ can not login anymore.

    When I tried to login comes:

    Parse error: syntax error, unexpected ‘,’ in /home/dwarfcrasher/ on line 165

    Hi @yohannes1,

    The error is with the twentyseventeen theme, not the cloudflare plugin. You probably added an extra comma to line 165 on functions.php for that theme.


    Sidenote to @yohannes1

    1. Please start your own topic in the appropriate forum.

    2. Do not create multiple posts on the same topic. Your other posts have been archived. Start a new topic.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_ST’ is closed to new replies.