![]() |
4.2.2 Upgraders, Check your Advanced Search
Yesterday, we upgraded from 4.2.1 to 4.2.2 - we did this after extensive testing in a separate environment, to get all of our other plugins playing nice. The upgrade went smoothly, and we love the new version! Much faster on PHP 5.4, so we're really happy about that.
One quick thing I wanted to share, unrelated to plugins. Click the "Advanced Search" button on your site. (http://www.yoursite.com/search.php). Do you have errors at the top of the page? I did, and it frustrated me because we had carefully followed all upgrade steps. It persisted, even with hooks off. The solution? See below: http://www.vbulletin.com/forum/forum...93#post4000793 Code:
1. - edit the files "socialgroupmessage.php" and "socialgroupdiscussion.php" found in "packages/vbforum/item/" |
This was something that didnt show up in our testing, nor was it reported by any alpha or beta testers. However, it is an issue, and you have posted the correct fix.
|
Cool :) Just wanted to make sure I was sharing accurate information for other OCD upgraders like me!
Great job on the release, Paul (and everyone on the vB team) - our server load is way down, and a lot of memory is freed up too. |
Thanks. Fixed!
I agree with the above comment about speed, pages load noticeable faster on our forums too. |
Yeah, noticed this Sunday night after upgrading early Sunday morning (like, 12:50 AM - 2:00 AM early). I just have to wait for our technical administrator to get on again to fix it.
We had one on profiles, but that was due to DragonByte Tech's Username Change modification, which was fixed for 4.2.2 on Wednesday -- we just needed to update it. |
Quote:
Will have to check this out. I had some errors in my admincp and on the Articles tab, and was told on here to turn off errors. Will check the search function, after turning on errors. This is on my CMS page at top: Warning: Declaration of vBCms_Item_Content::setItemId() should be compatible with that of vB_Model::setItemId() in ..../packages/vbcms/item/content.php on line 26 These are in admincp: Warning: Declaration of vB_Database_Alter_MySQL::add_index() should be compatible with that of vB_Database_Alter::add_index() in ..../includes/class_dbalter.php on line 882 Warning: Declaration of vB_Database_Alter_MySQL::add_field() should be compatible with that of vB_Database_Alter::add_field() in ..../includes/class_dbalter.php on line 882 Warning: Declaration of vB_Database_Alter_MySQL::drop_field() should be compatible with that of vB_Database_Alter::drop_field() in ..../includes/class_dbalter.php on line 882 Warning: Declaration of vB_Database_Alter_MySQL::query() should be compatible with that of vB_Database_Alter::query() in ..../includes/class_dbalter.php on line 882 Was told by Ozzy that these were php 5.4 errors. Did you have the same ones, and if so, how did you fix them - besides turning off errors? Thanks. |
Quote:
|
Quote:
|
|
Ok, thanks. I thought OP had the same problem as me. Looks like my host may be having issues, contacted them. Thanks again.
|
Just upgrade to 4.2.2 Pl1 and found this bug almost immediately. Fortunately a quick search turned up this fix. However, given that this has been around since last October shouldn't this already be in the relevant PHP files for the latest updates?
|
Quote:
|
Quote:
|
So this bug/fix was October 2013 and was apparent in 4.2.2 PL1.
I'm running 4.2.2 PL3 and seen this error pop up in a few places, so why has VBulletin not got a patch for this after soo long. I guess the upgrades fix many issues, but I do find every upgrade I'm chasing fixing of bugs from that upgrade. Thanks for posting the fix. This forum is very handy for fixing things and great mods too. |
Quote:
|
Quote:
|
Just a FYI, this is fixed in 4.2.3
|
Thanks for the heads up OP and fix. I just upgraded a site to the latest version in the members area, which is 4.2.2 PL4.
It sure would be nice if it was fixed in the download package.. |
As long as we're talking errors, here's one I fixed today for Who's Online
in includes/functions_online.php , line 516, find Code:
else if ($userinfo['values']['do'] == 'editfolders' OR $userinfo['action']['do'] == 'updatefolders') Code:
--------------- Added [DATE]1421724977[/DATE] at [TIME]1421724977[/TIME] --------------- Quote:
|
Quote:
|
Quote:
|
Quote:
Code:
/*======================================================================*\ |
Well, you should be running 4.2.2 pl4 as you are running a outdated version with known security issues. :)
|
Quote:
|
Quote:
The code on line 516 of includes/functions_online.php is: Code:
else if ($userinfo['values']['do'] == 'editfolders' OR $userinfo['action']['do'] == 'updatefolders') Code:
else if ($userinfo['values']['do'] == 'editfolders' OR $userinfo['values']['do'] == 'updatefolders') |
Hmmm, well my test forum is supposedly running 4.2.2, and its fixed :confused:
I also know its fixed in core, as I remember doing it. I guess I'll have to look at SVN later. |
Ah well, I found it ;
http://tracker.vbulletin.com/browse/VBIV-15962 Apparently I fixed it last summer, so its in 4.2.3, not 4.2.2 My apologies, I guess I must have tested it locally and never reverted the change. |
in 4.2.3 it is
Code:
else if ($userinfo['values']['do'] == 'editfolders' OR $userinfo['values']['do'] == 'updatefolders') |
Quote:
|
Quote:
|
Has anyone seen these warnings in admincp?
Warning: Declaration of vB_Database_Alter_MySQL::add_index() should be compatible with that of vB_Database_Alter::add_index() in ..../includes/class_dbalter.php on line 882 Warning: Declaration of vB_Database_Alter_MySQL::add_field() should be compatible with that of vB_Database_Alter::add_field() in ..../includes/class_dbalter.php on line 882 Warning: Declaration of vB_Database_Alter_MySQL::drop_field() should be compatible with that of vB_Database_Alter::drop_field() in ..../includes/class_dbalter.php on line 882 Warning: Declaration of vB_Database_Alter_MySQL::query() should be compatible with that of vB_Database_Alter::query() in ..../includes/class_dbalter.php on line 882 I searched for the generic warning language and at stackoverflow various posters said when one class extends another the methods' arguments must match exactly, including defaults. So for example on line 242 we have Code:
function add_index($fieldname, $fields, $type, $overwrite) {} and on line 518 Code:
function add_index($fieldname, $fields, $type = '', $overwrite = false) It looks like all you'd have to do is edit in the defaults in the first method, and likewise for the other incompatibilities in the warnings. But I would want to test this before recommending it here, after all, this stuff alters database structure. So when do these warnings happen? |
|
The code I posted is straight off my vb4.2.2. PL 1 installation.
|
Quote:
e.g. Line 242: Code:
function add_index($fieldname, $fields, $type, $overwrite) Code:
function add_index($fieldname, $fields, $type = '', $overwrite = false) The functions add_index, add_field, drop_field and query all have a default value missing in their declarations in the base class. |
Quote:
Curiously, I cannot get those errors to show up on my php 5.4 install at all, not sure why. Its also quite odd that no one has ever reported them either (other than the comment in this thread). Regardless, it does look like they need more changes to be fully correct, which have now been applied in 4.2.3. |
I found an obscure one for you, Paul M. This is an illegal string offset warning in Who's Online that I'm sure occurs only if you have the Blog product. The warnings arise from $wol_user["$seeuserid"]['username'] and $wol_user["$seeuserid"]['musername']. I print_r()'d $wol_user and some of its elements were simple usernames, others were arrays of username and musername. Apparently the simple username values come from a blog plugin in hook location "online_ids_titles" (includes/functions_online.php, line 2499), which calls function blog_online_ids_titles() in includes/blog_functions_online.php, line 82. The problem seems to come at line 159. I think the code there should be similar to the code at lines 2494 and 2495 in includes/functions_online.php
--------------- Added [DATE]1421897642[/DATE] at [TIME]1421897642[/TIME] --------------- UPDATE: I think the following edits resolve the problem: line 159, includes/blog_functions_online.php Code:
//$wol_user["$userresult[userid]"] = $userresult['musername']; line 414 (as numbered after the first edit), includes/blog_functions_online.php Code:
//$blogtitle = $wol_bloguser["$userid"]['title'] ? $wol_bloguser["$userid"]['title'] : $wol_user["$userid"]; |
Did you submit your issue to the bugtracker yet nerbert?
|
Quote:
|
All times are GMT. The time now is 05:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|