Title: php 8 errors
Last modified: March 3, 2021

---

# php 8 errors

 *  Resolved [donbowman](https://wordpress.org/support/users/donbowman/)
 * (@donbowman)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-8-errors/)
 * trialing update to php8.0 (wp 5.6.2, ubuntu 20.04), i get this error:
 * `NOTICE: PHP message: PHP Fatal error: Uncaught Error: Unknown named parameter
   $observer in /app/wp-content/plugins/css-javascript-toolbox/framework/events/
   subjects/subject.subject.php:227"`
 * fired from
 * `/app/wp-includes/class-wp-hook.php(287): CJTEESubject->trigger()`
 *     ```
       if ($this->processFilter($observer)) {
         // Pass observer referecne along with user params!!
        $this->result['params']['observer'] = $observer;
        $this->result['return'] = call_user_func_array(array($observer, 'trigger'), $this->result['params']);
        // Prepare parameters based on the previous call result!
        $this->prepareResultParameters();
       }
       ```
   
 * any comment on how i can work around this?
 * [https://php.watch/versions/8.0/named-parameters#named-params-call_user_func_array](https://php.watch/versions/8.0/named-parameters#named-params-call_user_func_array)
 * shows what is wrong/needs to be changed.
    -  This topic was modified 5 years, 3 months ago by [donbowman](https://wordpress.org/support/users/donbowman/).
    -  This topic was modified 5 years, 3 months ago by [donbowman](https://wordpress.org/support/users/donbowman/).

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php-8-errors/#post-14156066)
 * Hi there,
 * I apologise for the delay in replying. I know it has been almost a week.
 * We are currently working on some fixes for the next release.
 * Are you able to share anything further on this issue/error? Did you manage to
   resolve it?
 * Thanks for your understanding.
 *  Thread Starter [donbowman](https://wordpress.org/support/users/donbowman/)
 * (@donbowman)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php-8-errors/#post-14156647)
 * i was forced to discontinue use of the css & Javascript toolbox.
 * Instead of i have injected my needs into the theme functions.
 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php-8-errors/#post-14245463)
 * If anyone is using PHP 8 and notices any issues, please post it here. We also
   plan to do extensive tests with this PHP version.
 * In the meantime, it is highly recommended to stick with PHP version 7 (e.g. 7.2,
   7.3, 7.4) until 8 becomes more adopted and stable. Thanks
 *  [Larry Daniele](https://wordpress.org/support/users/larrydaniele/)
 * (@larrydaniele)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-8-errors/#post-14563349)
 * Here’s a stack trace etc. from a WordPress fatal error email:
 *     ```
       When seeking help with this issue, you may be asked for some of the following information:
       WordPress version 5.7.2
       Current theme: Avada Child HCOM (version 1.3.9)
       Current plugin: CSS & JavaScript Toolbox (version 11.3)
       PHP version 8.0.3
   
       Error Details
       =============
       An error of type E_ERROR was caused in line 227 of the file /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/framework/events/subjects/subject.subject.php. Error message: Uncaught Error: Unknown named parameter $observer in /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/framework/events/subjects/subject.subject.php:227
       Stack trace:
       #0 /home/holycowom/public_html/wp-includes/class-wp-hook.php(292): CJTEESubject->trigger()
       #1 /home/holycowom/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters()
       #2 /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/framework/events/subjects/filter.subject.php(25): apply_filters()
       #3 /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/framework/events/wordpress.class.php(79): CJTEEWordpressHookFilter->callIndirect()
       #4 /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/framework/events/hookable.class.php(35): CJTWordpressEvents->trigger()
       #5 /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/framework/access-points/access-point.class.php(130): CJTHookableClass->__call()
       #6 /home/holycowom/public_html/wp-content/plugins/css-javascript-toolbox/access.points/metabox.accesspoint.php(51): CJTAccessPoint->connected()
       #7 /home/holycowom/public_html/wp-includes/class-wp-hook.php(292): CJTMetaboxAccessPoint->postsMetabox()
       #8 /home/holycowom/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
       #9 /home/holycowom/public_html/wp-includes/plugin.php(484): WP_Hook->do_action()
       #10 /home/holycowom/public_html/wp-admin/includes/meta-boxes.php(1578): do_action()
       #11 /home/holycowom/public_html/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes()
       #12 /home/holycowom/public_html/wp-admin/post.php(206): require('/home/holycowom...')
       #13 {main}
        thrown
       ```
   
 * I get this error when I try to edit a page (“Contact Us”) or go to the Admin 
   > CSS & Javascript Toolbox page.
    -  This reply was modified 4 years, 11 months ago by [Larry Daniele](https://wordpress.org/support/users/larrydaniele/).
      Reason: Added additional information
    -  This reply was modified 4 years, 11 months ago by [Larry Daniele](https://wordpress.org/support/users/larrydaniele/).
      Reason: Added additional information
 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-8-errors/#post-14614693)
 * Hello there,
 * This looks like a PHP 8 error. Can you let us know if this is still an issue?
   Did you manage to resolve it?
 * Thanks
 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-8-errors/#post-15153112)
 * Hello there,
 * We have now fixed a number of compatibility issues for PHP version 8+
    These 
   fixes will be coming in the next CJT update (version 11.5).
 * We have tested the plugin with PHP version 8 and version 8.1 and found a couple
   of breaking changes, which has been fixed as well. We locally set up the environment
   with PHP version 8 and MySQL version 8 and tested the CJT plugin there. All is
   working well so far.
 * Thanks
 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-8-errors/#post-15161524)
 * Hi there,
 * I am just letting you know that CJT version 11.5 has now ben released with the
   following changes:
 * * Compatibility: PHP version 8+
    * Compatibility: MySQL version 8+ * Fix: Duplicate
   ID issue, which on rare occasions was fetching the ‘revision block’ ID for a 
   newly created block causing an error for duplicate entry * Enhancement: If the‘
   wp-content’ directory is renamed to something different (e.g. ‘content’), CJT
   will now find any custom content directories and install correctly.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘php 8 errors’ is closed to new replies.

 * ![](https://ps.w.org/css-javascript-toolbox/assets/icon-256x256.gif?rev=3132209)
 * [CSS & JavaScript Toolbox](https://wordpress.org/plugins/css-javascript-toolbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/css-javascript-toolbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/css-javascript-toolbox/)
 * [Active Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/css-javascript-toolbox/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)
 * [PHP 8.0](https://wordpress.org/support/topic-tag/php-8-0/)
 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * 7 replies
 * 3 participants
 * Last reply from: [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/php-8-errors/#post-15161524)
 * Status: resolved