coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: JB2 on January 11, 2006, 04:18:25 AM

Title: install.php Error
Post by: JB2 on January 11, 2006, 04:18:25 AM
When I attempted to install via install.php, I received the "You seem to be trying to install the standalone Coppermine into your Nuke portal." error message even though I do not, nor ever had, PHPNuke/PostNuke, etc. installed on my server.  So, I decided to take a look at install.php and discovered the reason.  The check for a "portal" is simply based on the presence of a directory named "modules" two levels above the Coppermine root directory.  I was installing Coppermine directly underneath the Apache2 htdocs directory, so install.php was finding the Apache2 modules directory!  You might want to rethink this check.
Title: Re: install.php Error
Post by: Joachim Müller on January 11, 2006, 10:35:39 AM
do you actually use the most recent version cpg1.4.3 - the issue you claim to have existed in cpg1.4.2 and was fixed afaik?
Title: Re: install.php Error
Post by: JB2 on January 12, 2006, 05:09:51 AM
Yes, I downloaded cpg1.4.3.zip from sourceforge.
Title: Re: install.php Error
Post by: Joachim Müller on January 12, 2006, 07:26:53 AM
http://forum.coppermine-gallery.net/index.php?topic=24494.msg112729#msg112729
Title: Re: install.php Error
Post by: JB2 on January 13, 2006, 02:17:00 AM
I already determined that commenting out the check would fix the problem.  However, the code is still in 1.4.3 and my original comment still stands.  You should consider removing, or at least modifying, the check.  It is rediculous to assume that the presence of a directory named "modules" two levels up from the current directory is evidence of a PHPnuke or PostNuke installation!  A product like Coppermine is a useful tool for non-programmers so the installation shouldn't require editing PHP.  Why not simply warn people that if they attempt to install in an environment with PHPnuke or PostNuke Coppermine will not function correctly?
Title: Re: install.php Error
Post by: Joachim Müller on January 13, 2006, 06:54:38 AM
Quote from: JB2 on January 13, 2006, 02:17:00 AM
Why not simply warn people that if they attempt to install in an environment with PHPnuke or PostNuke Coppermine will not function correctly?
Because people don't read docs, especially nuke users don't. We used to have tons of requests from nuke users who complained that the standalone version wasn't working for them, that's why the nuke check was added some versions ago. Complaints from people like you who get caught by the nuke detection routine are very rare, so I'm not sure if we should drop the check, going from bad to worse.