WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Google XML Sitemaps and WordPress 2.5.1 (33 posts)

  1. arturogoga
    Member
    Posted 5 years ago #

    It seems there are issues with Google XML Sitemaps and WordPress 2.5.1. Before, it was working great, but now, it won't let me publish / edit / delete any post, giving me a timeout error.

    I went "the old way" to figure out the culprit of this problem (IE: deactivating all plugins, and activating them all one by one, each time writing / deleting a post).

    It was when I activated XML Sitemaps, that it stopped working...

  2. tretsim
    Member
    Posted 5 years ago #

    I'm not having this problem

  3. arturogoga
    Member
    Posted 5 years ago #

    On the configuration page, it seems it never finishes rebuilding the database after each new post. I gave it an unlimited timeout, more memory, and took about 200 seconds to do it, something that, with 2.5, never happened

  4. mrkingid
    Member
    Posted 5 years ago #

    Works for me as well.

  5. sharebrain
    Member
    Posted 5 years ago #

    I am having the same problem. When i don´t get a timeout it take about 50 to 60 seconds to publish a post. And i had an error that the "last" sitemap couldn´t be build etc ....
    Would be great if this would be fixed.

    WP 2.5.1 & about 2100 posts on the blog.

  6. arturogoga
    Member
    Posted 5 years ago #

    Deactivated "Page Links To", which, according to the debug, seemed to be causing trouble with Google XML Sitemaps. But to no avail, since it still takes about 300 seconds to compile a sitemap...

  7. DrHallows
    Member
    Posted 5 years ago #

    It is true, i test it, same problem here =/

  8. KirkM
    Member
    Posted 5 years ago #

    Okay, why would the plugin work for me and not for others? The debug information comes through with no errors, I can rebuild the sitemap successfully (actually turn around time to page refresh was about 12 seconds):

    The building process took about 2.76 seconds to complete and used 20.25 MB of memory.

    I ran a test post to try and duplicate the problem and from time I hit the "Publish" button to the actual moment the post was published was Approximately 11 seconds. The sitemap rebuilt normally at time of publish:

    The building process took about 6.37 seconds to complete and used 20.25 MB of memory.

    One of the things I did quite awhile ago was to stick a "php.ini" file (normally found in your root directory...I made a copy of mine) into my "plugins" folder where I was concerned about script functions that took more than the default 8 or 16 MB's of memory to execute. Also, after a major upgrade, it's not uncommon for certain scripts which ran fine before to require more memory to execute the first few times. I don't know why this is exactly but I've encountered it more than once.

    Here's a couple things you can try:

    1. in the Google XML plugins settings, set memory limit to 32 and save your settings. Then try rebuilding again. If successful then try another post and see what happens.

    or

    2. In any WordPress install, your host should have put a "php.ini" file in your root directory. Bring this file up in your favorite editor and look for a section called "Memory Resources" or the equivalent. It should have a couple of lines that look like this:

    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    memory_limit = 32 ; Maximum amount of memory a script may consume (8MB)

    If memory limit isn't equal to 32 (it might be set to 16 for example) then change the number to 32. You might also want to make sure that the "max_execution_time is set to a minimum of 30 also. Once that's done, save it back to your root directory on your server. Now try to rebuild your sitemap.

    If you encounter the same problem then make a copy of that "php.ini" file and drop it right into your "wp-content/plugins" directory and try rebuilding once more. I'd be surprised if one of these solutions didn't solve your problem.

    HTH

  9. sharebrain
    Member
    Posted 5 years ago #

    well ... that maybe a solution but it still didn´t work well. i have a memory limit of 50 and a max_execution_time of 90sec.

    but it still take about 40 to 50 seconds to build the sitemap. i get a lot of notices when i run the plugin in debug mode: Notice: Undefined property: stdClass::$args in /wp-includes/taxonomy.php on line 1068.

    god i wish someone could post a soultion for this :( 50 seconds after publishing a post is way too long ....

  10. deuced
    Member
    Posted 5 years ago #

    While the plugin is working for me i still have the same notice : Notice: Undefined property: stdClass::$args in /wp-includes/taxonomy.php on line 1068 but i believe that hasn't to do with the plugin.

  11. Arnee
    Member
    Posted 5 years ago #

    Hi all,

    thanks for the feedback! There was a change in the WordPress 2.5 caching system which resulted in a database query for every post when the sitemap was created. Because of this, it is likely that the script run into the memory or time limit.

    I've added a workaround in the new 3.0.3.2 release which fixes this issue. You can get it here:

    http://downloads.wordpress.org/plugin/google-sitemap-generator.3.0.3.2.zip

    I'm also working on the new major version of the plugin which is split into several files, so only the PHP code which is needed for the current request is loaded. That means that only a very small "code loader" is active on every page load and the sitemap generator itself is just loaded when you really want to rebuild the sitemap.

    You can help me by testing the new test release (also known as "development version"). Note that this version might not work completly, but it would be great if you help me and report what's not working :)

    The current development version is always here:
    http://downloads.wordpress.org/plugin/google-sitemap-generator.zip

    Please note that if you update to this version, the plugin should be automatically disabled afterwards since the filename of the core plugin file changed. You'll need to activate it again at the plugin page.

    Thanks and best regards,

    Arne

  12. Neuroitc
    Member
    Posted 5 years ago #

    I tried both development and last version (3.0.3.2) in WP 2.5.1 but it told me "permission denied" when i tried to access to configuration page. I have role manager but google xml sitemap doen't appear there. does it happen only to me? I also tried to reinstall 3.0.3.1 but it happens the same.

  13. sharebrain
    Member
    Posted 5 years ago #

    Hi arnee,

    thx for the upgrade. I installed it and it worked good.
    before the upgrade:

    time to create sitemap: 50 sec
    after: 14 seconds

    memory before 18 mb
    memory after 17 mb

    THATS much better :-)

  14. mr.omneo
    Member
    Posted 5 years ago #

    Hi Arne,

    I've also been having a problem. Strangely I have 2 blogs running 2.5.1 and one has no problems with the plugin but the otehr just refuses to play nicely.

    I have tried both the development version and the 3.0.3.2 version but still nothing but a blank screen.

    One thing I notice is that if I remove the plugin from the server and then re-install it, it shows the data from the previous attempt, almost as if it's kept it in some sort of cache, I'm wondering if this is causing the problem with the newer versions?

    Any help would be appreciated :)

  15. arturogoga
    Member
    Posted 5 years ago #

    @Neuroitc
    You probably need to change permissions of the plugin folder (755).

    @arnee
    Thanks for the update, it's working great now :).

  16. Neuroitc
    Member
    Posted 5 years ago #

    Hi, thanks for the answer but i checked plugin folder permissions and they are correctly set. Any idea?

  17. Arnee
    Member
    Posted 5 years ago #

    @Neurotic
    I don't know the role manager, but the plugin needs the "administrator" role which is checked by WP itself. There are no additional checks within the plugin.

    @mr.omneo
    Where do you get the blank screen? After writing a post? Did you try to increase the memory and time limit?
    You can also try to enable the "Build the sitemap in a background process" option which is located under "Advanced options" at the sitemap configuration page. This will build the sitemap in the background with a 15 second delay so it doesn't affect the posting process.
    The result of the last build process is stored in the database (the same location where the settings are saved) so it is still visible after you've reactivated the plugin.

    Best regards,

    Arne

    Ah, one more thing... If the latest versions of the plugin fixed all problems you've had with the plugin and WP 2.5, feel free to rate it on the WordPress Extend page:

    http://wordpress.org/extend/plugins/google-sitemap-generator/

    The rating dropped from nearly 5 complete stars to 4 in the last week, that makes me a little bit sad ;-(

  18. Neuroitc
    Member
    Posted 5 years ago #

    Ok, i discovered the problem. It was because i renamed administrator account. Now i changed in your sitemap.php "administrator" to suite my configuration and i see XML Sitemap menu on admin bar. There is also a problem: it says always to me:

    * The sitemap wasn't built yet. Click here to build it the first time.
    * If you encounter any problems with the build process you can use the debug function to get more information.

    Even if i checked my sitemap.xml and all has been updated. If i click on "build it the first time" under Status there is always
    "The sitemap wasn't built yet. Click here to build it the first time."

  19. mr.omneo
    Member
    Posted 5 years ago #

    Hi Arne,

    I had tried increasing the memory and time etc but nothing, the white page was whenever I tried to manually rebuild the page as it didn't do anything when I created a post.

    HOWEVER! I just installed version 3.0.3.3 and Hooray! it works like a charm, sitemap created in under 2seconds :)

    Super stuff... it's certainly worth more than 6 stars! ;)

  20. Neuroitc
    Member
    Posted 5 years ago #

    NO problem, i reset all settings to the default and i set them again and now all works fine

  21. widgett
    Member
    Posted 5 years ago #

    Arne: 3.0.3.3 saved my sanity on this same issue. Thanks for the quick fix. My therapist thanks you as well.

  22. chrisfmasse
    Member
    Posted 5 years ago #

    "i reset all settings to the default and i set them again and now all works fine"
    -
    Yes, that's the advice to give to anyone to make this updated plugin works.
    -
    Thanks to all.
    -
    Chris Masse

  23. chrisfmasse
    Member
    Posted 5 years ago #

    I gave a high mark to this plugin. I hope you'll get back to 5 soon, if the others act like I did.

  24. Keilya
    Member
    Posted 5 years ago #

    If anyone can help! Upgraded to 2.5.1 and whenever sitemap.php (even the new one arnee provided above) is in my plugins folder, I get this message when trying to access plugins.php (Dashboard is fine.)

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /home/exonesi/public_html/wp-admin/includes/plugin.php on line 4

    In my public_html/ php.ini file I have:

    memory_limit = 64M;

    In wp-config.php I have:

    //Allow more memory.
    @ini_set("memory_limit","64M");

    If I try to increase the memory limit via .htaccess, I get a 500 Internal Server Error so that's about the *last* way (known to me at the moment) to increase the memory limit allowed for php scripts. Anybody with some good idea of how I can solve this is greatly appreciated. (:

  25. Keilya
    Member
    Posted 5 years ago #

    I looked into the error log when I tried to insert "php_value memory_limit 16M" into .htaccess. I get a 500 Internal Server Error and here's what the error log says:

    /home/exonesi/public_html/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

    Could this also be a problem on my host's side...like say they recently lowered the amount of PHP memory a script could run on?

  26. Keilya
    Member
    Posted 5 years ago #

    Just an update: I've contacted my host about the memory limit cap and it didn't seem to be it. Somehow halfway through communicating with tech support, the error disappeared completely. O_o I tried asking them if they did anything but they only thing they did was to generate a php info() report. So this confuddles me, no idea what happened but I'm glad to have the plugin back running. (:

  27. rawalex
    Member
    Posted 5 years ago #

    that memory error actually appears to be an "end of physical and swap memory", which may mean that your server was very busy at the time.

    arnee, one issue I think is that you are running part of the sitemap build against items in the wp_post file that isn't indexed, so it is taking an incredibly long time to do the job. I have one blog with 11,000 posts that takes more than 90 seconds to build, which is 5 - 8 times longer that a blog with half that many posts, so it shows a failure to scale. You might want to reconsider your methods for obtaining the data and sorting it, making sure that you are querying in the most effective way, and perhaps asking the wordpress people if they would be nice enough to add an index to make this easier.

    At this point, I have had to put a hard cap on the number of pages in the sitemap, just to avoid failures and using up significant amounts of server resources.

  28. Keilya
    Member
    Posted 5 years ago #

    that memory error actually appears to be an "end of physical and swap memory", which may mean that your server was very busy at the time.

    Thanks for the tip. I'll keep that in mind. (:

  29. danmchugh
    Member
    Posted 5 years ago #

    I'm having similar problems getting my Google Video XML sitemap to work (with WP 2.5.1). Here's the process I've used so far: First, I downloaded the FLV-embed video player plugin (http://www.channel-ai.com/blog/plugins/flv-embed/) and uploaded it to my site. Then I uploaded the free Video Sitemap Pro software to my site (http://www.videositemappro.com/923e54768.html). The videofeed.xml page does show up on my site (www.healthcoveragepost.com/videofeed.xml) but all I get is blank boxes with an X in them. Has anyone tried this route and been able to get it to work? I wonder if I'm doing it wrong of if it's a bug in the plugin or software. Thanks, Dan

  30. David Tierney
    Member
    Posted 5 years ago #

    Please Help.

    I just received the following error on 2.5 (not 2.5.1):

    Notice: Undefined property: stdClass::$args in /Wordpress/wp-includes/taxonomy.php on line 1059.

    This is almost the same error discussed in this thread, but in this case, I am running 2.5, and the error is on line 1059 and not 1068.

    This happened when I added a new post.

    Is there any advise that you can give to me, a web designer who knows HTML, CSS, but not PHP, nor much of the fine details of how WordPress works that is discussed above.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic