KevinTheJedi I found that it breaks in bootstrap.php script and I dont know why.. I cat track that far away from simple cron.php script. I dont know how to debug that... -.-

    mzgela

    What's the specific error? Like how do you know it's in bootstrap?

    Are you sure your task is running as the correct user? You need to run it with a user that has appropriate permissions (usually IIS user).

    Cheers.

    13 days later

    Bcs I was writing output log in lines of codes and in bootstrap file just out... I dont know what to do anymore -.-
    Even if I run php command on api/cron.php not working.
    Also made bat file C:\Program Files (x86)\PHP\v7.4\php.exe -f C:\inetpub\wwwroot\osTicket_test\api\cron.php but nothing 😛

    I put all permissions for all users 😛

      mzgela

      Then I can only suggest upgrading PHP and osTicket (and any plugins) and retest. Since you are using an outdated and unsupported version we cannot assist.

      Cheers.

      I upgrade on 1.18. version and now I can't find cron.php file that I need to put in script?

      I get this when I start cron.php on version 1.18.

      Deprecated: Optional parameter $namespace declared before required parameter $key is implicitly treated as a required parameter in D:\xampp\htdocs\osTicket\include\class.config.php on line 198
      
      Deprecated: Return type of BaseList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.util.php on line 101
      
      Deprecated: Return type of BaseList::count($mode = COUNT_NORMAL) should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.util.php on line 106
      
      Deprecated: Return type of ListObject::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.util.php on line 220
      
      Deprecated: Return type of ListObject::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.util.php on line 198
      
      Deprecated: Return type of ListObject::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.util.php on line 207
      
      Deprecated: Return type of ListObject::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.util.php on line 227
      
      Deprecated: Return type of ModelMeta::offsetExists($field) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 242
      
      Deprecated: Return type of ModelMeta::offsetGet($field) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 236
      
      Deprecated: Return type of ModelMeta::offsetSet($field, $what) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 239
      
      Deprecated: Return type of ModelMeta::offsetUnset($field) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 245
      
      Deprecated: Return type of QuerySet::getIterator($iterator = false) should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1565
      
      Deprecated: Return type of QuerySet::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1596
      
      Deprecated: Return type of QuerySet::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1599
      
      Deprecated: Return type of QuerySet::offsetSet($a, $b) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1605
      
      Deprecated: Return type of QuerySet::offsetUnset($a) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1602
      
      Deprecated: Return type of QuerySet::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1371
      
      Deprecated: Return type of CachedResultSet::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1743
      
      Deprecated: Return type of CachedResultSet::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1747
      
      Deprecated: Return type of CachedResultSet::offsetSet($a, $b) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1754
      
      Deprecated: Return type of CachedResultSet::offsetUnset($a) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 1751
      
      Deprecated: Return type of ModelInstanceManager::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2002
      
      Deprecated: Return type of CallbackSimpleIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2046
      
      Deprecated: Return type of CallbackSimpleIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2051
      
      Deprecated: Return type of CallbackSimpleIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2036
      
      Deprecated: Return type of CallbackSimpleIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2040
      
      Deprecated: Return type of CallbackSimpleIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2031
      
      Deprecated: Return type of FlatArrayIterator::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2076
      
      Deprecated: Return type of HashArrayIterator::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.orm.php on line 2099
      
      Deprecated: Return type of BaseMessageStorage::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\osTicket\include\class.message.php on line 186
      
      Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in D:\xampp\htdocs\osTicket\bootstrap.php on line 19
      
      Warning: session_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in D:\xampp\htdocs\osTicket\bootstrap.php on line 21

        mzgela

        None of these are errors. You simply need to configure your PHP to ignore warnings/deprecations and only log real errors. Then you need to make sure display_errors and display_startup_errors are both disabled in your PHP INI and your bootsrap.php file.

        Cheers.

        But I still got nothing in logs -.- like I never start cron.job

        It's not even work if I run from client, I deleted condition for cheking if is Client in cron.php file...

        and one thing that I figure is that my auto cron working on 1.14. but not working on 1.18... I dont know what is with this osticket versions

        You said that you setup
        C:\Program Files (x86)\PHP\v7.4\php.exe -f C:\inetpub\wwwroot\osTicket_test\api\cron.php

        Kevin said to update PHP.
        Did you?

        Did you then go and change the path to PHP in the path above?

          ntozier

          Yes I upgrade the PHP and osticket version, setup emails, enable fetch emails. Auto cron working, but when I start cron over php cmd not working. In logs I get cron job executed but ticket not created.

          I managed to get this working, with version 1.18. i needed to put ssl:// in mail settings because I am using IMAP+SSL
          You can close this

            mzgela

            You shouldn’t normally have to manually type ssl://; however I’m glad you figured it out.

            Cheers.

            Write a Reply...