Oups, thats a PHP 4 issue.
Quick fix:
1. Go to line 1756 in sitemap-core.php
2. Replace:
$p = get_page(get_option('page_on_front'));
with:
$pageOnFront = get_option('page_on_front');
$p = get_page($pageOnFront);
That should work. I don’t have PHP4 at my test machine at the moment, so please tell me the result 🙂
i have the same problem
i think that we can wait the next update
solution provided by arnee doesn’t work unfortunately
I have the same problem…
Hi gicrom,
I just installed PHP 4.4.9 and the fix works for me. Did you replace it correctly?
Hi!
The same problem. PHP version: 5.1.6.
Plugin was upgraded from 3.1.4 to 3.1.5.
Red message is now displaying: “The last build succeeded, but the file was deleted later or can’t be accessed anymore. Did you move your blog to another server or domain?”.
I haven’t moved anything nor changed file permissions!
Debug doesn’t show any errors or warnings.
Sitemap rebuilds normally.
Solution provided for PHP4 doesn’t work.
Regards,
Dmitry.
Hi Arnee
Well i replaced the bit as described however it still reports
“The last build succeeded, but the file was deleted later or can’t be accessed anymore. Did you move your blog to another server or domain?”
However the debug error has now changed to
“Notice: WP HTTP API Web Request failed: Operation timed out with 0 out of -1 bytes received in /content/StartupHostPlus/h/a/haroldstreet.org.uk/web/other/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2304”
Is that any help?
phil
http://www.haroldstreet.org.uk/
hi arnee,
here the piece of code
if($this->GetOption(“in_home”)) {
if(‘page’ == get_option(‘show_on_front’) && get_option(‘page_on_front’)) {
$pageOnFront = get_option(‘page_on_front’);
$p = get_page($pageOnFront);
if($p) {
$homePid = $p->ID;
Now when I go to the plugin settings I got a completely blank page 🙁
The same if I go back and put the orginal row…
I have already try to deactivate / delete the plugin.
Could you please help? Thanks a lot.
PHP Version 5.2.8 at my site, same problem, various blogs.
Joao Moraes
I am having the same problem and I am on PHP version 5.2.9
I haven’t tried a fixed yet, should I? If so, which one? Or is it more sensible to wait for the next update?
Thanks
bob
I have same problem … any news when this will be fixed ?
Hi all,
the reference error is fixed in the next release, you can already try it here:
http://downloads.wordpress.org/plugin/google-sitemap-generator.3.1.6.zip
Regarding the “The last build succeeded, but the file was deleted later or can’t be accessed anymore. Did you move your blog to another server or domain?” error: This message appears if a PHP “is_readable()” call with the path to the sitemap files returns false and was added to prevent a warning in case the file is really gone and the plugin tries to get the last modification date.
If you can access the sitemap with your browser, everything is fine. I can’t reproduce this behavior on all of my installations, so its hard to say whats wrong. It would be great if somebody of you who sees this message could contact me via email at arne at arnebrachhold dot de so we can find out whats wrong directly on your blog .
Thanks, Arne
Great – 3.1.6 seems to have fixed the problem
phil
http://www.haroldstreet.org.uk/