• Hello,
    Thanks for this plug-in. I’m using it for the module “custom status”. It works well, but on my post list (wp-admin/edit.php), I get a PHP Warning with Query Monitor :
    Level : Warning
    Message : Invalid argument supplied for foreach()
    Count : 20

    Location :
        wp-content/plugins/edit-flow/modules/custom-status/custom-status.php:756
        EF_Custom_Status->check_if_post_state_is_status()
        wp-includes/class-wp-hook.php:288
        apply_filters('display_post_states')
        wp-admin/includes/template.php:2168
        get_post_states()
        wp-admin/includes/template.php:2077
        _post_states()
        wp-admin/includes/class-wp-posts-list-table.php:1033
        WP_Posts_List_Table->column_title()
        wp-admin/includes/class-wp-posts-list-table.php:955
        WP_Posts_List_Table->_column_title()
        wp-admin/includes/class-wp-list-table.php:1352
        WP_List_Table->single_row_columns()
        wp-admin/includes/class-wp-posts-list-table.php:1298
        WP_Posts_List_Table->single_row()
        wp-admin/includes/class-wp-posts-list-table.php:741
        WP_Posts_List_Table->_display_rows()
        wp-admin/includes/class-wp-posts-list-table.php:718
        WP_Posts_List_Table->display_rows()
        wp-admin/includes/class-wp-list-table.php:1273
        WP_List_Table->display_rows_or_placeholder()
        wp-admin/includes/class-wp-list-table.php:1204
        WP_List_Table->display()
        wp-admin/edit.php:433

    Component : Plugin: edit-flow

    I’m using PHP 7.3.12

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • This should be resolved in the newest version of Edit Flow (0.9.3). When you have a chance, can you update and let us know if you’re still experiencing this issue?

    Thanks,
    Connor

    Thread Starter mahrr

    (@maloherry)

    Hello, after the update I still have the error (line 755 now) :

    Warning	Invalid argument supplied for foreach()	20
        wp-content/plugins/edit-flow/modules/custom-status/custom-status.php:755
    
        EF_Custom_Status->check_if_post_state_is_status()
        wp-includes/class-wp-hook.php:288
        apply_filters('display_post_states')
        wp-admin/includes/template.php:2168
        get_post_states()
        wp-admin/includes/template.php:2077
        _post_states()
        wp-admin/includes/class-wp-posts-list-table.php:1033
        WP_Posts_List_Table->column_title()
        wp-admin/includes/class-wp-posts-list-table.php:955
        WP_Posts_List_Table->_column_title()
        wp-admin/includes/class-wp-list-table.php:1352
        WP_List_Table->single_row_columns()
        wp-admin/includes/class-wp-posts-list-table.php:1298
        WP_Posts_List_Table->single_row()
        wp-admin/includes/class-wp-posts-list-table.php:741
        WP_Posts_List_Table->_display_rows()
        wp-admin/includes/class-wp-posts-list-table.php:718
        WP_Posts_List_Table->display_rows()
        wp-admin/includes/class-wp-list-table.php:1273
        WP_List_Table->display_rows_or_placeholder()
        wp-admin/includes/class-wp-list-table.php:1204
        WP_List_Table->display()
        wp-admin/edit.php:433
    • This reply was modified 4 years, 11 months ago by mahrr.

    Could you provide a list of plugins and the theme you’re using for your site? That will help with determining the issue.

    Thanks!
    Connor

    Thread Starter mahrr

    (@maloherry)

    Theme :
    Qode Bridge (Child theme)

    ### Active Plugins (38) ###

    Query Monitor: par John Blackbourn – 3.5.2
    AddToAny Share Buttons: par AddToAny – 1.7.39
    Admin Custom Login: par Weblizar – 2.9.9
    Author Avatars List: par Paul Bearne – 1.18
    AutomateWoo: par WooCommerce – 4.8.0
    Bridge Core: par Qode – 2.0.7
    Classic Editor: par Contributeurs et contributrices WordPress – 1.5
    Co-Authors Plus: par Mohammad Jangda Daniel Bachhuber Automattic – 3.4.2

    Admin Columns: par AdminColumns.com – 3.4.8
    Colored Admin Post List: par Stevie – 2.1
    DK PDF: par Emili Castells – 1.9.6
    Duplicate Post: par Enrico Battocchi – 3.2.4
    Edit Flow: par Daniel Bachhuber Scott Bressler Mohammad Jangda Automattic and others – 0.9.3

    Footnotes Made Easy: par David Artiss – 1.0.2
    Imagify Tools: par WP Media – 1.1.1
    Imagify: par WP Media – 1.9.8.1
    éditeur de page: par Michael M – WPBakery.com – 6.1
    Central Color Palette: par Daniel Menzies – 1.14.2
    Loco Translate: par Tim Whitlock – 2.3.1
    MC4WP: Mailchimp for WordPress: par ibericode – 4.7.4
    OneSignal Push Notifications: par OneSignal – 1.17.9
    Open External Links in a New Window: par WebFactory Ltd – 1.4
    Redis Object Cache: par Till Krüss – 1.5.5
    Slate Admin Theme: par Ryan Sommers – 1.2.1
    TinyMCE Advanced: par Andrew Ozz – 5.3.0
    Visual Editor Custom Buttons: par Ola Eborn – 1.5.2.3
    Advanced Order Export For WooCommerce: par AlgolPlus – 3.1.1
    WooCommerce Stripe Gateway: par WooCommerce – 4.3.1
    WooCommerce Subscriptions: par Automattic – 2.6.5
    WooCommerce: par Automattic – 3.8.1
    Wordfence Security: par Wordfence – 7.4.2
    Yoast SEO: par L’équipe Yoast – 12.7.1
    WP Add Custom CSS: par Daniele De Santis – 1.1.5
    WP Rocket | Exclude Files from Defer JS: par WP Rocket Support Team –
    WP Rocket: par WP Media – 3.4.2.2
    wp-Typography: par Peter Putzer – 5.6.0
    WP User Avatar: par flippercode – 2.2.4
    WPMobile. app — Application mobile Android et iOS: par amauri.io – 9.0.78

    I’ve flushed my object cache (Redis) and my page cache (WP Rocket) isn’t activated when logged in.

    • This reply was modified 4 years, 11 months ago by mahrr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom status invalid argument / PHP error’ is closed to new replies.