Hi everyone - firstly thanks to the team for producing such a great bit of software!!
I'm working on a site for a client and have Coppermine for the first time ever.
Now knowing me I've prolly missed something, but I followed the instructions to the letter, amending the permissions to the relevant folders once everything was uploaded.
I've also made the necessary alterations to the bridge file cpg works with the forum on the site.
No issues - worked flawlessly - great stuff even for a n00b like me.
The issue I'm currently facing is... Well, I'll paste the error messages that appear at the top of most pages:
QuoteNotice: Undefined index: PATH_TRANSLATED in D:\Clients\9903\gallery\index.php on line 21
Notice: Undefined offset: -1 in D:\Clients\9903\gallery\index.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at D:\Clients\9903\gallery\index.php:21) in D:\Clients\9903\gallery\themes\project_vii\theme.php on line 833
Warning: Cannot modify header information - headers already sent by (output started at D:\Clients\9903\gallery\index.php:21) in D:\Clients\9903\gallery\include\functions.inc.php on line 51
Any ideas? I'm not overly familiar with php (but learning FAST) - would appreciate any input. What could be causing these errors to appear?
Many thanks in advance, and greetings from the UK,
Ad
Just disable notices in debug mode, or disable debug mode completely, it is nothing to worry about.
Hi - thanks for the response. I followed your suggestions (Misc Settings - changed "Enable debug mode" to No, and changed "Display debug notices" to No.
The error messages still occur on the front page however.
Cheers,
Ad
OK, open your index.php and remove this block
// Check if standalone is installed in a portal like phpNuke (added by DJMaze)
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
echo "<html><body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.<br>".
"Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
die();
} // end check
Thanks I'll do that once I get back home tonight - in around 6 hours.
I'll post back into this thread on the outcome!
Thank you,
Ad
Hi,
That hit the mark - thank you so much. I now appear to have another issue regarding not being able to upload files to the album. Can I post in this thread or should I start another one for that? I have more errors...
Many thanks,
Ad
Please post in another thread. It makes it easier to track issues, as we can now mark this thread as Solved.