fmgujju Posted January 12, 2013 Posted January 12, 2013 I updated my client's website with new version 1.0.5 of this module and my sitemap.xml doesn't work anymore, when I launch http://www.fmmhindusociety.com/sitemap.xml, it give me 404 error so I reverted back to version 1.0.3 which work as expected. Hosting is on windows platform with godaddy, just for your info.
Pete Posted January 12, 2013 Author Posted January 12, 2013 Ah, I will have a look at it tomorrow again
Soma Posted January 12, 2013 Posted January 12, 2013 I updated my client's website with new version 1.0.5 of this module and my sitemap.xml doesn't work anymore, when I launch http://www.fmmhindusociety.com/sitemap.xml, it give me 404 error so I reverted back to version 1.0.3 which work as expected. Hosting is on windows platform with godaddy, just for your info. Have you LanguageLocalizedURL module installed? I guess not. I can't see where that 404 is coming from. I'm currently trying around and it works. If you don't have language urls installed there's no need to update to 1.0.5 already. Sorry for the confusion I created here.
fmgujju Posted January 13, 2013 Posted January 13, 2013 Soma, I don't have LanguageLocalizedURL module installed. I already reverted to v1.0.3 which I had before. Just wondering if I want to install latest & greatest XMLSitemap module then I need to have LanguageLocalizedURL module installed? correct? I think if its then probably Pete needs to update installation instructions with dependencies of other modules.
Soma Posted January 13, 2013 Posted January 13, 2013 No there is no dependencies it just looks if it is installed. Theres no other significant changes.
fmgujju Posted January 13, 2013 Posted January 13, 2013 if there is no dependencies then good. I installed v1.0.5 again so you can check out 404 error page. http://www.fmmhindusociety.com/sitemap.xml
Soma Posted January 13, 2013 Posted January 13, 2013 Yeah its the 404 page. So no error. The only thing I can imagine is that this code doesn't work for you and so since sitemap.xml isnt a page it shows 404 page. I don't know why it wouldn't work. if (strpos($_SERVER['REQUEST_URI'], '/sitemap.xml') !== FALSE) { $this->addHookAfter("Page::render",$this,"renderSitemap"); }
fmgujju Posted January 13, 2013 Posted January 13, 2013 I will use v1.0.3 until it get fix. Thanks Soma!
Pete Posted January 15, 2013 Author Posted January 15, 2013 This has now been bumped to 1.0.6 as I missed a change from Soma. Not sure if it will fix your issue though!
Soma Posted January 15, 2013 Posted January 15, 2013 Pete. There's a missing $langname = ''; #36, the sitemap won't work if debug mode enabled, as the markupcache uses $langname and throws a warning that will give a header already sent error. SOmehow fmgujju seems another problem as if it shows a 404 page, which means the modules doesn't get executed at all or the most likely the init code strpos check doesn't hold true for some reason (the only I changed)
Pete Posted January 15, 2013 Author Posted January 15, 2013 Added and committed that line - thanks. Yep - no idea what the 404 issue is as I compared the strpos and it should just work as far as I can tell.
fmgujju Posted January 18, 2013 Posted January 18, 2013 It's not working with v1.0.6 either. Because I have installed PW on windows platform that's why it may not be working.I have rollback to v1.0.3 again.
Soma Posted January 18, 2013 Posted January 18, 2013 I made some changes to get rid of the 404 problem and changes some minor stuff to then work with LanguageLocalizedURL module too. fmgujju could you please take that code https://github.com/somatonic/MarkupSitemapXML/blob/master/MarkupSitemapXML.module and test if it solves your issue before pete accepts the pull request? Thanks 1
fmgujju Posted January 18, 2013 Posted January 18, 2013 Yep! it worked. Thank you so much Soma & Pete for your help!
totoff Posted February 22, 2013 Posted February 22, 2013 hi pete, thanks for your module. just wanted to ask if there is a way to update the sitemap as the site evolves (i.e. new pages are added)? best, christoph
typ9 Posted February 26, 2013 Posted February 26, 2013 Just wanted to say big thanks for this module, pete!
Pete Posted February 26, 2013 Author Posted February 26, 2013 @totoff, it keeps the cache for an hour and then re-caches the entire sitemap so it does 24 updates a day to keep current on even the most active sites. @Georgson - no problem! 1
teppo Posted March 5, 2013 Posted March 5, 2013 (edited) Pete, just a heads-up that I sent you a pull request regarding Multisite support and a pile of other changes I thought were necessary/useful.. Edit: as an afterthought, should probably have sent those as separate pull requests. Not familiar enough with GitHub yet. I hope there's some way to choose which commits you're willing to merge (if any.) Also: didn't read this thread properly before making changes, so I've managed to miss all this 404-related stuff. One of those commits would change hook from Page::render to ProcessPageView::pageNotFound, which shouldn't break anything (except that it changes slightly those cases where sitemap gets rendered, which was exactly my intention) but that might be slightly dangerous still. Works OK on those platforms where I've had the chance to test it, but that may not be good enough yet. Edited March 5, 2013 by teppo 1
daniel-not-dan Posted May 3, 2013 Posted May 3, 2013 Hi there - I'm having a little trouble getting this to work. I'm getting the same error that was mentioned earlier, namely this: Error: Exception: Unable to create path: /f5/thesharktankproducts/public/site/assets/cache/MarkupCache/MarkupSitemapXML/ (in /f5/thesharktankproducts/public/wire/core/CacheFile.php line 62) My site/assets/cache folder's permissions are currently set to 777. I also uninstalled Markup Cache and Markup XML, then reinstalled them (Cache first, and newest version of XML), with no luck. I'm running PW 2.3.0. I have what I think is the PW default site-map available here: http://thesharktankproducts.com/site-map/ but that's not readable by Google Webmaster Tools. I would be very grateful for any insights. Thanks!
teppo Posted May 3, 2013 Posted May 3, 2013 Hi there - I'm having a little trouble getting this to work. I'm getting the same error that was mentioned earlier, namely this: Error: Exception: Unable to create path: /f5/thesharktankproducts/public/site/assets/cache/MarkupCache/MarkupSitemapXML/ (in /f5/thesharktankproducts/public/wire/core/CacheFile.php line 62) My site/assets/cache folder's permissions are currently set to 777. I also uninstalled Markup Cache and Markup XML, then reinstalled them (Cache first, and newest version of XML), with no luck. Just to make sure: does /site/assets/cache/MarkupCache/ directory exist and if it does, is it also writable (either 777 permissions or writable by web server?)
daniel-not-dan Posted May 3, 2013 Posted May 3, 2013 Just to make sure: does /site/assets/cache/MarkupCache/ directory exist and if it does, is it also writable (either 777 permissions or writable by web server?) Yes it exists and the permission is set to 777. Not sure if this is helpful/relevant, but I only just migrated it from my local server to the host server last night. I just copied the files to the host server, and changed the config.php file to connect to the correct server. Is this possibly something that could be causing the error? EDIT: Just checked the XML sitemap on my local install and it is working there.
daniel-not-dan Posted May 3, 2013 Posted May 3, 2013 OK, so i also just discovered I am not able to upload images. I had Filezilla set all the directories in my site to 777 and tried again with no luck. This now seems like a separate issue. Something with my host I'm guessing. I'll start a new thread. Sorry!
Pete Posted June 2, 2013 Author Posted June 2, 2013 Finally merged some updated from Teppo - thanks! Now includes multisite support: http://modules.processwire.com/modules/markup-sitemap-xml/ 2
OrganizedFellow Posted June 10, 2013 Posted June 10, 2013 I am getting the following error after attempting to access website.com/sitemap.xml Running ProcessWire 2.3 on local machine. ************ EDIT: I downloaded and replaced the *.module with the latest one from github, still error persists. I'll uninstall in the meantime
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now