WebCards Support Forums

WebCards Support Forums » General Support Requests

[closed]

Cron job error

(20 posts)
  • Started 2 years ago by BenAtHome
  • Latest reply from corbyboy

No tags yet.

  1. BenAtHome
    Member

    Hi,

    Got a cron job error telling me 'config.php' could not be found in 'source/modules/tasks.php on line 15'
    I've chanced 'config.php' to '../config.php' and now it's working fine.

    Thought you liked to know.

    Ben.

    Posted 2 years ago #
  2. corbyboy
    Key Master

    Thanks for the tip Ben,

    I am recoding the task manager so it is a lot more robust for the next version.

    I will also move it out of the modules folder as it is buried a little deep in there.

    Posted 2 years ago #
  3. krillmeed
    Member

    I will try this anyway, to see if it fixes my problem as well.

    Posted 2 years ago #
  4. corbyboy
    Key Master

    I have got your email about this and I will look into it.

    Posted 2 years ago #
  5. krillmeed
    Member

    Tried changing the tasks.php to this:

    // Include config file
    require "../config.php";

    //Include functions
    require "source/functions.php"ยด

    But still getting these errors every time it runs:

    PHP Warning: Module 'curl' already loaded in Unknown on line 0
    PHP Warning: Module 'gd' already loaded in Unknown on line 0
    PHP Warning: Module 'gmp' already loaded in Unknown on line 0
    PHP Warning: Module 'mhash' already loaded in Unknown on line 0
    PHP Warning: Module 'mysql' already loaded in Unknown on line 0

    Hope you had a great holiday by the way.

    Posted 2 years ago #
  6. corbyboy
    Key Master

    I don't think these errors are caused by WebCards. They seem to be caused by PHP itself. WebCards doesn't actually load any of the modules. Have you tried running tasks.php directly. It should output the results.

    Posted 2 years ago #
  7. krillmeed
    Member

    How do i do that? i have contacted the server as well today about this and i think you are right. I will let you kno about this.

    Posted 2 years ago #
  8. krillmeed
    Member

    If it is browse to the link:

    http://krillmeed.com/ecards/source/modules/tasks.php

    Then all i am getting is a blank page HTTP 404

    Just heard from the server, those errors are not the program, and do not effect the server. Nothin there to worry about.

    Posted 2 years ago #
  9. corbyboy
    Key Master

    I think I have this sorted now. I will be in touch by email for you to test it.

    Posted 2 years ago #
  10. krillmeed
    Member

    Good enough for me, great to see your on the ball.

    Posted 2 years ago #
  11. corbyboy
    Key Master

    I have moved the task manager out of the source folder and placed it in the root now. There should be fewer problems with incorrect paths and missing includes this way.

    Posted 2 years ago #
  12. krillmeed
    Member

    I noticed this with a new download in the members area. Is this ready for me to upgrade?

    Posted 2 years ago #
  13. krillmeed
    Member

    I may have jumped the gun abit, but after doing backups i tried it. Looks like it worked, for the last 2 weeks i have 3 cards to be sent in the database (Might be a nice future update were you can click on the number of cards to be sent to see which ones they are) I did this manually, and received this:

    Results of Sending Cards =================== Total number of cards sent: 3 Number of cards unable to be sent: 0 Total number of database queries: 5 Database queries executed: SELECT * FROM wc_sent_cards WHERE card_status = 'pending' AND send_date < 1259594866 UPDATE wc_sent_cards SET card_status = 'sent' WHERE id='4cc064d177' LIMIT 1 UPDATE wc_sent_cards SET card_status = 'sent' WHERE id='a8f78c4e32' LIMIT 1 UPDATE wc_sent_cards SET card_status = 'sent' WHERE id='aa577b43a3' LIMIT 1 UPDATE wc_members SET fails=0, ban_exp=0 WHERE 1259594867 > ban_exp 0 cards expired

    so it looks like it worked. I will edit my cron job and send myself a card to receive tomorrow. Quick addon here, one of the cards was to myself and it just arrived. Cool: Will let you know how the cronjob goes, and will make a new post about something else i have found, but could be because i jumped the gun as i said. Still i just love this program and considering how much it is being used i am not alone.

    Posted 2 years ago #
  14. krillmeed
    Member

    Got 2 emails today that the cron job was run and received the delayed ecards i sent myself. So thank you sir it works perfectly.

    Posted 2 years ago #
  15. krillmeed
    Member

    Been getting emails twice a day regular as clockwork. Works like a dream now.

    Posted 2 years ago #
  16. cooki_stern
    Member

    Hello,
    I use the WebCard Version 1.3
    How do I set up a cronjob in version 1.3?
    A task.php I have not found

    Another Question
    Is it from version 1.3 upgrade to 2.3?
    Thanks

    Posted 1 year ago #
  17. krillmeed
    Member

    Sorry you cannot do a cronjob with the 1.3 version i believe. The 2.3 version is a new install not and upgrade, the 1.3 version is not supported anymore, but buyingthe 2.3 version is well worth it.

    Posted 1 year ago #
  18. corbyboy
    Key Master

    As krillmeed said, we no longer support version 1.3. It is old and outdated and the latest version has so many more features. Email me at chris.charlton@gmail.com if you need any more help.

    Posted 1 year ago #
  19. cooki_stern
    Member

    Hello,
    and which file is responsible for sending?
    Greeting

    Posted 1 year ago #
  20. corbyboy
    Key Master

    I am closing this topic as we are no longer supporting the version of WebCards you are using. Please email me at chris.charlton@gmail.com.

    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.