Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Wednesday, August 4th at 3pm PST / 6pm EST. Learn more
  • GoDaddy Community
  • VPS & Dedicated Servers
  • VPS & Dedicated Servers

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    McSNoogins
    Getting Started

    PHP script stops after running through 25 of 60 items.

    I've researched as much as i can and i'm sure it's a PHP setting and have tried changing the max number of processes in the global PHP.ini file on the virtual server but to no avail.

    I have a PHP script that was written by the folks at "simple invoices" I've set up cron daemon to run the script every day at a certain time.
    The script is supposed to check all recurring invoices and if one is due to run that day it should process it.

    There are around 60 invoices that should run on the first of every month, what actually happens is the script runs everyday (as it should), gets through the first 25 items and just cuts out. It then emails me telling me:

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?> <array>
    <cron_message>No invoices recurred for this cron run for domain: 1 for the date: 2016-12-02</cron_message>
    <cron_message_52>Cron ID: 52 NOT RUN: - Not cheduled for today - Cron for Invoice 2423 with start date of 2017-11-01, end date of where it runs each 1 year did not recur today :: Info diff=-334</cron_message_52>
    <cron_message_51>Cron ID: 51 NOT RUN: Cron for Invoice 2418 with start date of 2016-12-01, end date of where it runs each 1 month did not recur today :: Info diff=1</cron_message_51>
    <cron_message_50>Cron ID: 50 NOT RUN: - Not cheduled for today - Cron for Invoice 2410 with start date of 2017-10-01, end date of where it runs each 1 year did not recur today :: Info diff=-303</cron_message_50>
    <cron_message_49>Cron ID: 49 NOT RUN: - Not cheduled for today - Cron for Invoice 2057 with start date of 2017-02-26, end date of where it runs each 1 year did not recur today :: Info diff=-86</cron_message_49>
    <cron_message_48>Cron ID: 48 NOT RUN: Cron for Invoice 1930 with start date of 2016-11-25, end date of where it runs each 1 year did not recur today :: Info diff=7</cron_message_48>
    <cron_message_47>Cron ID: 47 NOT RUN: - Not cheduled for today - Cron for Invoice 2397 with start date of 2017-10-01, end date of where it runs each 1 year did not recur today :: Info diff=-303</cron_message_47>
    <cron_message_46>Cron ID: 46 NOT RUN: - Not cheduled for today - Cron for Invoice 2338 with start date of 2017-09-03, end date of where it runs each 1 year did not recur today :: Info diff=-275</cron_message_46>
    <cron_message_45>Cron ID: 45 NOT RUN: - Not cheduled for today - Cron for Invoice 2306 with start date of 2017-08-08, end date of where it runs each 1 year did not recur today :: Info diff=-249</cron_message_45>
    <cron_message_44>Cron ID: 44 NOT RUN: Cron for Invoice 2282 with start date of 2016-09-01, end date of where it runs each 1 month did not recur today :: Info diff=92</cron_message_44>
    <cron_message_43>Cron ID: 43 NOT RUN: Cron for Invoice 1920 with start date of 2016-11-01, end date of where it runs each 1 year did not recur today :: Info diff=31</cron_message_43>
    <cron_message_42>Cron ID: 42 NOT RUN: Cron for Invoice 2054 with start date of 2016-02-01, end date of where it runs each 1 year did not recur today :: Info diff=305</cron_message_42>
    <cron_message_41>Cron ID: 41 NOT RUN: Cron for Invoice 2060 with start date of 2016-03-01, end date of where it runs each 1 year did not recur today :: Info diff=276</cron_message_41>
    <cron_message_40>Cron ID: 40 NOT RUN: Cron for Invoice 2237 with start date of 2016-07-01, end date of where it runs each 1 year did not recur today :: Info diff=154</cron_message_40>
    <cron_message_39>Cron ID: 39 NOT RUN: Cron for Invoice 2170 with start date of 2016-05-01, end date of where it runs each 1 year did not recur today :: Info diff=215</cron_message_39>
    <cron_message_38>Cron ID: 38 NOT RUN: Cron for Invoice 1850 with start date of 2016-09-01, end date of where it runs each 1 year did not recur today :: Info diff=92</cron_message_38>
    <cron_message_37>Cron ID: 37 NOT RUN: Cron for Invoice 2059 with start date of 2016-03-01, end date of where it runs each 1 year did not recur today :: Info diff=276</cron_message_37>
    <cron_message_36>Cron ID: 36 NOT RUN: Cron for Invoice 1887 with start date of 2016-10-01, end date of where it runs each 1 year did not recur today :: Info diff=62</cron_message_36>
    <cron_message_35>Cron ID: 35 NOT RUN: Cron for Invoice 2061 with start date of 2016-03-01, end date of where it runs each 1 year did not recur today :: Info diff=276</cron_message_35>
    <cron_message_34>Cron ID: 34 NOT RUN: Cron for Invoice 1968 with start date of 2016-12-01, end date of where it runs each 1 year did not recur today :: Info diff=1</cron_message_34>
    <cron_message_33>Cron ID: 33 NOT RUN: Cron for Invoice 2176 with start date of 2016-05-01, end date of where it runs each 1 year did not recur today :: Info diff=215</cron_message_33>
    <cron_message_32>Cron ID: 32 NOT RUN: - Not cheduled for today - Cron for Invoice 2089 with start date of 2017-03-01, end date of where it runs each 1 year did not recur today :: Info diff=-89</cron_message_32>
    <cron_message_31>Cron ID: 31 NOT RUN: Cron for Invoice 1865 with start date of 2016-09-01, end date of where it runs each 1 year did not recur today :: Info diff=92</cron_message_31>
    <cron_message_30>Cron ID: 30 NOT RUN: Cron for Invoice 1860 with start date of 2016-09-01, end date of where it runs each 1 year did not recur today :: Info diff=92</cron_message_30>
    <cron_message_29>Cron ID: 29 NOT RUN: Cron for Invoice 2212 with start date of 2016-07-07, end date of where it runs each 2 week did not recur today :: Info diff=148</cron_message_29>
    <cron_message_28>Cron ID: 28 NOT RUN: Cron for Invoice 2213 with start date of 2016-07-07, end date of where it runs each 2 week did not recur today :: Info diff=148</cron_message_28>
    <id>0</id>
    </array>

    I logged in as the VPS root and sudo su to change the global php.ini but i'm not sure if i've edited the right PHP.ini file (i did run a info.php from the site to get the path to the one being used). It's also running PHP as a module (hope that makes sense).
    Any help would be greatly appreciated. Even if it's just telling me i'm in the wrong place and where to ask next.

    6 REPLIES 6
    Harryparmar
    Helper V

    Have you asked "Simple Invoices" team as there might be something from their side. Also cross-check you VPS Server Limitations. For these you can contact Godaddy via Chat or Phone.

     

    Please give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

    Hi Harry, thanks for the reply, I've tried the simple invoices folks but i can't seem to get anyone to notice me in the forums etc. It's open license software so there's no real way to get hold of one particular person for answers and it took me 3 days to track down where to ask the question in the first place (the website says it was moved to various places and finally rests at google plus).

    Last time i asked godaddy for help with an issue with a compromised email account they signed me up for an email review service which was £150 odd and just sent me a heap of info I already knew so I'd rather ask you guys (the experts) before relying on them again unless i run out of options.

     

    In the simple invoices forums on the website (years old and now read only and archived) there was one person who had the same problem but the resolution was never posted 😞

    All right please wait as I'll forward this case to a mod who can help you out with it.

    Please give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

    Thank you very much Harry

    Any ideas on this yet?

    GaryA
    Moderator

    Hi @McSNoogins.

    I'm not familiar with Simple Invoices, so I couldn't say what might be causing the issue you described. It could be an issue with the script or a configuration issue with the cron job. You may want to check with the developer/support for Simple Invoices to see if they have any suggestions.
    You might also want to try splitting up the tasks into multiple cron jobs, but I couldn't say how exactly that would be done.
    The errors in the code does indicate that the jobs were not scheduled to run/recur that day, and some have dates in the future. That might indicate a starting point for you to look into further.
    ^Gary

    Gary - GoDaddy | Community Moderator
    24/7 Support | Check System Status