Pending - sending

Discussion in 'Common issues' started by Lidor Amrani, Dec 24, 2018.

  1. Lidor Amrani

    Lidor Amrani New Member

    Joined:
    Nov 21, 2018
    Messages:
    28
    Likes Received:
    2
    S.E:
    2019-05-22 00:03:59
    L.T:
    Regular
    L.C:
    1
    I have the pending - sending problem.

    I have checked and the php binary is located in /user/bin/php

    I have added all of the cron jobs properly,

    Any solution?
     
  2. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,784
    Likes Received:
    2,301
    It's at /usr/bin/php ?
    From command line, if you type: /usr/bin/php -v what do you get?
     
  3. Lidor Amrani

    Lidor Amrani New Member

    Joined:
    Nov 21, 2018
    Messages:
    28
    Likes Received:
    2
    S.E:
    2019-05-22 00:03:59
    L.T:
    Regular
    L.C:
    1
    What i get is this:


    PHP 7.2.12 (cli) (built: Nov 20 2018 00:53:42) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright (c) 2002-2018, by ionCube Ltd.
    with Zend OPcache v7.2.12, Copyright (c) 1999-2018, by Zend Technologies
     
  4. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,784
    Likes Received:
    2,301
  5. Lidor Amrani

    Lidor Amrani New Member

    Joined:
    Nov 21, 2018
    Messages:
    28
    Likes Received:
    2
    S.E:
    2019-05-22 00:03:59
    L.T:
    Regular
    L.C:
    1
    I try to do this but what i get in my terminal is:

    root@box:~# /usr/bin/php -q /var/www/html/apps/console/console.php send-campaigns --verbose=1
    Could not open input file: /var/www/html/apps/console/console.php
     
  6. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,784
    Likes Received:
    2,301
    Instead of /var/www/html/apps/console/console.php use the same path to console.php like in your cron jobs.
    If you take a look at the examples, you basically have to run the same command your cron job runs automatically. but you have to run it by hand, with some small modifications, like removing the >/dev/null 2>&1 part and adding --verbose=1 part.
     
  7. Lidor Amrani

    Lidor Amrani New Member

    Joined:
    Nov 21, 2018
    Messages:
    28
    Likes Received:
    2
    S.E:
    2019-05-22 00:03:59
    L.T:
    Regular
    L.C:
    1
    So basically i just have to edit each cron job and add at the end --verbose=1 ?
     
  8. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,784
    Likes Received:
    2,301
    No.
    Please read again the article, it explains in details.
     
  9. Lidor Amrani

    Lidor Amrani New Member

    Joined:
    Nov 21, 2018
    Messages:
    28
    Likes Received:
    2
    S.E:
    2019-05-22 00:03:59
    L.T:
    Regular
    L.C:
    1
    I try to to do it with my own path, but the result is:

    root@box:~# /usr/local/bin/php5 -q home/lidorinc/public_html/newsletter/apps/console/console.php send-campaigns --verbose=1
    -bash: /usr/local/bin/php5: No such file or directory
     
  10. OptiBiz1

    OptiBiz1 Active Member

    Joined:
    Sep 28, 2015
    Messages:
    354
    Likes Received:
    116
    S.E:
    2024-09-02 01:41:15
    L.T:
    Extended
    L.C:
    21

    How about adding a slash before "home"!?

    /usr/local/bin/php5 -q /home/lidorinc/public_html/........................

    You apparently have a later PHP version, why not run that instead of PHP5 ?

    Also, why adding verbose to that cronjob? It should go to /dev/null instead, e.g. in our case:

    /usr/bin/php -q /var/www/clients/client1/web2/web/apps/console/console.php send_sms_campaigns >/dev/null 2>&1

    Run the one with verbose interactively and when you have eliminated the error, you remove the verbose and add it as a cronjob.
     
    twisted1919 likes this.

Share This Page