Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I removed 1.8, put in 1.9 stock and it would not let me activate it. I did change line 43 in 1.9 to const ROUTE_NAMESPACE = ‘wpcsp/v1’; but I get:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected ‘/’, expecting ‘,’ or ‘;’ in /var/www/mysite.com/public_html/wp-content/plugins/wp-content-security-policy/includes/wpCSPclass.php on line 43

    – WordPress version is 4.9 running on Centos 7 if that makes any difference.
    – PHP Version 5.4.16
    I also think it’s awesome that you read the forums!

    • This reply was modified 8 years, 6 months ago by aberrantone.
    • This reply was modified 8 years, 6 months ago by aberrantone.

    Hm – I looked at my readme.txt and it only has up to 1.8 in the changelog. However it only broke about a week ago. I’m not sure if that when I upgraded to 1.8 or if 1.8 recently had come out. Either way, hope that helps.

    I had the same issue and disabled the plugin the same way and then stumbled on this thread after.

    From error.log:
    PHP Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in /var/www/mywebsitehere.com/public_html/wp-content/plugins/wp-content-security-policy/includes/wpCSPclass.php on line 39

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