Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
XML Parsing Error #1355
Sitemap -which has worked fine for years - now has this error
XML Parsing Error: junk after document element
Here's the content of line 2826 inside webroot / wp-content / plugins / all-in-one-seo-pack / modules / aioseop_sitemap.php
$extn = pathinfo( wp_parse_url( $image, PHP_URL_PATH ), PATHINFO_EXTENSION );
Is there a quick fix I can put in the code line? Any guidance would be appreciated.
The problem you're having is at https://github.com/semperfiwebdesign/all-in-one-seo-pack/blob/master/modules/aioseop_sitemap.php#L2826
Offhand I'd say your images don't have a PHP_URL_PATH for some reason.
We may look at would be pulling out wp_parse_url and checking if the result is a string/not an array, and just return false if so.
Or maybe something along the lines of:
@cpassero If you don't mind, you can submit your login information to our secure form at https://semperplugins.com/contact/submit-login-information/ so that we can develop and test a solution.
@cpassero The short version is that you need to update to at least WP 4.7 (we always recommend updating to the latest version).
For development of this issue: We need to decide if we want to support <4.7 (other than this, it should work all the way back to 4.0), and if so implement a fix like I described above where we take out the component parameter.