Skip to content

PHP 8.x Images sizes issue with demo import #70

@AmentoTech

Description

@AmentoTech

Hello @ViorelEremia

I hope you are doing well

We are a theme developer and have been working with Unyson and its demo content importer for a couple of years. PHP 7.4 is deprecated on many servers. Our many customers, facing issues with demo content import. This is not a big issue but stopping our customers to import demo content. We just got fixed that by adding a line of code. If you could add that fix quickly that would be much appreciated

8 1

This is fix 3f7665b
ext-8 1

Replace that line :

$state['processed_sizes'] = array_merge($state['processed_sizes'], $meta['sizes']);

with below

if(!empty($state['processed_sizes']) && !empty($meta['sizes'])){
    $state['processed_sizes'] = array_merge($state['processed_sizes'], $meta['sizes']);
}

Looking forward to fixing that asap, that would be much appreciated

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions