debug log is also showing:
“[13-Feb-2016 19:51:52 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp__r5WPu9wce_editor_content ADD PRIMARY KEY (id
) made by activate_plugin, do_action(‘activate_custom-css-js-php/custom-css-js-php.php’), call_user_func_array, WP_CustomCode_Pro->plugin_activation, WP_CustomCode_Pro->wcjp_activation, dbDelta”
Update
1. With reference to PHP Notice: Use of undefined constant WCJP_CLASSES
changed line 610 within custom-css-js-php.php from
define( ‘WCJP_VIEWS_PATH’, WCJP_CLASSES.’view’ );
to
define( ‘WCJP_VIEWS_PATH’, WCJP_URL.’/modules/code/’.’views’ );
2. With reference to WordPress database error Multiple primary key defined for query ALTER TABLE wp__r5WPu9wce_editor_content ADD PRIMARY KEY (id) I referred to: http://onetarek.com/wordpress/wordpress-dbdelta-database-error-multiple-primary-key-defined/
Changed line 66 within model.code.php (/wp-content/plugins/custom-css-js-php/modules/code) from
PRIMARY KEY (id
)
to
UNIQUE KEY (id)
Hoping Flipper Code can confirm above as correct. Cheers,
Phil
I have also just noticed the “undefined constant” warning. Since the bug report and suggested fix is 4 months old, it seems that support has gone away, what a pity.
There is another plugin with active support and 4.8 stars offering CSS + JS but not PHP; and several, like this one, for PHP; but I don’t find another plugin offering all 3 types.
So it would be really great if this plugin could be polished to remove those problems. Or would the author prefer that someone else take over the plugin?
Cheers, Tim