ethercreative / seo

SEO utilities including a unique field type, sitemap & redirect manager
MIT License
269 stars 96 forks source link

Error while updating to version 3.7.2 #358

Closed karan-saluja closed 3 years ago

karan-saluja commented 3 years ago

Description

Error while updating from 3.7.1 to 3.7.2.. I think there is a little problem with line number 110 of file "src/models/data/SocialData.php" which was changed in version 3.7.2..

Steps to reproduce

  1. Update SEO and go to a page that had SEO's "social image" uploaded
  2. Please see screenshot

Additional info

seo 3 7 2 error

sunscreem commented 3 years ago

Just to confirm, I've rolled back to version 3.7.1 and this has sorted it for me.

Same specs for my setup as Karan with the exception that I'm on PHP7.4

rinusvandam commented 3 years ago

I'm having the exact same error on version 3.7.3 with a site.

cole007 commented 3 years ago

Likewise - looks like the stored image data is saved as a multidimensional array rather than an array of image objects to the is_array is always getting triggered but the stored data is not in the correct format.

Perhaps needs an array_key_exists check or similar in the logic for /ether/seo/src/models/data/SocialData.php

karan-saluja commented 3 years ago

Thanks Tam

karan-saluja commented 3 years ago

@Tam The images that were uploaded in the social tab are still not visible in the admin panel after the update