Fatal Error on Activation
-
The current version of the plugin returns a fatal error when attempting to Activate on installation or upgrade.
The error log reports:
PHP Parse error: syntax error, unexpected ‘)’ in public_html/wp-content/plugins/clone-posts/admin/class-clone-posts-admin.php on line 160
The problem appears to be a trailing comma in line 159:
register_setting( 'clone_post_settings', 'clone_posts_post_type', [$this,'clonePosts_sanitize_array'], );
Removing the trailing comma resolves the issue.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal Error on Activation’ is closed to new replies.