vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Users can't search when logged in on V3.8 (https://vborg.vbsupport.ru/showthread.php?t=274466)

screengold 11-22-2011 06:04 PM

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!

Lynne 11-22-2011 06:35 PM

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); 


screengold 11-22-2011 06:50 PM

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

Lynne 11-22-2011 07:07 PM

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++

screengold 11-22-2011 07:13 PM

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.

Lynne 11-22-2011 07:15 PM

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.

screengold 11-22-2011 11:18 PM

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.

Lynne 11-23-2011 05:27 PM

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.

screengold 11-24-2011 05:08 PM

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.

Lynne 11-24-2011 05:23 PM

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


All times are GMT. The time now is 10:40 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.01116 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete