What does the batch file youāre using with the Scheduler look like? Are you calling command-line (CLI) PHP, or making a web request?
The behaviour youāre getting is typical for when a user is not logged in, so the request isnāt allowed. But this shouldnāt be happening for CLI PHP.
Sorry for the delayed reply. Iāll have to figure out how to get notified when thereās a response.
Since the original post, I set ā$dieOnBadData = falseā in the clean_string function header. The scheduler is now firing, but Iād like to fix the root cause and change it back to true.
Following is what I had in the batch file.
cd C:\Program Files (x86)\Plesk\Additional\PleskPHP70\
php.exe -q -f D:\InetPub\vhosts\<domain>\crm.<domain>\cron.php
Also, āSchedule Taskā in Plesk allows you to just call a php file to run the script. Using the batch file and running the script via calling a file has the same outcome.
Ok, now weāre getting somewhere, check this regexp
something in your data is triggering that, maybe the dot .?
EDIT: I think the lack of the message in suitecrm.log is a bug, please see if you can figure that one out, also. Maybe try moving the logging command outside the condition
Ok, I had to remove the following for the string to pass:
A-Z, ., #, and #i
In terms of the log entry, I moved that line of code to just before the die call. It now posts the error and stack trace in the output when I run the script, but still doesnāt post the error to suitecrm.log.