Cronjob error with fopen

Status
Not open for further replies.

Lucipher6

New Member
Messages
6
Reaction score
0
Points
0
I'm on intermediate PHP version, I saw other posts on the forums and decided to be patient in waiting for the problem to be fixed. Earlier today I realised the fopen function was working again, yay for that change! Saw someone else had the same type of error on another topic I read and saw an admin updated the cron settings for that person, so I guess that's what's needed here, too.

PHP:
<b>Warning</b>:  fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration in <b>/home/ianh/public_html/updcron.php</b> on line <b>79</b><br />
<br />
<b>Warning</b>:  fopen(http://hiscore.runescape.com/index_lite.ws?player=P_Gertrude) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/ianh/public_html/updcron.php</b> on line <b>79</b><br />
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
What thread are you talking about when you say "I read and saw an admin updated the cron settings for that person, so I guess that's what's needed here, too. "?
What's the command you're running for the CronJob?
 

Lucipher6

New Member
Messages
6
Reaction score
0
Points
0
I was browsing for posts about fopen and file_get_contents a week or 2 back and remember seeing a topic about a cron error also with them, where a response was that the access for cron had been changed. I've just tried using the search function as well as manual searching through level two support and couldn't see any topic that stood out as the one I was after.

Command I'm running is:
php -q /home/ianh/public_html/updcron.php group1
Edit:
Saw another different topic with a similar problem now.
Corey said:
Instead of php -q or /usr/bin/php in your cron path, use php-cron for the binary.

If this is what's needed, I'm not sure what's to do with it, would it be to change the previously posted job to:

php-cron /home/ianh/public_html/updcron.php group1

Thanks.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
php -q /home/ianh/public_html/updcron.php group1

Change to:

php-cron -q /home/ianh/public_html/updcron.php group1
 
Status
Not open for further replies.
Top