CPG installed on XAMPP bug CPG installed on XAMPP bug
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CPG installed on XAMPP bug

Started by Aditya Mooley, December 14, 2004, 12:39:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aditya Mooley

We installed CPG on XAMPP http://www.apachefriends.org/xampp-en.html for linux and Nuke test which is built into index.php triggers error You installed the standalone Coppermine into your Nuke portal.
Because XAMPP which is a very popular Apache + PHP install for newbies has got the ../../modules directory.
We need a better method to check for PHPNuke
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Tarique Sani

SANIsoft PHP applications for E Biz

Andi

Hi :)

Is it actually still necessary to test the installation on the presence of phpnuke?
hope, I could help you... :)

Aditya Mooley

The test for PHPNuke should be moved to install.php with an option for user to override the warning.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Nibbler


Andi

hope, I could help you... :)

Joachim Müller

OK, this is what I did to fix this:
  • removed the modules check in index.php alltogether
  • Changed the check in install.php as suggested:// Check if standalone is installed in a portal like phpNuke
    if (is_dir('../../modules') && $_REQUEST['continue_anyway'] != 1) {
        die(
            "<html><body><h1>ERROR</h1>You seem to be trying to install the standalone Coppermine into your Nuke portal.<br />
             This version can only be used as standalone!<br />
             Some server setups might display this warning even though you don't have a nuke portal installed - if this is the case for you, <a href=\"" . $PHP_SELF . "?continue_anyway=1\">continue</a> with the install.
             If you are using a nuke portal, you might want to take a look into <a href=\"http://www.cpgnuke.com/\">CpgNuke</a> or use one of the (unsupported)
             <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=95984\">coppermine ports</a>
             - do not continue!</body></html>"
             );
    } // end check
I hope this fixes the XAMPP bug, or is at least a workaround everybody can live with.
Please confirm.

Joachim

Tarique Sani

SANIsoft PHP applications for E Biz

Andi

hope, I could help you... :)

Tarique Sani

BTW - now the install itself is bugged ;) will fix it someday
SANIsoft PHP applications for E Biz