Feedwordpress Crons & Updating Feeds

Discussion in 'WordPress' started by MCpap, Mar 16, 2006.

  1. #1
    I try to update feeds using Feedwordpress and cron and get the following error (reported by email) - so feeds won't update:

    /home/love/public_html/news/wp-content/update-feeds.php: line 1: ?php: No such file or directory
    /home/love/public_html/news/wp-content/update-feeds.php: line 60: //: is a directory
    /home/love/public_html/news/wp-content/update-feeds.php: line 61: syntax error near unexpected token `'error_reporting','
    /home/love/public_html/news/wp-content/update-feeds.php: line 61: `ini_set('error_reporting', E_ALL & ~E_NOTICE);'
    Code (markup):
    In the hosting panel I've set the cron as follows:
    /home/love/public_html/news/wp-content/update-feeds.php

    Can some expert help?
     
    MCpap, Mar 16, 2006 IP
  2. SkiRat44

    SkiRat44 Peon

    Messages:
    480
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What version of Wordpress are you using?
     
    SkiRat44, Mar 16, 2006 IP
  3. MCpap

    MCpap Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    2.02 - just upgraded
     
    MCpap, Mar 17, 2006 IP
  4. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #4
    Can you post your CRON call?
     
    sketch, Mar 17, 2006 IP
  5. MCpap

    MCpap Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hey Sketch, where can I find this "CRON call"?
     
    MCpap, Mar 17, 2006 IP
  6. MCpap

    MCpap Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Maybe this helps (should be a cron call?)

    Here's an excerpt from the author's tutorial:
    25 * * * * cd $HOME/www/wp/wp-content ; php -q update-feeds.php
    Code (markup):

    I haven't created a crontab, just used the command line from cPanel to execute update-feeds.php (as shown in my first post above).
     
    MCpap, Mar 17, 2006 IP
  7. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #7
    Ya, I meant the crontab :p I call them calls... it's hardly a tab :D

    The problem might be that you're using $HOME, the command line won't know what is means. Try replacing $HOME with the full path to your www directory (whole thing would look something like /home/username/www/wp/wp-content). If you don't know your full path, ask your host.
     
    sketch, Mar 18, 2006 IP
  8. MCpap

    MCpap Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Sketch, the path is correct:
    /home/love/public_html/news/wp-content/update-feeds.php
    And I used the Standard Cron Manager of cPanel

    So the problem is 99% elsewhere.
     
    MCpap, Mar 18, 2006 IP
  9. MCpap

    MCpap Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Found it thanks to a user in a blog!

    You have to put php in the front line!

    Jesus...I've been searching for MONTHS!!!
     
    MCpap, Mar 18, 2006 IP