Cannot update from 2.0.15 to 2.5 stable

Please report bugs here!

Moderator: Thorsten

Post Reply
Dawn
Posts: 95
Joined: Tue May 23, 2006 2:10 pm

Cannot update from 2.0.15 to 2.5 stable

Post by Dawn »

Hi,

I've today tried upgrading from PMF 2.0.15 to the latest PMF 2.5.0. I've deleted all files - as suggested - except inc/data.php (there is no inc/config.php) and the attachments folder. The upgrade worked without any problems till the db update, then I got the following error message:
DB error: Duplicate key name 'idx_user_time'

Query:
CREATE INDEX idx_user_time ON faqsessions (user_id, time)
When I try to access my site then, I got the following warnings:

Code: Select all

phpMyFAQ warning [2]: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in Mysql.php on line 119

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 436

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 437

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 438

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 439

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 440

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 441

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domain.com/httpdocs/inc/functions.php:169) in index.php on line 442
EDIT:
PHP-Version: 5.2.9
MySQL-Version: 5.0.51a
Update Option used: PMF 2.0.0 RC2 and later

The layout is really messed up then. So I had to load my backup data back and still use PMF 2.0.15. Do you have any idea what's the problem? Can I provide additional information?

Best regards and big thanks for this great software,
Dawn
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Cannot update from 2.0.15 to 2.5 stable

Post by Thorsten »

Hi,
Dawn wrote: Update Option used: PMF 2.0.0 RC2 and later
you have to choose "2.0.2 and later".

Please run the update again and it should work. Your 2.0 layout should be mostly compatible but you have to do some edits...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Dawn
Posts: 95
Joined: Tue May 23, 2006 2:10 pm

Re: Cannot update from 2.0.15 to 2.5 stable

Post by Dawn »

Oh, such a dumb mistake, thanks for the hint :) This solved the upgrade procedure...

After this I had to do the following steps:
1. Create the directory "data" and chmod it to 777 (755 isn't enough, but it was for PMF 2.0.15?).
2. Edit _.htaccess and and change the RewriteBase to "/"
3. Rename _.htaccess to .htaccess

I think (and I did this in every release before) it's much easier overwriting the old installation with the new files and .

Best regards and thanks a lot for this new great release :)

Best regards,
Dawn

PS: Isn't it very insecure that everyone can grab the logfiles from "data"?
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Cannot update from 2.0.15 to 2.5 stable

Post by Thorsten »

Hi,
Dawn wrote:PS: Isn't it very insecure that everyone can grab the logfiles from "data"?
depends... but we're working on a better solution.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply