upgrade problem upgrade problem
 

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]

Main Menu

upgrade problem

Started by miikali, February 08, 2004, 02:27:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

miikali

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

Nibbler

It is in the readme under "Upgrading from releases of version 1.1"

miikali

perhaps i'm blind or something but i can't find that. Can you put direct link?


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.

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

miikali

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

Joachim Müller

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

miikali

yes. I have done everything what the faq told, but do i need to chmod files?

miikali

chmod is 777 as it be.
there's also error in top of the page "Warning: in_array(): Wrong datatype for second argument "

miikali

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:
 

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 :(

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

miikali

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.

Casper

As your error was about the film strip, try setting it to '0'.

Line 582 of displayimage.php should be this;
$film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

miikali

Quote from: "casper"As your error was about the film strip, try setting it to '0'.

Line 582 of displayimage.php should be this;
$film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);
now that's totally weird. it is zero

    // Display Filmstrip if the album is not search
    if ($album != 'search') {
        $film_strip = display_film_strip($album, (isset($cat) ? $cat : 0), $pos, true);

Nibbler

Did you overwrite all the include files (except config.inc.php) ?

miikali

this is what i have done:
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.

Joachim Müller

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

miikali

everything is new except "albums". Do i need to replace it allso?

Joachim Müller