Hi guys, Well I just reinstalled vBulletin 3.8.6, on top of the other.
I tried to make a new THREAD, after posting it says:

___________________________________________________________________
Database error in vBulletin 3.8.6:

Invalid SQL:
UPDATE session SET newposts = newposts+1 WHERE NOT ISNULL(newposts);

MySQL Error : Unknown column 'newposts' in 'where clause'
Error Number : 1054
Request Date : Monday, July 11th 2011 @ 01:01:27 PM
Error Date : Monday, July 11th 2011 @ 01:01:27 PM
Script : ...
Referrer : ...
IP Address :
Username : Admin
Classname : vB_Database
MySQL Version : 5.1.57
___________________________________________________________________

I have put a picture below, if it helps.
I hope you can help me, cos I have used a lot of time on this

Thank u so much, By MIKLO

Dani AI

Generated

The error indicates the query is referencing a column named newposts that does not exist in the session table. Given the reinstall over an existing site, the most likely causes are a schema mismatch (missing column), the code pointing at the wrong database, or an unexpected table prefix. ' suggestion to inspect the database is correct; should not publish database credentials on the forum.

Recommended troubleshooting steps (safe, ordered):

  • Make a full database backup before any change (phpMyAdmin export or mysqldump).
  • Confirm which database and table prefix the vBulletin code is using (check includes/config.php).
  • Inspect the session table structure with the database tools. Example checks:
-- replace yourprefix_ with the actual table prefix (or omit if none)
SHOW COLUMNS FROM `yourprefix_session` LIKE 'newposts';
DESCRIBE `yourprefix_session`;
SHOW CREATE TABLE `yourprefix_session`;

If the newposts column is missing, two non-destructive options exist:

  • Re-run the official vBulletin upgrade routine (visit /install/upgrade.php for the installed code version). This will apply any schema changes required by the codebase.
  • As a quick manual fix (only after a verified backup), add a simple integer column so queries can run:
ALTER TABLE `yourprefix_session`
  ADD COLUMN `newposts` INT UNSIGNED NOT NULL DEFAULT 0;

Notes and cautions: do not share DB credentials publicly. Prefer the official upgrade path because it preserves expected column types and other schema changes. After any schema modification, clear vBulletin caches or use AdminCP maintenance rebuilds so the board picks up the change. If the problem persists, paste the DESCRIBE output (with prefix redacted if needed) rather than credentials so the schema mismatch can be diagnosed further.

Recommended Answers

All 3 Replies

Check your database if the table and column is there. Run the query from phpMyAdmin or any other tool and see if you get the same error.

Hi, I am totally new in mysql,

Still am locked up, cant move on, any of you can help me, I can provide you my MYSQL PASSWORD and USERNAME

Did you ask this in the vBulletin forum ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.