vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Database problem (https://vborg.vbsupport.ru/showthread.php?t=50786)

tinbin 03-25-2003 08:36 AM

Database problem
 
When trying to change a user's status, i get this error:
-----
There seems to have been a slight problem with the Awesome Forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: SELECT userid
FROM user
WHERE username='ChRiS'
AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4

mysql error number: 1064

Date: Monday 24th of March 2003 04:43:14 PM
------

Can anyone tell me what to do to solve this problem or point me in the right direction ? :(

tinbin 03-25-2003 08:49 AM

Update:
I *think* the problem began when running this query in the database for the shoutbox:

CREATE TABLE `shoutbox` (
`shoutid` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`shout_text` text NOT NULL,
`timestamp` int(11) NOT NULL default '0',
PRIMARY KEY (`shoutid`)
) TYPE=MyISAM;

Since then my 'active users today' doesn't seem to be working either :(

Anyone able to help please?

Lesane 03-25-2003 10:34 AM

I think that this is a bug in 2.2.5 (<> empty), i recommend upgrading to a new version.

Xenon 03-25-2003 10:50 AM

Lesane is right, it's a bug with vb versions below 2.2.6 and php versions over 4.2.x

tinbin 03-25-2003 11:08 AM

Hmmm i never updated before...
Any tutorials for it or is it too easy?

Xenon 03-25-2003 11:11 AM

look at my sig, there is a lint to a tutorial :)

tinbin 03-25-2003 11:32 AM

another question: can i update directly from 2.2.5 to 2.2.9?

Xenon 03-25-2003 11:34 AM

yes, just follow the instructions in the tutorial for the files and then run the right upgrade srcipt (you can see which one to run after runnen any one of them ;))

tinbin 03-25-2003 11:50 AM

Ok, thank u for the help...
I'm upgrading now...
Fingers crossed :(

tinbin 03-25-2003 06:13 PM

I edited all the code with the program the way u described in your tutorial.
Do i need to install upgrade scripts too?
Just go to /admin/upgrade20.php for example and run it?
What if anything goes wrong with that? Can it be put back? or only by replacing db with an earlier one?


All times are GMT. The time now is 07:07 AM.

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.00996 seconds
  • Memory Usage 1,723KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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