Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: PHPNuke 6.8 and CPG 1.1D Blank Page  (Read 6898 times)

0 Members and 1 Guest are viewing this topic.

baaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.jaxracquetball.com
PHPNuke 6.8 and CPG 1.1D Blank Page
« 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
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
PHPNuke 6.8 and CPG 1.1D Blank Page
« Reply #1 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?

baaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.jaxracquetball.com
PHPNuke 6.8 and CPG 1.1D Blank Page
« Reply #2 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.
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
PHPNuke 6.8 and CPG 1.1D Blank Page
« Reply #3 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:
Code: [Select]
<?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
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

baaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.jaxracquetball.com
test.php results
« Reply #4 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...
Logged

baaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.jaxracquetball.com
Opps
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 14 queries.