Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue no url was found.... #10

Open
facetimer opened this issue Dec 6, 2019 · 9 comments
Open

Issue no url was found.... #10

facetimer opened this issue Dec 6, 2019 · 9 comments

Comments

@facetimer
Copy link

My site are ok.
i tested here https://www.xml-sitemaps.com/

What i have to check with your script please

@khromov
Copy link
Owner

khromov commented Dec 6, 2019

Hey @facetimer!

Can you post a gist with your full sitemap? That way I or someone else could try it.

Otherwise, you can check the code yourself for issues.

Which php version are you using?

@khromov
Copy link
Owner

khromov commented Dec 17, 2019

Hey @facetimer

Did you resolve your issue? If not, please post the non-working sitemap.

@vitor-ao
Copy link
Contributor

vitor-ao commented Oct 27, 2020

I get the no URLs were found error on this one: https://www.barato.ao/sitemap-paginas-1.xml

@kevin39
Copy link

kevin39 commented Nov 15, 2020

Same issue on my side.
Fixed with my PR : #13

@khromov
Copy link
Owner

khromov commented Nov 15, 2020

@vitor-ao I couldn't reproduce the issue on your sitemap:

2020-11-15 18_41_52-Mozilla Firefox

This makes me think it's something related to your PHP settings. Can you check that the PHP setting allow_url_fopen is enabled on your server? Can you also try removing @ from the call to file_get_contents(..) and simplexml_load_string(..) to see if any error messages show up?

https://github.com/khromov/sitemap-cache-warmer/blob/master/class/PHP_Warmer.class.php#L114

@kevin39

I'm not sure you have the same issue as @vitor-ao. Could you also trying removing @ from the calls I suggested above to see if any error messages show up? I think removing the XML header like in your PR is likely to break other use cases (such as this sitemap which has both an xml and an xml-stylesheet tag...)

@vitor-ao
Copy link
Contributor

Thanks for the tip @khromov. Turns out i'm getting a timeout when running (not sure why). Tested locally on my development environment and it's working. So my situation can be considered excluded.

@d654525
Copy link

d654525 commented Dec 9, 2020

Hi! Having the same issue with the sitemap: https://simplyspeak.pro/page-sitemap.xml
allow_url_fopen is enabled

@dutuka
Copy link

dutuka commented Mar 19, 2021

Hello, i have same issue with the site map, following are the errors messages:

JSON:
status | "ERROR"
message | "Processed sitemap: http:… but no URL:s were found"
count | null
duration | 0.3821549415588379
log | []
visited_urls | []

RAW:
{"status":"ERROR","message":"Processed sitemap: http://domain.com/sitemap_index.xml - but no URL:s were found","count":null,"duration":0.3821549415588379,"log":[],"visited_urls":[]}

Console:
Content Security Policy: The page’s settings blocked the loading of a resource at http://domain.com/favicon.ico (“default-src”). FaviconLoader.jsm:191:19. 2 FaviconLoader.jsm:191:19

My server is nginx, php74, allow_url_fopen is on, sitemap created with Yoast WordPress SEO. How can I fix this issue?

@loosegoose22
Copy link

loosegoose22 commented Mar 19, 2022

Seeing same error:

{"status":"ERROR","message":"Processed sitemap: https://www.inhouseblog.com/sitemap_index.xml - but no URL:s were found","count":null,"duration":5.0067901611328125e-5,"log":[],"visited_urls":[]}

But Sitemap Index is there and can be visited (it is created by Yoast:

https://www.inhouseblog.com/sitemap_index.xml

allow_url_fopen is on, and I tried the two edits mentioned above (removing @ from the call to file_get_contents(..) (which I think was in two places) and simplexml_load_string(..)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants