coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: aziz on January 06, 2004, 10:42:55 PM

Title: HELP... UPGRADE MESSED ME UP
Post by: aziz on January 06, 2004, 10:42:55 PM
Hi,

I did an update from 1.1 to 1.2.1. According to the update script everyhing is ok.

Here are my prolems form the most important to the least.

1) When a user click on a pic to enlarge it the following errors appear.


Warning: in_array(): Wrong datatype for second argument in /home/server15/public_html/ask/displayimage.php on line 279

Fatal error: Call to undefined function: display_film_strip() in /home/server15/public_html/ask/displayimage.php on line 582


Oh yeah.. and to add to that the pic does not appear nor does the copyright coppermine info.

2) The script does not destinguish between the users. If i have a private album only for registered members its for public. I even tried to make them only for banned members and still everyone can see em.

3) When i log in as admin and click on the ban members tab i get the following critical error.


Fatal error: Call to undefined function: display_film_strip() in /home/server15/public_html/ask/displayimage.php on line 582



Can anyone help? Its a photo galary for students in my high school and every is getting really annoyed at me.
:(

Oh yeah one more thing.. its supposed to be private website so i cant give out the link. Sorry about that....
Title: HELP... UPGRADE MESSED ME UP
Post by: Joachim Müller on January 07, 2004, 12:36:07 AM
I'm rather sure that you haven't done what the readme told you to do: did you replace all files from the older version of coppermine on your server but include/config.inc.php with the files from the new package?
If you're not ready to give us the link, then I'm sorry I can't help you much further (and no, you mustn't pm me the link). If something's supposed to be really private, then don't publish it on the internet at all...

GauGau
Title: fixed
Post by: aziz on January 07, 2004, 10:28:24 AM
I really dont know what happened but i reuploaded the files and it worked.

I uploaded the files by selecting them ... not by uploading a directory.

If anyone else has this problem then this might just work for you.
Title: HELP... UPGRADE MESSED ME UP
Post by: aziz on January 07, 2004, 10:39:30 AM
correct me if i am wrong. Under the pics there are URL such as http://www.mywebsite.com/pics//displayimage.php?pos=-329

So without loggin in anyone can view the pics if they have the link?

To remove the link do i only have to edit the templates? If so what do i edit?

Thanks
Title: HELP... UPGRADE MESSED ME UP
Post by: Tarique Sani on January 07, 2004, 10:56:40 AM
Quote from: "aziz"correct me if i am wrong. Under the pics there are URL such as http://www.mywebsite.com/pics//displayimage.php?pos=-329

NO people without permissions will not be able to view the page BUT keep in mind if anyone has the URL to the actual image file then they can view it.

Also please post different topics under different threads....
Title: HELP... UPGRADE MESSED ME UP
Post by: Casper on January 07, 2004, 11:49:05 AM
If you still want to remove the url from the page, edit displayimage.phplike this.
Find this code;
// Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';


and comment it out like this;
// Create the absolute URL for display in info
   // $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';