Coppermine interfering with my PHP Scripts Coppermine interfering with my PHP Scripts
 

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

Coppermine interfering with my PHP Scripts

Started by element059, October 19, 2006, 08:07:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

element059

Hello,

I have been using Coppermine for quite a while now and it was working fine under my custom template, until I upgraded to the latest version. I must add that the upgrade was compulsory due to a change in server configuration so I can't downgrade unfortunately.

With the latest version of Coppermine the template systems appears very different and is interfering with the numerous other scripts that I have running on the site, particularly the server side includes.

I've had to produce a hack in order to get the template working under the current system. This involves placing my footer under custom footer 'phpfooter.php', my header in template.php and finally my PHP include paths in theme.php.

This method barely works for browsing let alone admin control. As you will see I have random styling issues going on and my Coppermine menu does not appear:
http://www.games-fusion.net/screens/thumbnails.php?album=77

Finally, in the admin section when I go to edit or remove existing photos it gives me the following error:

Fatal error: Call to a member function on a non-object in /usr/edge/wwwdocs/games-fusion.net/www/htdocs/filedb/toplist.php on line 17

This is part of my file database script and outputs the most recent files. I've tried removing it and all other PHP includes but it still does not resolve the problem.

I've attached my template system (example.zip) as it stands at the moment. I am hopping someone with more knowledge on this new template system can explain what I am doing wrong, or rather what Coppermine is doing wrong.

Many thanks!

element059

I meant template.html not template.php

I forgot to mention one other thing.

In my config settings under "Files and Thumbnails advanced settings" I have album directory as '/screens/albums' and my directory for user files as 'uploads'. The path to Coppermine on my site is www.games-fusion.net/screens/. For some reason if I change any two of those variables it breaks all the image locations. Where as before it did not do that or rely on those settings.

Joachim Müller

The issues (and subsequently the error message you get) are not related to coppermine, but your customizations. What exactly do you expect us to advice, as we can't see nor know what exactly you did? In fact, it's not coppermine that is interfering with your other scripts, but your other scripts interfering with coppermine - coppermine has been built as a standalone app. If you include custom scripts into it, do so properly.
If you really want us to look into your issues, you should zip your custom theme and attach it to your posting (using "additional options" when composing your message).

element059

Hi,

Thanks for your comments. If you look at my post you will see that I did that. Please see example.zip.

Many thanks!

Joachim Müller

Doesn't mean anything to me,as both phpfooter.php as well as theme.php contain PHP includes to files I can't see, so I can't advice.

element059

Forget it. It's cool. Thanks for looking into it anyway.