• Hi Flipper Code,

    Seeing the following notice in php5.6 error log:

    “[13-Feb-2016 18:23:41 UTC] PHP Notice: Use of undefined constant WCJP_CLASSES – assumed ‘WCJP_CLASSES’ in /wp-content/plugins/custom-css-js-php/custom-css-js-php.php on line 610”

    Plus as already mentioned by buylov you have to add “” around number to see results e.g. [wce_code id=”1″]

    Cheers,
    Phil

    https://wordpress.org/plugins/custom-css-js-php/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter philsalt

    (@philsalt)

    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”

    Thread Starter philsalt

    (@philsalt)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use of undefined constant WCJP_CLASSES’ is closed to new replies.