Les taches CRON abandonnées ??
Je me pose une petite question sur cette possibilité. La fonction n’est plus suivie? Elle ne fonctionne plus depuis un moment et les mise à jour ne règle rien (je suis spus la 8.0.3). Impossible de faire des backups et de lancer des factures modèles. (sauf manuel)
Tout fonctionne bien de mon côté. Dans les modules, je vais dans les réglages des tâches planifiées, et quand je clique sur le lien de test :
https://MonURLDolibarr/public/cron/cron_run_jobs.php?securitykey=MaClefDeSecurite&userlogin=MonID
j’obtiens le résultat suivant :
Result: 3 jobs - 1 launched = 1 OK + 0 KO
Dans la crontab de mon utilisateur www-data de mon serveur Ubuntu, j’ai la ligne suivante :
*/6 * * * * /usr/bin/php7.1 /var/www/html/pgi/scripts/cron/cron_run_jobs.php MaClefDeSecurite MonID > /var/www/html/pgi/documents/cron_run_jobs.php.log 2>&1
D’après le message d’erreur, on dirait que vous n’avez pas recopié la clef de sécurité qui se trouve dans cette fenêtre de paramètres, est-elle bien identique ?
Je confirme :
en environnement linux hébergé ou local : aucun problème.
Pour du windows ou du mac : aucun idée… ces OS sont … particuliers…
Je ne vous cache pas que j’ai abandonné les cron « bricollés » dolibarr et que je ne me sert plus que des cron hébergeurs : bien plus fiables, traçables et faciles à rollback (pour les sauvegardes notamment)
Après … pour les rares d’entre vous qui auraient à lancer d’autres scripts … ça peut se discuter : entre vous et votre développeur
109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ Generate recurring invoices › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ AutoSyncEcommerceNg › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CronJob › in /htdocs/cron/list.php
2018-11-13 14:05:28 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ Synchronize all data from eCommerce to Dolibarr. Parameter is max nb of record to do per synchronization run. › in /htdocs/cron/list.php
2018-11-13 14:05:28 INFO 109.18.216.60 — End access to /htdocs/cron/list.php
2018-11-13 14:05:28 INFO 109.18.216.60 — Access to /htdocs/custom/dcloud/css/dropbox.css.php - action=, massaction=
2018-11-13 14:05:28 DEBUG 109.18.216.60 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang=‹ fr_FR ›
2018-11-13 14:05:28 INFO 109.18.216.60 — End access to /htdocs/custom/dcloud/css/dropbox.css.php
2018-11-13 14:05:35 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CountryFR › in /htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:35 INFO 109.18.216.60 main.inc: dolibarr_main_force_https is on, we make a redirect to https://mon.dolibarr.fr/htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:35 INFO 109.18.216.60 — End access to /htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:35 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CountryFR › in /htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:35 INFO 109.18.216.60 — Access to /htdocs/public/cron/cron_run_jobs.php - action=, massaction=
2018-11-13 14:05:35 DEBUG 109.18.216.60 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang=‹ fr_FR ›
2018-11-13 14:05:35 INFO 109.18.216.60 — End access to /htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:38 DEBUG 109.18.216.60 Translate::getTradFromKey missing translation for key ‹ CountryFR › in /htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:38 INFO 109.18.216.60 main.inc: dolibarr_main_force_https is on, we make a redirect to https://mon.dolibarr.fr/htdocs/public/cron/cron_run_jobs.php
2018-11-13 14:05:38 INFO 109.18.216.60 — End access to /htdocs/public/cron/cron_run_jobs.php
[Tue Nov 13 21:31:37.175818 2018] [fcgid:warn] [pid 13204] [client mon ip:49340] mod_fcgid: stderr: #0 {main}, referer: https://mon.dolibarr.fr/htdocs/admin/commande.php?save_lastsearch_values=1&backtopage=/htdocs/admin/modules.php?search_keyword=COMM
[Tue Nov 13 21:31:37.175823 2018] [fcgid:warn] [pid 13204] [client mon ip:49340] mod_fcgid: stderr: thrown in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/admin/commande.php on line 435, referer: https://mon.dolibarr.fr/htdocs/admin/commande.php?save_lastsearch_values=1&backtopage=/htdocs/admin/modules.php?search_keyword=COMM
[Tue Nov 13 21:33:19.342521 2018] [fcgid:warn] [pid 30131] [client mon ip:49352] mod_fcgid: stderr: PHP Warning: Declaration of modAutoAddLine::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/autoaddline/core/modules/modAutoAddLine.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/index.php?mainmenu=home&leftmenu=setup
[Tue Nov 13 21:33:19.342589 2018] [fcgid:warn] [pid 30131] [client mon ip:49352] mod_fcgid: stderr: PHP Warning: Declaration of modAutoAddLine::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/autoaddline/core/modules/modAutoAddLine.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/index.php?mainmenu=home&leftmenu=setup
[Tue Nov 13 21:33:19.342597 2018] [fcgid:warn] [pid 30131] [client mon ip:49352] mod_fcgid: stderr: PHP Warning: Declaration of modForceProject::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/forceproject/core/modules/modForceProject.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/index.php?mainmenu=home&leftmenu=setup
[Tue Nov 13 21:33:19.342603 2018] [fcgid:warn] [pid 30131] [client mon ip:49352] mod_fcgid: stderr: PHP Warning: Declaration of modForceProject::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/forceproject/core/modules/modForceProject.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/index.php?mainmenu=home&leftmenu=setup
[Tue Nov 13 21:33:19.342610 2018] [fcgid:warn] [pid 30131] [client mon ip:49352] mod_fcgid: stderr: PHP Warning: Declaration of modNotes::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/notes/core/modules/modNotes.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/index.php?mainmenu=home&leftmenu=setup
[Tue Nov 13 21:33:19.342616 2018] [fcgid:warn] [pid 30131] [client mon ip:49352] mod_fcgid: stderr: PHP Warning: Declaration of modNotes::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/notes/core/modules/modNotes.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/index.php?mainmenu=home&leftmenu=setup
[Tue Nov 13 21:33:22.714319 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modAutoAddLine::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/autoaddline/core/modules/modAutoAddLine.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php?mainmenu=home
[Tue Nov 13 21:33:22.714351 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modAutoAddLine::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/autoaddline/core/modules/modAutoAddLine.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php?mainmenu=home
[Tue Nov 13 21:33:22.714362 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modForceProject::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/forceproject/core/modules/modForceProject.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php?mainmenu=home
[Tue Nov 13 21:33:22.714372 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modForceProject::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/forceproject/core/modules/modForceProject.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php?mainmenu=home
[Tue Nov 13 21:33:22.714392 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modNotes::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/notes/core/modules/modNotes.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php?mainmenu=home
[Tue Nov 13 21:33:22.714404 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modNotes::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/notes/core/modules/modNotes.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php?mainmenu=home
[Tue Nov 13 21:33:27.615009 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modAutoAddLine::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/autoaddline/core/modules/modAutoAddLine.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php
[Tue Nov 13 21:33:27.615033 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modAutoAddLine::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/autoaddline/core/modules/modAutoAddLine.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php
[Tue Nov 13 21:33:27.615040 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modForceProject::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/forceproject/core/modules/modForceProject.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php
[Tue Nov 13 21:33:27.615046 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modForceProject::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/forceproject/core/modules/modForceProject.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php
[Tue Nov 13 21:33:27.615053 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modNotes::init() should be compatible with DolibarrModules::init($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/notes/core/modules/modNotes.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php
[Tue Nov 13 21:33:27.615059 2018] [fcgid:warn] [pid 13204] [client mon ip:49351] mod_fcgid: stderr: PHP Warning: Declaration of modNotes::remove() should be compatible with DolibarrModules::remove($options = ‹ ›) in /home/ma société-fr/domains/mon.dolibarr.fr/public_html/htdocs/custom/notes/core/modules/modNotes.class.php on line 0, referer: https://mon.dolibarr.fr/htdocs/admin/modules.php
Il s’agit de warning php qui ne devrait pas arrêter le traitement. Cependant avec fastCgi cela peu bloquer.
Qui qu’il en soit rapprochez vous des éditeurs des modules qui sont dans Custom pour qu’ils vous transmettent les mises à jours des modules afin de ne plus avoir ces warning
2018-11-16 12:00:01 DEBUG mon ip Translate::getTradFromKey missing translation for key ‹ CountryFR › in /htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 INFO mon ip main.inc: dolibarr_main_force_https is on, we make a redirect to https://si.dolibarr.fr/htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 INFO mon ip — End access to /htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 DEBUG mon ip Translate::getTradFromKey missing translation for key ‹ CountryFR › in /htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 INFO mon ip main.inc: dolibarr_main_force_https is on, we make a redirect to https://si.dolibarr.fr/htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 INFO mon ip — End access to /htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 DEBUG mon ip Translate::getTradFromKey missing translation for key ‹ CountryFR › in /htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 INFO mon ip main.inc: dolibarr_main_force_https is on, we make a redirect to https://si.dolibarr.fr/htdocs/public/cron/cron_run_jobs.php
2018-11-16 12:00:01 INFO mon ip — End access to /htdocs/public/cron/cron_run_jobs.php