Skip to content

Error with PHP 8.0 #66

Description

@slredden

I have a client who uses this theme on their site, and upgrading to PHP 8 created a fatal error. It seems stricter type checking in PHP 8 has created an error with the file /themes/fruitful/inc/metaboxes/init.php. On line 756 the following change needs to be made:
elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] === 1 ) )
$type = is_string( end( $meta_box['pages'] ) ) ? end( $meta_box['pages'] ) : false;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions