Error: error on line 2 at column 1: Document is empty | Troubleshooting All in One SEO Pack Pro | Support | Semper Plugins

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Error: error on line 2 at column 1: Document is empty
September 17, 2016
11:37 am
Avatar
drake
Member
Guests
Forum Posts: 37
Member Since:
January 8, 2013
sp_UserOfflineSmall Offline

This page contains the following errors:

error on line 2 at column 1: Document is empty

Below is a rendering of the page up to the first error.

 

https://www.eoms.org/sitemap-main.xml

 

Just FYI, I have..

  • Completely deleted the plugin and reinstalled, no change.
  • Deleted the original xml file, no change.
  • Changed the name of the sitemap file being generated, no change.

As of right now AIO acts like there is no issue but clearly there is one.  No caching plugins are in use or anything weird like that.  Other sitemap plugins have no issue generating their files.  AIO’s sitemap is named uniquely and does not conflict.  AIO video sitemap generates without any issues.

Thoughts?

September 18, 2016
10:38 am
Avatar
Steve Mortiboy
Admin
Forum Posts: 2197
Member Since:
January 5, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

January 7, 2020
3:35 pm
Avatar
Stefano Benedetti
Milan, Italy
Member
AIOSEOP
Forum Posts: 4
Member Since:
May 30, 2016
sp_UserOfflineSmall Offline

Steve Mortiboy said
That error message means that there is whitespace in one of the PHP files such as a blank line or space before the opening PHP tags or after the closing PHP tags.  When this happens, an XML file will show that error.  You should start by gong through your theme files checking for whitespace.  You may also want to reinstall WordPress and deactivate all plugins to ensure there’s not whitespace in any WordPress PHP file or in any plugin PHP file.

  

Hi Steve,

does this error appear with a whitespace in any php file or in one specific? I’ve the same error in my site.

 

Thanks,

 

Stefano

January 7, 2020
3:39 pm
Avatar
Steve Mortiboy
Admin
Forum Posts: 2197
Member Since:
January 5, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

January 7, 2020
4:59 pm
Avatar
Stefano Benedetti
Milan, Italy
Member
AIOSEOP
Forum Posts: 4
Member Since:
May 30, 2016
sp_UserOfflineSmall Offline

Well,

I duplicated the site on localhost and, surprise, the sitemap is correct. No errors. I didn’t want to make any experiment directly because it’s online. If there was a whitespace in any file, I should find the error in the online site and in the local too. Or not?

Thank you for your help.

January 7, 2020
5:15 pm
Avatar
Steve Mortiboy
Admin
Forum Posts: 2197
Member Since:
January 5, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

January 8, 2020
10:01 am
Avatar
Stefano Benedetti
Milan, Italy
Member
AIOSEOP
Forum Posts: 4
Member Since:
May 30, 2016
sp_UserOfflineSmall Offline

Hi Steve,

I made some “experiments” and I found there is a problem with the WPBakery Page Builder plugin.

Thank you.

Forum Timezone: America/New_York
Most Users Ever Online: 964
Currently Online:
23
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 36
Members: 23684
Moderators: 1
Admins: 7
Forum Stats:
Groups: 4
Forums: 28
Topics: 2138
Posts: 9312
Newest Members:
Muhammet Acar
Moderators: semperplugins: 0
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve Klasen, Arnaud: 262
[i]
[i]
Skip to toolbar