Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/wes/public_html/portal/vendor/typo3/phar-stream-wrapper/src/PharStreamWrapper.php on line 445
Run CRON from URL | Web Edge Solutions
x

Run CRON from URL

To run CRON in Vtiger or check either cron run successfully or not go to address bar and type “www.example.com/vtigercron.php”.

It shows Access denied, so to solve this issue follow these simple steps:-

Overcome the Error “Access Denied”.
Go to vtigercron.php and find

if(vtigercron_detect_run_in_cli() || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){

Replace with

if(vtigercron_detect_run_in_cli() || ($_REQUEST["app_unique_key"] == $application_unique_key) || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){

image


Need App Unique Key
You may find your app_unique_key in config.inc.php.

Go to config.inc.php file and search “$application_unique_key”.

image

Now Run Cron Job
To run cron job, go to your browser’s address bar and browse http://www.example.com/vtigercron.php?app_unique_key=xxxxxxxxxxxxxxxxxxxxx

image

That's it.

Now you can run CRON successfully.

Thank You.

Tags