coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: baaka on November 14, 2003, 08:18:18 PM

Title: PHPNuke 6.8 and CPG 1.1D Blank Page
Post by: baaka on November 14, 2003, 08:18:18 PM
I am using PHPNke 6.8 and am trrying to add Coppermine gallery to it with the php port. I copied the modules dir to my webserver the is hosted and set the permissions on the alblums dir. I have modified the config.inc.php file with my database information and imported the sql tables into my MySql server. I activated the module in PHPNuke and it shows up but when I call any of the links from this point I get a blank page "no errors nothing" I have provided a link to my site. Please let me know if I have missed anything.

 http://jaxracquetball.baaka.com/modules.php?name=coppermine
Title: PHPNuke 6.8 and CPG 1.1D Blank Page
Post by: gtroll on November 14, 2003, 08:38:13 PM
Hmm you did somethin wrong..
Is the folder coppermine in the modules dir?
Did you make sure to use the For phpnuke6.5 folder?
are the cpg_ tables in your nuke db?
Title: PHPNuke 6.8 and CPG 1.1D Blank Page
Post by: baaka on November 14, 2003, 08:54:42 PM
Is the folder coppermine in the modules dir? Yes I placed the coppermine modules folder under modules as you can see in the link

Did you make sure to use the For phpnuke6.5 folder? Yes I used the 6.5

are the cpg_ tables in your nuke db? and I verified that the tables are in my mysql database.
Title: PHPNuke 6.8 and CPG 1.1D Blank Page
Post by: DJMaze on November 14, 2003, 10:08:57 PM
Quote from: "baaka"and I verified that the tables are in my mysql database.

mysql database and nuke database are 2 seperate things.

MySQL contains databases which contain tables.

The database that contains "nuke_*" also needs to have the "cpg_*" tables.

So create a test.php file in your main nuke folder including:
<?php
require_once&#40;"config.php"&#41;;
require_once&#40;"db/db.php"&#41;;

$sql "SELECT * FROM cpg_config";
$result $db->sql_query&#40;$sql&#41;;
if &#40;!$result&#41; die&#40;mysql_error&#40;&#41;&#41;;
else &#123;
    
echo "<html><body><table border=1>";
    while&
#40;$row = $db->sql_fetchrow&#40;$result&#41;&#41; &#123;
      
echo "<tr>";
        foreach &
#40;$row as $value&#41; &#123;
          
echo "<td>".$value."</td>";
        &
#125;
      
echo "</tr>";
    &
#125;
    
echo "</table></body></html>";
&
#125;
?>


And open in your browser http://jaxracquetball.baaka.com/test.php
Title: test.php results
Post by: baaka on November 15, 2003, 12:42:36 AM
Thanks for the code I created the php file and ran the code and here is the results


You can't access this file directly...
Title: Opps
Post by: baaka on November 15, 2003, 12:45:51 AM
Ok put test.php in the coppermine folder and got the above results! After putting it in my main PHPNuke folder I got some output you can view it at the link provided

http://jaxracquetball.baaka.com/test.php