Page 2 of 2

Posted: Tue Nov 01, 2005 3:55 am
by Webdummy
bluetooth78 wrote: It's very simple:

• Upload the new patched or changed files to your server
• Run the script. http://www.yourdomain.com/phpbb/install ... latest.php

Delete the /install and /contrib folders from your server.

Done.


Thanks! Just followed these basic instructions and had a troublefree install. The whole thing took less than 5 mins!

Posted: Tue Nov 01, 2005 4:30 am
by Protostar
Alright I copied the files to my web server and tried to update it but get this error:

404 Not Found


The requested URL /phpbb/install/update_to_latest.php was not found on this server.



Then when I go to the www/phpBB22/install directory the update to latest.php file is right there. What gives?

Posted: Tue Nov 01, 2005 4:33 am
by 3Di
check locations.. :)

Posted: Tue Nov 01, 2005 4:40 am
by Protostar
3Di wrote: check locations.. :)


Check what locations?

Posted: Tue Nov 01, 2005 5:21 am
by Iced Coffee
Thanks, just done it well, yes, less than 3 minutes for it.

However, I did not have to take the step 4 in this instruction. Why?
Step 1
Download the “Patch file only” package from the phpBB.com download page, and extract it to a folder somewhere at your hard drive

Step 2
Select the correct patch, e.g. if your current version is 2.0.14 you need the phpBB-2.0.14_to_2.0.17.patch. Place the correct patch in the parent directory of your board (the one containing the phpBB core files like index.php, viewforum.php, etc.)

Step 3
Upload the update_to_latest.php file to the /install directory of your board. If the directory doesn't exist you'll have to create it

Step 4
Run the following command using the command line:
Code:
patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME]
where PHPBB DIRECTORY is the directory name your phpBB board resides in and where PATCH NAME is the filename of the patch file which you would like to execute.
This should complete quickly, hopefully without any HUNK FAILED comments.

If you do get failures you'll have to try the next update method described in this article. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source

Step 5
Delete the patch file (or files)

Step 6
Run install/update_to_latest.php trough your browser (using http://www.domain.com/phpBB2/install/up ... latest.php, for example)
This will update your database schema and data (if appropriate) and increment the version number

Step 7
Delete the /install directory from your board's root directory

Posted: Tue Nov 01, 2005 6:13 am
by cybrid23
Protostar wrote: Alright I copied the files to my web server and tried to update it but get this error:

404 Not Found


The requested URL /phpbb/install/update_to_latest.php was not found on this server.



Then when I go to the www/phpBB22/install directory the update to latest.php file is right there. What gives?


First, note the different urls.

Second, note the CaSe...It is CaSe SeNsItIvE. Make sure you are going to the correct folder. phpbb is not the same as phpBB....

Posted: Tue Nov 01, 2005 6:15 am
by Protostar
That actually was a typo. There is only supposed to be one 2 (BB2).

Posted: Tue Nov 01, 2005 6:17 am
by Protostar
Still the same error:

The requested URL /phpBB2/install/update to latest.php was not found on this server.

Posted: Tue Nov 01, 2005 6:18 am
by cybrid23
I was not referring to the 2.

It was looking for requested url (what you put in the address bar) /phpbb/install

You posted that it's in phpBB2/install

See the difference?

Posted: Tue Nov 01, 2005 6:31 am
by Protostar
God, I'm stupid. I was forgetting to put the underscores between words.
Instead of update_to_latest.php I was typing update to latest.php. Everything updated and is fine now. Thanks for the help.

Posted: Tue Nov 01, 2005 11:11 am
by gasteropod
Iced Coffee wrote: Thanks, just done it well, yes, less than 3 minutes for it.

However, I did not have to take the step 4 in this instruction. Why?
Step 1
Download the “Patch file only” package from the phpBB.com download page, and extract it to a folder somewhere at your hard drive

Step 2
Select the correct patch, e.g. if your current version is 2.0.14 you need the phpBB-2.0.14_to_2.0.17.patch. Place the correct patch in the parent directory of your board (the one containing the phpBB core files like index.php, viewforum.php, etc.)

Step 3
Upload the update_to_latest.php file to the /install directory of your board. If the directory doesn't exist you'll have to create it

Step 4
Run the following command using the command line:
Code:
patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME]
where PHPBB DIRECTORY is the directory name your phpBB board resides in and where PATCH NAME is the filename of the patch file which you would like to execute.
This should complete quickly, hopefully without any HUNK FAILED comments.

If you do get failures you'll have to try the next update method described in this article. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source

Step 5
Delete the patch file (or files)

Step 6
Run install/update_to_latest.php trough your browser (using http://www.domain.com/phpBB2/install/up ... latest.php, for example)
This will update your database schema and data (if appropriate) and increment the version number

Step 7
Delete the /install directory from your board's root directory

If you didn't do step 4, then you have probably just updated the database and the database version number but have not updated any of the files! In effect this means you have not updated your system at all, just told the database it's now 2.0.18 when in reality all the code is 2.0.17.

Thank you markus_petrux

Posted: Tue Nov 01, 2005 5:14 pm
by 4rum
:D Just had a look at the changes.

I prefer to do it all manually. Heavily modded board . :wink:

Just like to say a big thank you to markus_petrux . 8)

The phpbb_2.0.17_to_2.0.18\phpbb_2.0.17_to_2.0.18\html\index.html file
included in the html folder within the Code Changes is brilliant.

Well done, so easy to use and easy to follow . :D

Cheers . 8)

Posted: Tue Nov 01, 2005 5:23 pm
by freddie
hello,

i had phpbb 2.0.17 and made the change to 2.0.18, but i had some problems.

it wasn't possible anymore to make posts

the error was in this line in posting.php

Code: Select all

#-----[ FIND ]---------------------------------------------
# NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
#		$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
#
		$user_sig = ( $post_info['user_sig'] != ''

#
#-----[ AFTER, ADD ]---------------------------------------------
#
		$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
when i don't use this piece of code, everything works. Is that a big problem or not ?