Results 1 to 3 of 3

Thread: error with cron job
      
   

  1. #1
    Freedom35 is offline Staff Sergeant
    Join Date
    Dec 2006
    Posts
    43

    Default error with cron job

    I'm trying to setup a cron job for my affiliate program (using PAP) with the following path:

    /usr/local/bin/php -q /home/dhuhmhsc/public_html/pap/scripts/dailyreports.php
    (above two lines are supposed to be in one line only)

    But I received the following error message:

    "Warning: require_once(../settings/settings.php): failed to open
    stream: No such file or directory in
    /home/dhuhmhsc/public_html/pap/scripts/global.php on line 16

    Fatal error: require_once(): Failed opening required
    '../settings/settings.php'
    (include_path='.:/usr/lib/php:/usr/local/lib/php') in
    /home/dhuhmhsc/public_html/pap/scripts/global.php on line 16"

    The "../settings/settings.php" folder and file are existed in the directory.

    According to PAP support:

    "That error means, that is something wrong with your path, you should ask your hosting support"

    How to rectify this error?

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: error with cron job

    Try changing the path you have set as

    .:/usr/lib/php:/usr/local/lib/php')

    to '../usr/lib/php:/usr/local/lib/php') Two dots ".." instead of ".:"
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    Freedom35 is offline Staff Sergeant
    Join Date
    Dec 2006
    Posts
    43

    Default Re: error with cron job

    Do you know where I can set this path? I did not set it on my own in the first place. I simply use the default setup provided by PAP.

    .:/usr/lib/php:/usr/local/lib/php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49