Jump to content

[SOLVED] Sitemap are deleted after it's generated


Recommended Posts

Hi

 

i have just tried to generate sitemap,  both from the module backend and from cronjob, iam getting same error.

 

There is about 38.000 products and after it generates 10 sitemaps it delete them when it's complete

please look at the image below, it also shows that only 1 sitemaps are left.  1_index_sitemap.xml and 1_d_0_sitemap.xml containg engouh products. about 3.250 i think

 

i have the last version of the gsitemap module Version :2.3.2,  i have reinstall it and also reset it and still same. also i have the last version of PrestaShop™ 1.5.6.1

 

hope someone know what is wrong

 

sitemap_error.png

Edited by vekia (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Actually i just found out what the problem was, very strange, but some spam server was starting this cron during af day, the way i found out was adding som alert code inside the gsitemap-cron.php

 
if($_SERVER['REMOTE_ADDR'] == "my server address" ) { 
cron code here ...
}
else
{

$to = "my email";
$subject = "ALERT TRIED TO ACCESS SCRIPT ON " . $_SERVER['HTTP_HOST'];
$message = "This ip tried to start a script: " . $_SERVER['REMOTE_ADDR'] . " \r\n Script name: " .  $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] ;    
$from = "my email";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
  header( 'Location: http://www.domainhere/?controller=404' ) ;  // Tell them to bog off
  die();
} 

then i got this http://forge.prestashop.com/secure/attachment/21393/cron.png
the ipaddress comes from a spam server, you can ready public reviews here https://www.facebook.com/enzuinc

Edited by bibob (see edit history)
Link to comment
Share on other sites

thank you!

definitely it's a spam ip

 

 

192.157.254.47 has spam activity on 17 web sites.
Added to blacklists 2013-09-28, last seen 2013-11-30 12:48:11

 

thank you, i added it to my host iptables block list :)

 

marked topic as solved.

Link to comment
Share on other sites

×
×
  • Create New...