Forum Moderators: coopster

Message Too Old, No Replies

PHPWarning: Unknown():Unable to load dynamic library './libpdf_php.so'

Added over 1000 lines of code and don't know .hat is causing this?

         

sauce

12:06 am on Nov 5, 2005 (gmt 0)

10+ Year Member



I did a major overhaul to one of my script and now everytime it runs it gives me this in my error log:

[04-Nov-2005 00:34:34] PHP Warning: Unknown(): Unable to load dynamic library './libpdf_php.so' - ./libpdf_php.so: cannot open shared object file: No such file or directory in Unknown on line 0

Sometimes, it will even give me an Internal Server Error but then I'll refresh the page and it'll come up fine.

I added over 1000 lines of code to 5 different files in the program but there is no mention or calling of PDFso I have no idea where its coming from.

Is there certain functions that would cause this?

PS -This didn't happen before I did the recent update.

Thanks a bunch!

Sauce

dreamcatcher

12:32 am on Nov 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Sauce,

Are you using PDFLib? I think the problem is down the the following setting in your PHP.ini file:

extension_dir = '';

This is the directory path to the loadable extensions. Is that correct? Sounds like its trying to find a module thats not there.

dc

sauce

6:51 pm on Nov 5, 2005 (gmt 0)

10+ Year Member



Nope... I found it no where in my script. This is really baffling me.

jatar_k

9:00 pm on Nov 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



internal server errors seldom come from php that just makes me think there is an error in php.ini or htppd.conf

is this a local install or on a server somewhere?

sauce

9:05 pm on Nov 5, 2005 (gmt 0)

10+ Year Member



Virtual server hosted somewhere.

I was thinking if I could find the part of code that is calling PDFlib I could edit it out... but I have no idea what calls it... :(

jatar_k

9:11 pm on Nov 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it is strange that it says on line 0 and sometimes causes server error, that makes me think it is something the host has done.

not positive but it is trying to load a library which means the parser can't even start up, which means the conf is blown somewhere

sauce

9:16 pm on Nov 5, 2005 (gmt 0)

10+ Year Member



I will try this script on another server and see if it does the same thing. This host has been known to have problems. Thx