What is the response for Woocommerce Cron Job?

Comments

18 comments

  • Avatar
    Chris Muench

    Make sure you put full path to php executable. Also try running the command without the cron and see if we you get similar results. If you want to give me the exact command; send the info to support@phppointofsale.com

    0
    Comment actions Permalink
  • Avatar
    Metalsniper63

    Hello Chris, i did as you said and deleted the CRON part from the crontab and the response was this:

     

    Status: 307 Temporary Redirect
    X-Powered-By: PHP/7.1.26
    Set-Cookie: phppos=bd598c91896d785dd76a1c31d29bc0a47d8a8820; expires=Tue, 26-Feb-2019 23:45:01 GMT; Max-Age=10800; path=/; HttpOnly
    Cache-Control: no-cache, no-store, must-revalidate
    Pragma: no-cache
    Expires: 0
    Location: https://
    Content-type: text/html; charset=UTF-8
    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    Did you put the full path to php something like /usr/bin/php? Also make sure your url has https:// (php pos url).

     

    If you open a private support ticket I would like to see your full command with url. I can also connect to your server and have a look too

    0
    Comment actions Permalink
  • Avatar
    Metalsniper63

    Chris is there any way we could Chat?? this ticket system and the community are really not working for me, it takes too long for you to respond and when you do i'm not at the computer and it takes forever to get anywhere

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    You can add me on whats app +1 585 880 6599

    0
    Comment actions Permalink
  • Avatar
    Metalsniper63

    Ok thank you Chris, it seems we finally are online at the same time.

    I will open a ticket to give you all the information.

    0
    Comment actions Permalink
  • Avatar
    Metalsniper63

    I sent you a message trough Whatsapp

    0
    Comment actions Permalink
  • Avatar
    Oliver Jimenez

    I have the same issue, Metalsniper63 are you solved it

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    If you send a message to support@phppointofsale.com with your server info we can take a look

    0
    Comment actions Permalink
  • Avatar
    Metalsniper63

    Olver Jimenez, in my case this was the issue:

     

    */15 * * * * php7.1 /kunden/homepages/15/blablabla/htdocs/newpdv/index.php ecommerce cron http://myposinstalationURL

     

     

    The correct form was to include -cli for PHP like this:

     

    */15 * * * * php7.1-cli /kunden/homepages/15/blablabla/htdocs/newpdv/index.php ecommerce cron http://myposinstalationURL
    0
    Comment actions Permalink
  • Avatar
    Oliver Jimenez

    I add *-cli* but the response is the same html, css and js code. this is the structure

    */15 * * * * php -cli /home/wwwservidordemo/public_html/pos/index.php ecommerce cron https://pos.wwwservidordemo.com/


    I do too this structure and the result is same

    */15 * * * * /usr/bin/php -cli /home/wwwservidordemo/public_html/pos/index.php ecommerce cron https://titapapeleria.wwwservidordemo.com/

    if the -cli command I paste it either this way php-cli or /usr/bin/php-cli
    mark command error
    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    It would normally be php-cli NOT a space after php. But you would need to type which php-cli to find out where the full path is for php-cli

    0
    Comment actions Permalink
  • Avatar
    Oliver Jimenez

    Good Morning Chris, what info do you need from my server

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    Please email support@phppointofsale.com with your cpanel login

    0
    Comment actions Permalink
  • Avatar
    Oliver Jimenez

    When I use PHP-CLI without space I get a command error

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    Not all servers have php-cli. I would e-mail your host and ask them what is full path to php you should use for cron tasks

    0
    Comment actions Permalink
  • Avatar
    Oliver Jimenez
    I already verified the php path with my provider and I am correct it must 
    be with /usr/bin/php
    and I already check the cron task and if it is executed correctly but
    still does not perform the update in the POS.
    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    */15 * * * * /usr/bin/php /home/wwwservidordemo/public_html/pos/index.php ecommerce cron https://pos.wwwservidordemo.com/

     

    You tried the above?

    0
    Comment actions Permalink

Please sign in to leave a comment.