Currently on version 1.15.4

I feel like I've tried everything but the schedule polling still seems to fail. Auto-Cron however continues to work but I am hoping I'm able to get schedule polling to work.

I have created osticket.bat

inside the batch file, I have put this in
"C:\Program Files (x86)\PHP\v7.3\php.exe" "C:\inetpub\wwwroot\osticket\api\cron.php"

I then created the scheduled task in task manager as I am on Windows Server. However, it seems like whenever I try running the task, it just fails to run. Manually double-clicking the batch file to run it also yields an error.

"The code execution cannot proceed because VCRUNTIME140.dll was not found."

I'm not sure if I just typed in the wrong stuff into the batch file or what it could be. Any help would be greatly appreciated.

  • rovert likes this.
  • My mistake, I know what I did wrong. I foolishly was setting up my .bat file with the wrong PHP folder. It wasn't v7.3 of PHP but rather v.7.3.33.

    Thank you for all the help!

You would want to google the error you are getting.
It will pretty quickly tell you that you need to install Microsoft Visual C++ 2015 Redistributable

    Thank you ntozier for the reply. I have done that and I got to the same solution that you found. However, I already have it installed so I thought I just entered the wrong command into the batch file. However, if you don't see anything wrong then I'll keep trying to find another way. Thank you again!

    Did you restart the server after you installed it?

    6 days later

    I did multiple times but still do receive an error, unfortunately. I think I'll just opt for another way of polling instead of through this way.

    php.exe - Application Error
    The application was unable to start correctly (0x000007b).
    Click OK to close the application.

    My mistake, I know what I did wrong. I foolishly was setting up my .bat file with the wrong PHP folder. It wasn't v7.3 of PHP but rather v.7.3.33.

    Thank you for all the help!

    Write a Reply...