forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: miikali on February 08, 2004, 02:27:02 am

Title: upgrade problem
Post by: miikali on February 08, 2004, 02:27:02 am
that really works :)

now i have other problem.
How to upgrate 1.1.0>1.2?
i just read (online)FAQ and there was only talking about how to update 1.0 to 1.1
Title: upgrade problem
Post by: Nibbler on February 08, 2004, 02:34:00 am
It is in the readme under "Upgrading from releases of version 1.1"
Title: upgrade problem
Post by: miikali on February 08, 2004, 02:44:44 am
perhaps i'm blind or something but i can't find that. Can you put direct link?
Title: upgrade problem
Post by: Nibbler on February 08, 2004, 02:56:04 am
here (http://www.ic-gallery.com/base/docs/README.html#11)
Title: upgrade problem
Post by: miikali on February 08, 2004, 10:38:51 am
okey
everythig goes right, but now i have have minor problem.
In config.php says the version is still 1.1??
and if i want to made any changes there is no any buttons in the bottom of the page were i can accept them...
And there is a "invalid action" note top of the config page.
Title: upgrade problem
Post by: Casper on February 08, 2004, 10:45:40 am
Hi,

I have split this from the unrelated topic, and placed it in the correct forum.
Please keep to one topic per thread.

On the ugrade problem, did you do all the upgrade steps correctly.

Did you do the step where you browse to /update.php.

Go over them again to check.
Title: upgrade problem
Post by: miikali on February 08, 2004, 11:32:27 am
problem with the big pictures:
when i push the thumbnail i got weird fatal error message:
"Fatal error: Call to undefined function: display_film_strip() "
/displayimage.php on line 582
what i have done
Title: upgrade problem
Post by: Joachim Müller on February 08, 2004, 12:04:58 pm
Quote from: "miikali"
okey
everythig goes right, but now i have have minor problem.
In config.php says the version is still 1.1??
and if i want to made any changes there is no any buttons in the bottom of the page were i can accept them...
And there is a "invalid action" note top of the config page.
seems like you haven't replaced all 1.1 files correctly, as stated in the readme Nibbler referred to...
You have to replace all cpg1.1 files but the ones in /albums and /include/config.inc.php. Your problem sounds like you haven't replaced the files within the include folder...

GauGau
Title: upgrade problem
Post by: miikali on February 08, 2004, 12:15:13 pm
yes. I have done everything what the faq told, but do i need to chmod files?
Title: upgrade problem
Post by: miikali on February 08, 2004, 01:48:31 pm
chmod is 777 as it be.
there's also error in top of the page "Warning: in_array(): Wrong datatype for second argument "
Title: upgrade problem
Post by: miikali on February 08, 2004, 02:22:50 pm
okey i check the ftp. The only files wich has not updated is:
COPYING, readme.htm, config.php, include dir, albums dir, 3. old language files.

I run update.php again and everything seem to be right:
 

Code: [Select]
Performing Database Updates
ALTER TABLE cpg11d_comments add msg_raw_ip tinytext OK
ALTER TABLE cpg11d_comments add msg_hdr_ip tinytext OK
ALTER TABLE cpg11d_pictures add pic_raw_ip tinytext OK
ALTER TABLE cpg11d_pictures add pic_hdr_ip tinytext OK
INSERT INTO cpg11d_config VALUES ('thumb_use', 'any') OK
INSERT INTO cpg11d_config VALUES ('show_private', '0') OK
INSERT INTO cpg11d_config VALUES ('first_level', '1') OK
INSERT INTO cpg11d_config VALUES ('display_film_strip', '1') OK
INSERT INTO cpg11d_config VALUES ('max_film_strip_items', '5') OK
INSERT INTO cpg11d_config VALUES ('comment_email_notification', '0') OK
CREATE TABLE cpg11d_banned ( ban_id int(11) NOT NULL auto_increment, user_id int(11) DEFAULT NULL, ip_addr tinytext DEFAULT NULL, expiry datetime DEFAULT NULL, PRIMARY KEY (ban_id) ) TYPE=MyISAM OK
Upgrade completed
Coppermine is now upgraded and ready to roll.
 

still i got the same error :(
Title: upgrade problem
Post by: Casper on February 08, 2004, 02:43:45 pm
OK, the language files have changed cosiderably since version 1.  Is there any reason for not changing those files.

If it is because of mods you have put on, I suggest you upload the new language files, and then apply the mods later, if you still need them.
Title: upgrade problem
Post by: miikali on February 08, 2004, 03:35:49 pm
these was a some foreing languages what i don't even use. Now i have remove those and updated again, but still it has no any useful help.
Title: upgrade problem
Post by: Casper on February 08, 2004, 03:49:25 pm
As your error was about the film strip, try setting it to '0'.

Line 582 of displayimage.php should be this;
Code: [Select]
$film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);
Title: upgrade problem
Post by: miikali on February 08, 2004, 04:27:59 pm
Quote from: "casper"
As your error was about the film strip, try setting it to '0'.

Line 582 of displayimage.php should be this;
Code: [Select]
$film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);

now that's totally weird. it is zero
Code: [Select]

    // Display Filmstrip if the album is not search
    if ($album != 'search') {
        $film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);
Title: upgrade problem
Post by: Nibbler on February 08, 2004, 04:40:49 pm
Did you overwrite all the include files (except config.inc.php) ?
Title: upgrade problem
Post by: miikali on February 08, 2004, 05:18:00 pm
this is what i have done:
Code: [Select]
Backup your include/config.inc.php file and your "albums" directoy.
Unpack the archive
If the file config.inc.php exists in the "include" directory, delete it.
If the file install.php exists in the root directory, delete it.
Except for the "albums" directory, upload all of the new files and directories making sure not to overwrite the include/config.inc.php file or the albums directory.
Call the upgrade script http://yousitename/coppermine_dir/update.php
Your upgrade should be complete.
Title: upgrade problem
Post by: Joachim Müller on February 08, 2004, 09:02:30 pm
you didn't answer the question: did you upload all files (with the exception of /include/config.inc.php and install.php) from the cpg1.2.0 package to your webserver? Yes or no?

GauGau
Title: upgrade problem
Post by: miikali on February 08, 2004, 09:20:24 pm
everything is new except "albums". Do i need to replace it allso?
Title: upgrade problem
Post by: Joachim Müller on February 08, 2004, 09:23:36 pm
no
Title: [Solved]: upgrade problem
Post by: miikali on February 08, 2004, 09:31:32 pm
okey..i'll do everythig again with this way:

packing up "albums" and "include/config.inc.php" deleting "install.php" overwriting files, uploading old "config.inc.php" running "update.php"

is this correct?
Title: upgrade problem
Post by: Joachim Müller on February 08, 2004, 09:34:36 pm
yes, at least it won't do no harm if you do it twice. Just to be sure, backup your files and databse (you never know :wink: )...

GauGau
Title: upgrade problem
Post by: miikali on February 08, 2004, 09:37:07 pm
i'll got the "albums" and "include" directories in my HD
Title: upgrade problem
Post by: miikali on February 08, 2004, 09:58:25 pm
WO-HOOO!
everythig rolling and working. I don't know what i have done wrong but that's not really matter anymore.

Thanks to all of you guys!
Title: Re: upgrade problem
Post by: s1lv3r on May 26, 2004, 10:39:03 am
Just in case other people have this same problem... it is caused by not updating "config.php" .. which is easy to get wrong if you've read "config.inc.php" in the update instructions.

The only file you need to save and keep is "config.inc.php" (and your album folder)