Comments (7)
Thanks for the report Brian.
I've released v1.3.4 that fixes the problem.
from sitemap_generator.
Hi kjvarga,
FYI, I went to install this on another Rails project today and got a "no such file to load" when running "rake sitemap:install"
https://gist.github.com/735876
I reverted sitemap_generator_tasks.rake back to it's prior version from a few days ago and that fixed it. I had it installed as a plugin, so maybe something about the rescue at the top of the file that used to be there? Wanted to let you know.
from sitemap_generator.
Actually v1.3.5 didn't generate any links in the sitemap file either on my Rails 2.2.2 project.
I had to revert back to v1.3.4 and it worked again.
For anyone else who runs into this, you can install the plugin with an earlier version by adding it manually, and then checking out the right version:
cd vender/plugins
git clone git://github.com/kjvarga/sitemap_generator.git
cd sitemap_generator
git checkout v1.3.4
cd ../../..
rake sitemap:install
Hope it helps someone! Again, this is using the plugin instead of the gem, and on rails 2.2.2 so not sure if it is affecting others as well.
from sitemap_generator.
P.S. The plugin is really awesome - it has saved me a ton of time to just wanted to say thanks for posting and maintaining it!
from sitemap_generator.
Hi Brian, thanks for the support. It's good to hear from people who use it and that they find it useful :)
That's really weird that it throws a "no such file to load" exception. I run my tests on a plugin and a gem install, and my expectation was that if it's installed as a plugin, then 'require sitemap_generator' should always work, because I would have expected it to be in the load path or something...evidently that's not the case.
I guess it loads the tasks but doesn't require the library? So you have to require the whole rails environment for every task if running as a plugin. I think it's odd that Rails would work that way. But I'm testing on 2.3.8, so it may be down to a different in the Rails version.
Looks like I'll have to add that rescue back in.
from sitemap_generator.
Hey Brian, can you try out v1.3.6? It should be working. I also fixed a problem with a missing 'pluralize' method, not sure why you didn't have a problem with that...
Cheers,
Karl
from sitemap_generator.
Hi Karl,
Yep ran into the pluralize one too but forgot to mention it.
Ok just tried 1.3.6 and worked perfectly from install to refresh - no errors. You rule! Thanks for the update.
Brian
from sitemap_generator.
Related Issues (20)
- Ping failed for Bing: #<OpenURI::HTTPError: 410 Gone> HOT 2
- Feature Request: Remove unwanted options HOT 6
- Is it possible to override the default link options? HOT 3
- How to remove default priority, lastmod and changefreq from all urls HOT 1
- GoogleStorageAdapter - Can't create sitemap on buckets with uniform bucket-level access enabled HOT 3
- Allow disable acl for S3 bucket HOT 1
- Rails on Heroku with S3 sitemap hosting - google didn't like it HOT 2
- 【Worked】Ping failed for Bing: #<OpenURI::HTTPError: 410 Gone> HOT 4
- Is it possible to add additional metadata fields to the xml HOT 5
- Feature request : Make `default_host` optional / Allow full URL instead of path HOT 2
- Entity escaping in XML output
- google search console couldn't fetch sitemap but index is ok HOT 7
- Google search correct ping url HOT 2
- Readme install instructions fail HOT 1
- [BUG] Mobile sitemap link in Readme.md is giving 404
- TimeZone is ignored
- sitemap.xml.gz file not found on server
- Testing with frozen time does not work
- should sitemap show up automatically in google search console? HOT 2
- Should we drop default `lastmod` of `Time.now` as Google says "it needs to consistently match reality"? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sitemap_generator.