Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2011, 06:04 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Users can't search when logged in on V3.8

Hi there,

Something strange - when a user is logged in and clicks on the search link in the Navbar nothing happens (ie no Search facility appears).

But if they are logged out everything is fine.

This happens even when I restore the Navbar back to the default,

Does anyone have any thoughts?

Thanks!
Reply With Quote
  #2  
Old 11-22-2011, 06:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

PHP Code:
define('DISABLE_HOOKS'true); 
Reply With Quote
  #3  
Old 11-22-2011, 06:50 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynn,

Thanks for getting back.

I did that and the whole forum vanishes giving this error:
********
Warning: Unterminated comment starting line 3 in /home/screenwr/public_html/forum/includes/config.php on line 3

Configuration: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.
*********

One thing is the config.php file is clearly screwed - it's 302 bytes long, was last edited in Jan 2011 (??) , and its only contents right now are:

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.8.4 Patch Level 2
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is
Reply With Quote
  #4  
Old 11-22-2011, 07:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That cannot be the only contents in your config.php file. What are you using to edit it? You should be using a plain text editor like notepad++
Reply With Quote
  #5  
Old 11-22-2011, 07:13 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sadly it is. Somehow the Cpanel editor screwed it up when it loaded it, and the file is now 302 bytes long.

Obviously the forum is now dead till this is fixed - I've asked my hosting company to restore from recent backup.

They're usually pretty quick - I'll come back with the answer to your suggestion when I've recovered normal service.

Thanks for your time so far.
Reply With Quote
  #6  
Old 11-22-2011, 07:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just reupload your config.php file from your computer.

And do NOT use the cPanel editor. Edit the files on your computer and then upload them.
Reply With Quote
  #7  
Old 11-22-2011, 11:18 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I won't be using the Cpanel editor again in a hurry (Why does it do that??)

OK - restored to where we were. I tried your suggestion, added that line, and it made no difference - search not working when you are logged in, working fine when not logged in.

I've deleted the line.
Reply With Quote
  #8  
Old 11-23-2011, 05:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you allow the usergroup to search? usergroup manager > edit usergroup > Can Search Forums?

If so, exactly what happens when they try to search? Can you post a link to the site and give us a test username/password to see the issue.
Reply With Quote
  #9  
Old 11-24-2011, 05:08 PM
screengold screengold is offline
 
Join Date: Feb 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just realised the Community also doesn't work, whether you are logged in or out.

The Quick links and search don't work when you are logged in, Search works when you are logged out only.
Reply With Quote
  #10  
Old 11-24-2011, 05:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your html is all screwed up and that is probably why it isn't working. Run it through a validator and you'll see. You have a <div> in the <head> area (not allowed!) and missing quotes in other tags:
HTML Code:
<img src="/images/forumlogo.jpg" width="716" height="178 border="0" alt="Screenwriting Forum" />
And all sorts of other things that are just not allowed. Fix your html and perhaps your page will work.

http://validator.w3.org/check
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:41 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
  • Page Generation 0.04381 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete