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?
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).
Ya, I meant the crontab I call them calls... it's hardly a tab 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, 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.
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!!!