Hello,

we have set up the standalone sitemap generator on our customers domain and using it manually, everything seems to work fine so far.

Setting up a Plesk cron job (/usr/bin/php /var/www/vhosts/romolini.com/httpdocs/generator/runcrawl.php) I receive the following crontab message via e-mail:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so' - /usr/lib64/php/modules/sqlite.so: undefined symbol: third_arg_force_ref in Unknown on line 0
PHP Deprecated:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
1 | 429 | 202.4 | 0:00:02 | 0:14:34 | 1 | 3,376.6 Kb | 1 | 0 | 3376
15 | 415 | 1,507.1 | 0:00:05 | 0:02:21 | 1 | 3,745.6 Kb | 7 | 129 | 3745
....

The XML-sitemap is generated anyway and seems to be complete, but I do not receive the "Standalone Sitemap Generator Report" via e-mail, although the cron job e-mail says in the end:

....
2917 | 1 | 195,571.9 | 0:09:24 | 0:00:00 | 3 | 5,253.1 Kb | 2714 | 0 | 1
2918 | 0 | 195,571.9 | 0:09:24 | 0:00:00 | 4 | 4,412.3 Kb | 2715 | 0 | -841
<h4>Completed</h4>Total pages indexed: 2715
<br>Creating sitemaps...
<div id="percprog"></div>
 |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
 |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
 |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br>Sending email notification... |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br />Done, redirecting to sitemap view page. <script> top.location = 'index.php?op=view' </script>

When starting the generator manually this report arrives correctly.

Can you help? Thank you very much in advance.
Re: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so'
« Reply #1 on: May 30, 2013, 03:16:31 AM »
Hello,

that is a warning message telling that php configuration is not correct in mysql settings, but it doesn't affect generator and it's results since it doesn't use mysql.
Re: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so'
« Reply #2 on: May 30, 2013, 08:19:59 AM »
OK, I will check this with my provider.

But why do I not receive the e-mail report?
Re: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so'
« Reply #4 on: May 31, 2013, 05:28:45 PM »
It is. I had the support check all possible reasons. They created a script to send mail via sendmail, launched it via browser, command line and cronjob. In all cases the e-mail arrived.
First they thought it could depend on missing headers so the mails would trigger antispam, therefore they additionally changed the default mail headers to a valid adress.

The strange thing is that in the e-mail I receive from the cronjob I get in the end:

<h4>Completed</h4>Total pages indexed: 1980
<br>Creating sitemaps...
<div id="percprog"></div>
 |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
 |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
 |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br>Sending email notification... |  | 0.0 | 0:00:00 | 0:00:00 |  |  |  |  | 0
<br />Done, redirecting to sitemap view page. <script> top.location = 'index.php?op=view' </script>

It says that it would send an email notification. Is it possible that some variables are not passed when the script runs from command line?
Re: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so'
« Reply #5 on: June 05, 2013, 12:24:02 PM »
Hello,

the settings are the same when running from command line.
Please try to add this setting in generator/data/generator.conf file:

<option name="xs_email_f">1</option>
Re: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so'
« Reply #6 on: June 06, 2013, 02:27:00 PM »
Hello and thank you for your help.

Unfortunately it does not change anything.