• Resolved tanner96

    (@tanner96)


    It seems that there are 2 depreciation notices and 5 warnings with PHP 8, please resolve ASAP and push an update:

    Deprecated: Required parameter $content follows optional parameter $type in?/public_html/wp-content/plugins/custom-css-js-pro/includes/functions.php?on line?149

    Deprecated: Required parameter $preview_id follows optional parameter $search_tree in?/public_html/wp-content/plugins/custom-css-js-pro/includes/class-show-codes.php?on line?243

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/plugins/custom-css-js-pro/includes/functions.php:149) in?/public_html/wp-admin/includes/misc.php?on line?1416

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/plugins/custom-css-js-pro/includes/functions.php:149) in?/public_html/wp-includes/functions.php?on line?6865

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/plugins/custom-css-js-pro/includes/functions.php:149) in?/public_html/wp-admin/admin-header.php?on line?9

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tanner96

    (@tanner96)

    SOLUTIONS:

    Depreciation 1

    function ccj_modify_code( $type = 'minify', $option = 'ccs', $content ) {

    Should be modified to:

    function ccj_modify_code( $content, $type = 'minify', $option = 'ccs' ) {

    Reason is because the required parameter without a default value should come first.

    Depreciation 2

    function search_tree_for_preview( $search_tree = array(), $preview_id ) {

    Should be modified to:

    function search_tree_for_preview( $preview_id, $search_tree = array() ) {

    Reason is because the required parameter without a default value should come first.

    Plugin Author Diana Burduja

    (@diana_burduja)

    The plugin’s version installed on the linked website is 4.24 from November 2021. The latest version is 4.31. Please update the plugin to the latest version. The deprecation errors are already fixed.

    Thread Starter tanner96

    (@tanner96)

    Thank you very much for this, updates are not pushing then. Simple fix

    Plugin Author Diana Burduja

    (@diana_burduja)

    You’re using the plugin’s pro version. The updates are “pushing” with a valid license key.

    Alternatively, I would recommend you to install the plugin’s free version.

    Hi, I’m jumping on this topic to report another deprecation notice.

    PHP Deprecated: Automatic conversion of false to array is deprecated in […]/wp-content/plugins/custom-css-js/custom-css-js.php on line 89

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8 Depreciation Notice’ is closed to new replies.