Thread: Miscellaneous Hacks - Exclude Forums from What's New & FORUMHOME
View Single Post
  #49  
Old 11-24-2011, 03:07 PM
rootsxrocks rootsxrocks is offline
 
Join Date: Aug 2009
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought this was working fine, however when I acually used it myself I discovered that when I go to the CMS Home tab it causes mass Chaos
using 4.18 with assorted new post widgets on the home page including most viewed post by friends and latest post.
PHP Code:
vB_Legacy_Forum does not have a field 'title' on line 40 in 

/home/host1/public_html/example/vb/legacy/dataobject.php
#0 /home/host1/public_html/example/vb/legacy/forum.php(60): 

vB_Legacy_Dataobject->get_field('title')
#1 /home/host1/public_html/example/packages/vbforum/search/result/post.php(157): 

vB_Legacy_Forum->get_field('title')
#2 /home/host1/public_html/example/packages/vbcms/widget/searchwidget.php(620): 

vBForum_Search_Result_Post->render(Object(vB_Legacy_CurrentUser), 

Object(vB_Search_Criteria), 'vbcms_searchres...')
#3 /home/host1/public_html/example/packages/vbcms/widget/searchwidget.php(356): 

vBCms_Widget_Searchwidget->renderResult(Array, Array)
#4 /home/host1/public_html/example/packages/vbcms/controller/content.php(230): 

vBCms_Widget_Searchwidget->getPageView()
#5 [internal function]: vBCms_Controller_Content->actionView()
#6 /home/host1/public_html/example/vb/controller.php(191): call_user_func_array(Array, 

Array)
#7 /home/host1/public_html/example/packages/vbcms/route/content.php(97): 

vB_Controller->getResponse()
#8 /home/host1/public_html/example/vb/router.php(251): 

vBCms_Route_Content->getResponse()
#9 /home/host1/public_html/example/vb/bootstrap.php(58): vB_Router::getResponse()
#10 /home/host1/public_html/example/content.php(30): require_once('/home/host1/pu...')
#11 /home/host1/public_html/example/index.php(56): require('/home/host1/pu...')
#12 {main}


Fatal errorvB_Legacy_Forum does not have a field 'title' on line 40 in 

[path]/vb/legacy/dataobject.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, vB_Legacy_Forum does not have a field 'title' on line 40 in 

/home/host1/public_html/example/vb/legacy/dataobject.php 

