PHP error

Support General PHP error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36423
    admin@dantianhealth.com.au[email protected]
    Participant

    When upgrading my site to PHP8+ I get the following error:

    foreach() argument must be of type array|object, int given

    location:
    wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-columns/src/Processor.php:73
    MetaBox\C\Processor->parse_columns()
    wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-columns/src/Processor.php:40
    MetaBox\C\Processor->__construct()
    wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-columns/meta-box-columns.php:30
    mb_columns_add_markup()
    wp-includes/class-wp-hook.php:307
    apply_filters('rwmb_meta_box_settings')

    What needs to be done to resolve this?

    #36441
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share the code that creates the custom fields and columns on your site? Regarding this documentation https://docs.metabox.io/extensions/meta-box-columns/
    I guess there is an issue when using the MB columns in your code.

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