can't get Windows Scheduled Task to work..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Codywilgus
    Junior Member
    • Mar 2018
    • 4

    can't get Windows Scheduled Task to work..

    I have been pulling my hair out for days. Now I need help.

    I am using a Bitnami WAMP stack with the espocrm module installed.



    I finally got it to work and now am getting this error.. PLEASE HELP!!

    C:\Bitnami\wampstack-7.1.14-0>php -f apps\espocrm\htdocs\cron.php
    PHP Fatal error: Uncaught Error: Class 'Espo\Core\Application' not found in C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs\cron.php:38
    Stack trace:

    #0 {main}
    thrown in C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs\cron.php on line 38
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    hello install on windows bitnami-espocrm-5.0.5-0 comand: C:\Bitnami\espocrm-5.0.5-0\apache2\bin\httpd.exe -f C:\Bitnami\espocrm-5.0.5-0\apps\espocrm\htdocs\cro

    could you check php cli version C:\Bitnami\wampstack-7.1.14-0>php -v
    Also you could try to set full path to php.exe

    Comment

    • Codywilgus
      Junior Member
      • Mar 2018
      • 4

      #3
      C:\Bitnami\wampstack-7.1.14-0>php -v
      PHP 7.1.14 (cli) (built: Jan 31 2018 00:15:15) ( ZTS MSVC14 (Visual C++ 2015) x64 )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
      with Zend OPcache v7.1.14, Copyright (c) 1999-2018, by Zend Technologies

      C:\Bitnami\wampstack-7.1.14-0>C:\Bitnami\wampstack-7.1.14-0\php\php.exe -f C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs\cron.php
      PHP Fatal error: Uncaught Error: Class 'Espo\Core\Application' not found in C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs\cron.php:38
      Stack trace:
      #0 {main}
      thrown in C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs\cron.php on line 38


      Any help is appreciated.

      Comment

      • tarasm
        Super Moderator
        • Mar 2014
        • 573

        #4
        Try to run the cron.php inside "htdocs" directory.
        Code:
        cd C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs
        C:\Bitnami\wampstack-7.1.14-0\apps\espocrm\htdocs>C:\Bitnami\wampstack-7.1.14-0\php\php.exe -f cron.php
        Job Offers and Requests

        Comment

        • Codywilgus
          Junior Member
          • Mar 2018
          • 4

          #5
          Here are the results of that... we seem to be making progress. How do I fix the access is denied?

          Comment

          • tarasm
            Super Moderator
            • Mar 2014
            • 573

            #6
            Try to run CMD as the Administrator with the same command.
            Job Offers and Requests

            Comment

            • Codywilgus
              Junior Member
              • Mar 2018
              • 4

              #7
              Hmm.. tried in both the WAMP CMD and then a local desktop CMD, both ran as admin.

              Comment

              • tarasm
                Super Moderator
                • Mar 2014
                • 573

                #8
                Please find solutions here: https://stackoverflow.com/questions/...run-on-your-pc.
                Job Offers and Requests

                Comment

                Working...