Fatal error when activating plugin
-
Hi!
Today I updated my WP site to 4.8, and then it crashed with error 500. Then I checked log files, and see that your plugin generated the issue.
PHP Parse error: syntax error, unexpected ‘[‘ in …/wp-content/plugins/analytics-spam-blocker/analytics-spam-blocker-api.php on line 56
I checked and found that original php is this:
$report[‘domain’] = parse_url($report[‘domain’])[‘host’];
I modified to this:
$report[‘domain’] = parse_url($report[‘domain’][‘host’]);
And then I can activate your plugin again.
Please check that my modification right, or please update your plugin if needed!
Kind regards,
Jozsef VER
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fatal error when activating plugin’ is closed to new replies.