Open tranduyhung opened 5 years ago
I also get this error when using the microdata section - if I turn the microdata off the page renders properly, if I turn any of them on the page throws an empty $imgarray
error. I've just discovered this, will investigate over the next days.
In seoGetimage function in seo.php, line 78 creates the error
Call to a member function media() on null
if the page of image is not found:To fix this, we need to check if the page exists or not first, something like this:
Because I am not familiar with this plugin so I don't know if returning empty URL, width and height would effect somewhere else or not, so I don't submit a pull request for this, at least with this simple fix the error is gone and the site's running again.