HELP! Strange errors...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
1337ingDisorder
Forum Newbie
Posts: 1
Joined: Tue Nov 02, 2010 1:24 am

HELP! Strange errors...

Post by 1337ingDisorder »

Hi,

I've been getting a heap of error messages from two of our company's websites in the IT admin mailbox, and both websites were developed years ago by devs who have long since left the company.

I'm hoping someone out there will be able to make heads-or-tails of the error output and lead me in the right direction to troubleshoot this strangeness.

Here's an example of one of the error outputs:
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in <b>Unknown</b> on line <b>0</b><br />
X-Powered-By: PHP/5.2.8
Content-type: text/html

<br />
<b>Warning</b>: chmod() [<a href='function.chmod'>function.chmod</a>]: Operation not permitted in <b>/home/widget/lib/class.digest.php</b> on line <b>87</b><br />
<br />
<b>Warning</b>: chmod() [<a href='function.chmod'>function.chmod</a>]: Operation not permitted in <b>/home/widget/lib/class.digest.php</b> on line <b>87</b><br />
The above error output is from a cron job that runs every hour. It started throwing errors around 4:30pm today and has been doing so every hour, all the output emails are about the same.

Here's another error output from a different cron job that runs every hour:
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in <b>Unknown</b> on line <b>0</b><br />
X-Powered-By: PHP/5.2.8
Content-type: text/html

stdClass Object
(
[reset_time_in_seconds] => 1288665027
[remaining_hits] => 19928
[hourly_limit] => 20000
[reset_time] => Tue Nov 02 02:30:27 +0000 2010
)
stdClass Object
(
[hourly_limit] => 20000
[reset_time_in_seconds] => 1288665027
[remaining_hits] => 19927
[reset_time] => Tue Nov 02 02:30:27 +0000 2010
)
stdClass Object
(
[hourly_limit] => 20000
[reset_time_in_seconds] => 1288665027
[remaining_hits] => 19926
[reset_time] => Tue Nov 02 02:30:27 +0000 2010
)
...That one actually goes on and on for what looks to be around 100 iterations of that "stdClass Object" output, but I figured I'd truncate it out of courtesy. I can post the full output if anyone thinks it'll help.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: HELP! Strange errors...

Post by Jonah Bron »

The PHP Startup "cannot read file data" sounds like something's trying to read a folder as a file.

The chmod "Operation not permitted" error is because either chmod is listed as a disabled function in your php.ini, or the user running does not have permission to chmod the folder it's trying to chmod. Go to /home/widget/lib/class.digest.php and on line 87 you might see what folder it being chmod-ed. If not, try to trace whatever variables are there back to find out.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: HELP! Strange errors...

Post by pickle »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply