Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 03:13 am EST

Geeklog Forums

Cron script gone wild


Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
Suddenly my cron script stoped working few days back
I mean no response. It was as if it was not working.

So i renamed it. And the next day or the day after it started working fine.
But now i am getting following error.

can any one tell me what this means here?
Text Formatted Code


<b>Warning</b>:  fopen(/home/myhost/logs/error.log) [function.fopen]: failed to open stream:
Permission denied in <b>/home/myhost/public_html/lib-common.php</b> on
line <b>2029</b><br />        <html>
            <head>
                <title>My Host - An Error Occurred</title>
            </head>
            <body>
            <div style="width: 100%; text-align: center;">
            Unfortunately, an error has occurred rendering this page.
Please try
            again later.
            </div>
            </body>
        </html>


 

--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Did you consult your hosting service especially about "fopen" ?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Check the permissions on the logs directory and error.log. Keep in mind that php called from a cronjob will often run as a different user as when called from the browser.

Once it can write to error.log again, you'll see what the actual problem was.

bye, Dirk
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
fixed the error log problem making it universally writable.
now this is what my log is showing

Text Formatted Code

2 - sort() expects parameter 1 to be array, null given @ /home/myhost/plugins/tag/functions.inc line 967

Tue 13 Jan 2009 00:27:25 PKT - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = '20'' at line 1. SQL in question: SELECT forum, pid, subject FROM  WHERE id = '20'

Tue 13 Jan 2009 00:48:45 PKT - Error, invalid username: 'KingXXXxxx'
Tue 13 Jan 2009 09:00:44 PKT - [pear_error: message="mail() returned failure" code=0 mode=return level=notice prefix="" info=""]


 

--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
A quick Google search for that last error message brings us back to here.

I suspect the user that runs PHP (from the cronjob) and/or the PHP standalone executable that's used in the process are not allowed to use mail().

If it was working before, you could try contacting your hosting service about any changes they made in that area recently. Or you could switch to using SMTP.

bye, Dirk
 Quote

All times are EST. The time is now 03:13 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content