Support » Plugin: Simple Taxonomy Refreshed » Issues with PHP 7.4

  • Resolved Jeremy Nusser

    (@nusserstudios)


    I’m getting several errors when trying to use this with PHP 7.4. This is what I get from XDebug:

    ( ! ) Notice: Trying to access array offset on value of type bool in /srv/www/example.com/current/web/app/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-client.php on line 41
    Call Stack
    # Time Memory Function Location
    1 0.0014 502232 {main}( ) …/plugins.php:0
    2 0.0027 541280 require_once( ‘/srv/www/example.com/current/web/wp/wp-admin/admin.php’ ) …/plugins.php:10
    3 0.0036 551968 require_once( ‘/srv/www/example.com/current/web/wp/wp-load.php’ ) …/admin.php:34
    4 0.0043 553336 require_once( ‘/srv/www/example.com/current/web/wp-config.php’ ) …/wp-load.php:42
    5 0.0413 1171720 require_once( ‘/srv/www/example.com/current/web/wp/wp-settings.php’ ) …/wp-config.php:9
    6 0.3049 21094448 do_action( ) …/wp-settings.php:540
    7 0.3049 21094824 WP_Hook->do_action( ) …/plugin.php:478
    8 0.3049 21094824 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
    9 0.3277 21411136 SimpleTaxonomyRefreshed_Client::init( ) …/class-wp-hook.php:287

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at /srv/www/example.com/current/web/app/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-client.php:41) in /srv/www/example.com/current/web/wp/wp-includes/functions.php on line 6221
    Call Stack
    # Time Memory Function Location
    1 0.0014 502232 {main}( ) …/plugins.php:0
    2 0.0027 541280 require_once( ‘/srv/www/example.com/current/web/wp/wp-admin/admin.php’ ) …/plugins.php:10
    3 0.3924 24508888 do_action( ) …/admin.php:170
    4 0.3924 24509264 WP_Hook->do_action( ) …/plugin.php:478
    5 0.3924 24509264 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
    6 0.3934 24527872 send_frame_options_header( ) …/class-wp-hook.php:285
    7 0.3934 24527872 header ( ) …/functions.php:6221

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at /srv/www/example.com/current/web/app/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-client.php:41) in /srv/www/example.com/current/web/wp/wp-admin/includes/misc.php on line 1282
    Call Stack
    # Time Memory Function Location
    1 0.0014 502232 {main}( ) …/plugins.php:0
    2 0.0027 541280 require_once( ‘/srv/www/example.com/current/web/wp/wp-admin/admin.php’ ) …/plugins.php:10
    3 0.3924 24508888 do_action( ) …/admin.php:170
    4 0.3924 24509264 WP_Hook->do_action( ) …/plugin.php:478
    5 0.3924 24509264 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
    6 0.3973 24723064 wp_admin_headers( ) …/class-wp-hook.php:287
    7 0.3973 24723384 header ( ) …/misc.php:1282

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at /srv/www/example.com/current/web/app/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-client.php:41) in /srv/www/example.com/current/web/wp/wp-admin/admin-header.php on line 9
    Call Stack
    # Time Memory Function Location
    1 0.0014 502232 {main}( ) …/plugins.php:0
    2 0.4191 24866056 require_once( ‘/srv/www/example.com/current/web/wp/wp-admin/admin-header.php’ ) …/plugins.php:486
    3 0.4191 24866120 header ( ) …/admin-header.php:9

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at /srv/www/example.com/current/web/app/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-client.php:41) in /srv/www/example.com/current/web/wp/wp-includes/option.php on line 961
    Call Stack
    # Time Memory Function Location
    1 0.0014 502232 {main}( ) …/plugins.php:0
    2 0.4191 24866056 require_once( ‘/srv/www/example.com/current/web/wp/wp-admin/admin-header.php’ ) …/plugins.php:486
    3 0.4193 24866504 wp_user_settings( ) …/admin-header.php:70
    4 0.4196 24866544 setcookie ( ) …/option.php:961

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at /srv/www/example.com/current/web/app/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-client.php:41) in /srv/www/example.com/current/web/wp/wp-includes/option.php on line 962
    Call Stack
    # Time Memory Function Location
    1 0.0014 502232 {main}( ) …/plugins.php:0
    2 0.4191 24866056 require_once( ‘/srv/www/example.com/current/web/wp/wp-admin/admin-header.php’ ) …/plugins.php:486
    3 0.4193 24866504 wp_user_settings( ) …/admin-header.php:70
    4 0.4196 24866552 setcookie ( ) …/option.php:962

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nwjames

    (@nwjames)

    @nusserstudios
    Thank you for reporting this problem.

    I have been able to reproduce it.

    It is due to debug being switched on and the option record not yet being created.

    As soon as a taxonomy is created, even if it is later deleted to give an empty options record, the message will no longer be seen.

    I have made a fix to the plugin so that it will not give this error, so new downloads won’t have the issue.

    However I have deliberately not changed the version number since it will give no benefit to existing users who have got past this stage – other than cause them work.

    Thank you again for letting me now of it,
    Neil James

    Awesome, that works great. My apologies for not getting back sooner. I totally forgot I asked this. Many, many thanks @nwjames!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.