vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   line 4308 error in functions.php (https://vborg.vbsupport.ru/showthread.php?t=98812)

CyberRanger 10-19-2005 10:17 PM

line 4308 error in functions.php
 
I'm converting one of my sites to vb3.5.0 and I'm struggling with this error.

For example: with 3.0.9 - http://www.ncmb.uscourts.gov/registr...p?id=90&pend=0

With 3.5.0 - http://www.ncmb.uscourts.gov/registr...p?id=90&pend=0

The page displays right except for the error at the bottom. I'm using vb to check security and format the header, sidebar, and footer. The "Attendees" information is pulled from another mysql database on the same server as the forum db. My guess is that something in the second db's config file is overwriting a needed vb variable but I can't pin it down.

Thanks for any help!

Andreas 10-19-2005 10:31 PM

Are you running PHP 5?

CyberRanger 10-19-2005 10:55 PM

The solution ended up being so simple ... once I fixed it! When I was making the call to my second database, I was using:
PHP Code:

$db mysql_connect($db_host,$db_user,$db_password) or die(mysql_error()); 

by changing that to:
PHP Code:

$dbclasses mysql_connect($db_host,$db_user,$db_password) or die(mysql_error()); 

the error calling
PHP Code:

$vbulletin->db->unlock_tables(); 

went away. :banana:

Cryo 10-23-2005 08:40 PM

Just wanted to add that this solved the problem I was having too. Thanks for posting the followup, westpointer. :)


All times are GMT. The time now is 04:59 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.00958 seconds
  • Memory Usage 1,717KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete