Forum Moderators: rogerd
I've read the instructions dozens of times and can't for the life of me figure out what the heck I'm supposed to do! Is there anywhere I can go that would explain it to me in plain english? Basically, a "for dummies" version?
Thanks all.
In your forum's directory, find viewtopic.php, and open it up. Inside, find the following code (using your text editor's edit>find feature):
//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
// Split words and phrases
$words = explode(' ', trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));for($i = 0; $i < sizeof($words); $i++)
{
//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
// Split words and phrases
$words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));for($i = 0; $i < sizeof($words); $i++)
{
Is there something else that you don't understand?
I went to the phpBB website, downloaded the 2.0.11 changed files only pack, and unzipped it. I've read the instructions included in that zip file as well as the instructions on the phpBB website and cannot for the life of me figure out how to UPDATE my forum to 2.0.11 from 2.0.10.
I'm just interested in learning how to update my forum, that's all.
If not this is what you need to do
7.ii. Changed files only
This package contains a number of archives, each contains the files changed from a given release to 2.0.11. You should select the appropriate archive for your current version, e.g. if you currently have 2.0.10 you should select the phpBB-2.0.10_to_2.0.11.zip/tar.gz file.The directory structure has been preserved enabling you (if you wish) to simply upload the contents of the archive to the appropriate location on your server, i.e. simply overwrite the existing files with the new versions. Do not forget that if you have installed any Mods these files will overwrite the originals possibly destroying them in the process. You will need to re-add Mods to any affected file before uploading.
As for the other upgrade procedures you should run install/update_to_210.php after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.
Just upload the files in corresponding directories and update the databse thats it...it will hardly take 10 minutes
hope this helps
Ok, thanks. I can just upload the files to my directory that I downloaded? That sounds simple enough. I have installed a few mods/hacks and will have to tweek those before uploading.
And the last part-updating the database? How do I go about that part? Just upload the install/update_to_210.php file (or whatever it's called) into my directory? Or is it a tad more complicated than that?
Thanks so much.
As to the update of the version: create on your server in the phpBB folder a folder named install. Upload the update_to_2011.php file (you'll have to extract the 2.010 to 2.011 file from the archive) to the install folder. Then input into a browser addy field [myforumaddress...] and it does it for you....
Alternatively, you can simply open the overall_footer.tpl file for each template you use, and either change the version number, or delete it as suggested by webwit in another post....
The instructions say to type this:
patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME] Here's one command line I've tried:
patch -cl -d /home/MyUserName/public_html/forumTEST/ -p1 < phpBB-2.0.6_to_2.0.11.patch I keep getting this message:
phpBB-2.0.6_to_2.0.11.patch: No such file or directory I assume that this could be either my mistyping the file name, or using the wrong directory.
Do you see anything wrong? Thanks!
Don't know what to tell you zollerwagner - what you're doing looks exactly right to me, and is exactly what I was doing, and I never got anything other than the message you're getting. Sorry!
When you log into your shell type:
cd /home/MyUserName/public_html/forumTEST
Then type the patch line you have below
patch -cl -d /home/MyUserName/public_html/forumTEST -p1 < phpBB-2.0.6_to_2.0.11.patch
The .patch file resides in /home/MyUserName/public_html/forumTEST so you will need to be in that directory to access the file.
That worked, sort of.
Lots of hunks failed, especially the lines like:
* $Id: bbcode.php,v 1.36.2.32 2004/07/11 16:46:19 acydburn Exp $
I suppose it could have been worse....
When I submit a link such as www.mydomain/phpbb/index.php, I get the following message :
DEBUG MODE
INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('a76fcf3ba28053cbf6f50bca56c628a5', 2, 1103889164, 1103889164, '4610ac54', 0, 1)
Line : 158
File : D:\inetpub\mydomain\phpBB2\includes\sessions.php
Now there seems to be a fix for this. In another forum I found this replacement code for sessions.php file :
$error = TRUE;
if (SQL_LAYER == "mysql" ¦¦ SQL_LAYER == "mysql4")
{
$sql_error = $db->sql_error($result);
if ($sql_error["code"] == 1114)
{
$result = $db->sql_query('SHOW TABLE STATUS LIKE "'.SESSIONS_TABLE.'"');
$row = $db->sql_fetchrow($result);
if ($row["Type"] == "HEAP")
{
if ($row["Rows"] > 2500)
{
$delete_order = (SQL_LAYER=="mysql4")? " ORDER BY session_time ASC" : "";
$db->sql_query("DELETE QUICK FROM ".SESSIONS_TABLE."$delete_order LIMIT 50");
}
else
{
$db->sql_query("ALTER TABLE ".SESSIONS_TABLE." MAX_ROWS=".($row["Rows"]+50));
}
if ($db->sql_query($sql))
{
$error = FALSE;
}
}
}
}
if ($error)
{
message_die(CRITICAL_ERROR, "Error creating new session", "", __LINE__, __FILE__, $sql);
}
But I have an SQL 2000 db and the second line of the code in the fix refers to mysql. Can I try replacing this code with this text without risking any harm to my db?
Thanks and have a good holiday.
Actually, I'm just finishing up debugging mine. I've never used that specific db, so I'm not sure, but I'd guess that you can't address it with mysql terms.
I'd try to use the same terms that are in your current file. Doesn't it have examples of how it addresses your db already? You could probably substitute that for the mysql lingo.
I'd bet that the php.net site has some references on this, too.
One thing I'm sometimes tempted to to do is just change things. Afterall, it will only take a second! I usually stop myself and make a backup of the current one first. That's saved my butt many times. I also usually do my changes in a test forum first just to be sure. Had I not done that this time, the forum would have been down for days.
Good luck!
If you can't find the code for your database, let me know. I may have some basic stuff in one of my books.
<
PHP has released information showing issues with the latest version of PHP 4.3.10, mainly with MS SQL and Sessions. PHP has been working hard in releasing a newer production version of 4.3.10 with possible fixes to the above issues, which we are testing at this time.
PHP 4.3.10 was released to fix security vulnerabilities found in PHP 4.3.9 which is why we took an active stance in quickly upgrading our Network to the latest PHP 4.3.10, but PHP found shortly after, issues with MS SQL and Sessions.
As soon as PHP has a working / stable production version of PHP 4.3.10 released, we will work quickly to have it rolled out across our network.
We thank you for your patience and understanding while we work to resolve this issue as quickly as possible for you all.
>
Is there a way to transfer MS SQL tables to MySQL tables? My hosting plan gives me both.
Thanks.