coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: abbood on April 21, 2006, 06:36:49 PM

Title: Empty page
Post by: abbood on April 21, 2006, 06:36:49 PM
Hi ,

I just downloaded ur excellent script , When I tried to install it I got this error on several places :

Warning: main(/include/debugger.inc.php): failed to open stream: No such file or directory in /home/mysite/public_html/pix/include/init.inc.php on line 26

Fatal error: main(): Failed opening required '/include/debugger.inc.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/mysite/public_html/pix/include/init.inc.php on line 26

I fixed the path (I think) and until the script directed me to the login page which was empty !!

Can you help please.

Thank you for your time and effort
Title: Re: Empty page
Post by: Joachim Müller on April 21, 2006, 06:38:02 PM
Fix your include path
Title: Re: Empty page
Post by: abbood on April 21, 2006, 06:39:59 PM
Thank you for the fast answer I just edited my post can you read it again please
Title: Re: Empty page
Post by: Nibbler on April 21, 2006, 08:20:18 PM
Your include path must include a dot for relative includes to work.
Title: Re: Empty page
Post by: abbood on April 21, 2006, 09:24:09 PM
Quote from: Nibbler on April 21, 2006, 08:20:18 PM
Your include path must include a dot for relative includes to work.

Sorry to be a pain can you explain more ? or give me an example.

Thank you
Title: Re: Empty page
Post by: Nibbler on April 21, 2006, 09:41:08 PM
include_path='.:/usr/local/lib/php:/usr/lib/php'
Title: Re: Empty page
Post by: Abbas Ali on April 22, 2006, 10:08:10 AM
...in php.ini of the server. If you are on shared server then this should be done by your webhost.
Title: Re: Empty page
Post by: BlackChart on April 22, 2006, 04:36:00 PM
Quote from: Abbas Ali on April 22, 2006, 10:08:10 AM
...in php.ini of the server. If you are on shared server then this should be done by your webhost.

A clean script does NOT require any changes to PHP ini, and certainly NOT changes to the include path...

I have the same problem, and getting this change done by my webhost is not an option...

Best regards,
Morten
Title: Re: Empty page
Post by: Nibbler on April 22, 2006, 04:37:18 PM
Not having a dot in the include path is an abnormal, non-default setting. Most scripts require it to include a dot.
Title: Re: Empty page
Post by: Joachim Müller on April 24, 2006, 03:23:57 PM
If your webhost refuses to enable the suggested changes then I recommend finding better webhosting. As Nibbler suggested: not having the dot in the include path will make nearly all advanced pre-made scripts (like coppermine) fail.

[Edit 2006-05-11]
Reason: fixed typo
[/edit]
Title: Re: Empty page
Post by: ozymandias on May 11, 2006, 06:40:35 AM
Hello All,

I get this exact same error with the exception that my include path looks like the following:

Fatal error: main(): Failed opening required '/include/debugger.inc.php' (include_path='/usr/share/php') in /home/mysite/public_html/pix/include/init.inc.php on line 26

So, I did as directed above and made the following changes in php.ini:

; this is the entry in /etc/php.ini
; include_path = "/usr/share/php"
include_path = ".:/usr/share/php:/srv/www/htdocs/cpg145"
;  I even put the path to my directly to the coppermine directory

I still get the same error:  Fatal error: blah, blah, blah... (include_path='/usr/share/php')

I would have expected the include_path to reflect my changes in the php.ini.   Any pointers?

Sorry I'm such a newbie.   
Title: Re: Empty page
Post by: Paver on May 11, 2006, 07:15:22 AM
@ozymandias: Have you restarted your webserver?  PHP.ini settings are loaded upon startup.
Title: Re: Empty page
Post by: ozymandias on May 12, 2006, 02:02:37 PM
Ummmm....no.  But man I hate rookies don't you?