/
home/host1/public_html/example/vb/vb.php287, Array ([exception] => Exception Object ([] => 

vB_Legacy_Forum does not have a field 'title',[] => ,[] => 0,[] => 

/
home/host1/public_html/example/vb/legacy/dataobject.php,[] => 40,[] => Array ([0] => Array 

([
file] => /home/host1/public_html/example/vb/legacy/forum.php,[line] => 60,[function] => 

get_field,[class] => vB_Legacy_Dataobject,[type] => ->,[args] => Array ([0] => title)),[1] => Array 

([
file] => /home/host1/public_html/example/packages/vbforum/search/result/post.php,[line] => 

157,[function] => get_field,[class] => vB_Legacy_Forum,[type] => ->,[args] => Array ([0] => title)),[2

=> Array ([
file] => 

/
home/host1/public_html/example/packages/vbcms/widget/searchwidget.php,[line] => 

620,[function] => render,[class] => vBForum_Search_Result_Post,[type] => ->,[args] => Array ([0

=> 
vB_Legacy_CurrentUser Object ([] => ,[] => ,[] => ,[] => vB_Registry Object ([datastore] => 

vB_Datastore Object ([defaultitems] => Array ([0] => options,[1] => bitfields,[2] => 

attachmentcache,[3] => forumcache,[4] => usergroupcache,[5] => stylecache,[6] => 

languagecache,[7] => products,[8] => pluginlist,[9] => cron,[10] => profilefield,[11] => loadcache,[12

=> 
noticecache),[registry] => vB_Registry Object ( *RECURSION*,[dbobject] => vB_Database 

Object 
([functions] => Array ([connect] => mysql_connect,[pconnect] => 

mysql_pconnect,[select_db] => mysql_select_db,[query] => mysql_query,[query_unbuffered] => 

mysql_unbuffered_query,[fetch_row] => mysql_fetch_row,[fetch_array] => 

mysql_fetch_array,[fetch_field] => mysql_fetch_field,[free_result] => mysql_free_result,[data_seek

=> 
mysql_data_seek,[error] => mysql_error,[errno] => mysql_errno,[affected_rows] => 

mysql_affected_rows,[num_rows] => mysql_num_rows,[num_fields] => 

mysql_num_fields,[field_name] => mysql_field_name,[insert_id] => 

mysql_insert_id,[escape_string] => mysql_escape_string,[real_escape_string] => 

mysql_real_escape_string,[close] => mysql_close,[client_encoding] => 

mysql_client_encoding,[ping] => mysql_ping),[registry] => vB_Registry Object 

*
RECURSION*,[fetchtypes] => Array ([2] => 2,[1] => 1,[0] => 3),[appname] => 

vBulletin,[appshortname] => vBulletin,[database] => host1_firstforum,[connection_master] => 

Resource id #9,[connection_slave] => Resource id #9,[connection_recent] => Resource id 

#9,[multiserver] => ,[shutdownqueries] => Array ([lastvisit] => UPDATE user SET lastactivity = 

1322146912 WHERE userid ),[sql] => ,[reporterror] => 1,[error] => ,[errno] => 0,[maxpacket] => 

0,[locked] => ,[querycount] => 222),[prefix] => ,[checked_options] => 1),[input] => vB_Input_Cleaner 

Object 
([shortvars] => Array ([f] => forumid,[t] => threadid,[p] => postid,[u] => userid,[a] => 

announcementid,[c] => calendarid,[e] => eventid,[q] => query,[pp] => perpage,[page] => 

pagenumber,[sort] => sortfield,[order] => sortorder),[superglobal_lookup] => Array ([g] => _GET,[p

=> 
_POST,[r] => _REQUEST,[c] => _COOKIE,[s] => _SERVER,[e] => _ENV,[f] => _FILES),[scriptpath

=> ,[
reloadurl] => ,[wolpath] => ,[url] => ,[ipaddress] => ,[alt_ip] => ,[registry] => vB_Registry Object 

*
RECURSION*,[cleaned_vars] => Array ([vbulletin_collapse] => 7,[CC_referrerid] => 3,[CC_userid

=> 
3,[CC_password] => 7,[CC_lastvisit] => 3,[CC_lastactivity] => 3,[CC_threadedmode] => 

9,[CC_sessionhash] => 9,[CC_userstyleid] => 3,[CC_languageid] => 3,[CC_skipmobilestyle] => 

1,[s] => 9,[styleid] => 2,[langid] => 2,[api] => 0,[referrerid] => 3,[a] => 7,[nojs] => 1,[ajax] => 

1,[dofbredirect] => 1,[CC_cms_rate] => 7,[page] => 2,[pagenumber] => 3,[CC_thread_lastview] => 

7),[friendly_uri] => ),[db] => vB_Database Object ([functions] => Array ([connect] => 

mysql_connect,[pconnect] => mysql_pconnect,[select_db] => mysql_select_db,[query] => 

mysql_query,[query_unbuffered] => mysql_unbuffered_query,[fetch_row] => 

mysql_fetch_row,[fetch_array] => mysql_fetch_array,[fetch_field] => 

mysql_fetch_field,[free_result] => mysql_free_result,[data_seek] => mysql_data_seek,[error] => 

mysql_error,[errno] => mysql_errno,[affected_rows] => mysql_affected_rows,[num_rows] => 

mysql_num_rows,[num_fields] => mysql_num_fields,[field_name] => mysql_field_name,[insert_id

=> 
mysql_insert_id,[escape_string] => mysql_escape_string,[real_escape_string] => 

mysql_real_escape_string,[close] => mysql_close,[client_encoding] => 

mysql_client_encoding,[ping] => mysql_ping),[registry] => vB_Registry Object 

*
RECURSION*,[fetchtypes] => Array ([2] => 2,[1] => 1,[0] => 3),[appname] => 

vBulletin,[appshortname] => vBulletin,[database] => host1_firstforum,[connection_master] => 

Resource id #9,[connection_slave] => Resource id #9,[connection_recent] => Resource id 

#9,[multiserver] => ,[shutdownqueries] => Array ([lastvisit] => UPDATE user SET lastactivity = 

1322146912 WHERE userid ),[sql] => ,[reporterror] => 1,[error] => ,[errno] => 0,[maxpacket] => 

0,[locked] => ,[querycount] => 222),[userinfo] => Array ([userid] => 1,[temp] => ,[field1] => I have 

done it all Humanitarian Architect Naturalist Sculptor
Oddities Collector MathematicianEngineer 

Botanist
Inventor GeologistDork Idealist Chef Kind Artist Noeticist Docimologist Bacon lover 

Animal behaviorist
Lapidarist Libertarian Satyr,[field2] => Palm CoastFloridaUnited 

States
,[field3] => Community cooperation,[field4] => Artist,[field6] => Jamie Abbott,[field7] => 

4167538,[subfolders] => ,[pmfolders] => ,[buddylist] => 3 4 5 7 8 9 10 11 12 14 15 16 17 20 22 23 24 

25 28 29 31 32 34 35 36 40 44 45 46 49 53 54 57 60 63 71 74 75 80 84 92 94 95 96 97 106 110 111 113 

117 118 119 129 130 140 141 147 150 151 155 158 161 163 186 206 218 221 251 279 289 302 343 398 

414 517
,[ignorelist] => ,[signature] => [CENTER]Get your facts firstthen you can distort them as 

you please.[/CENTER],[searchprefs] => a:1:{s:20:"cmsadmin_showperpage";i:200;},[rank] => 

,[
excludeforums] => 4,[excludeforumhome] => 1,[usergroupid] => 6,[membergroupids] => 

14,[displaygroupid] => 6,[username] => ROOT,[password] => 

542hfgf92c0dd4d27f283a7a5761db271,[passworddate] => 1250222424,[email] => 
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01808 seconds
  • Memory Usage 1,936KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete