A Few Warning

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
rxu
Extensions Development Team
Posts: 4044
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: A Few Warning

Post by rxu »

Maybe check it again to make sure there're no more non-existent users left here

Code: Select all

SELECT ug.user_id FROM phpbb_user_group ug LEFT JOIN phpbb_users u ON u.user_id = ug.user_id WHERE u.user_id IS NULL
Another idea is checking if there're users having no groups, like

SELECT user_id, username FROM phpbb_users WHERE group_id IS NULL or SELECT user_id, username FROM phpbb_users WHERE group_id = ''
User avatar
halil16
Registered User
Posts: 1504
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: A Few Warning

Post by halil16 »

Zero result.
User avatar
invenio
Registered User
Posts: 465
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA

Re: A Few Warning

Post by invenio »

I know that the official STK is no longer officially supported, I seem to remember there is still one in development that works with current versions of phpBB? If so, would that be an option to "clean" the database, see if that will resolve these errors? Just grasping at straws here.
rxu
Extensions Development Team
Posts: 4044
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: A Few Warning

Post by rxu »

halil16 wrote: Tue Jan 28, 2025 3:46 pm Zero result.

Then, may be check if there're bots which don't exist in users table:

Code: Select all

SELECT b.user_id FROM phpbb_bots b LEFT JOIN phpbb_users u ON u.user_id = b.user_id WHERE u.user_id IS NULL;
User avatar
halil16
Registered User
Posts: 1504
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: A Few Warning

Post by halil16 »

rxu wrote: Tue Jan 28, 2025 3:59 pm Then, may be check if there're bots which don't exist in users table:

Code: Select all

SELECT b.user_id FROM phpbb_bots b LEFT JOIN phpbb_users u ON u.user_id = b.user_id WHERE u.user_id IS NULL;

user_id
142464
142466
142468
142470
142472
142474
142476
142478
142480
142482
142484
142486
142488
142490
142492
142494
142496
142498
142500
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
rxu
Extensions Development Team
Posts: 4044
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: A Few Warning

Post by rxu »

Then alike before but for bots table with the given ids into IN() clause

Code: Select all

DELETE FROM phpbb_bots WHERE user_id IN ()
User avatar
halil16
Registered User
Posts: 1504
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: A Few Warning

Post by halil16 »

rxu wrote: Tue Jan 28, 2025 4:06 pm Then alike before but for bots table with the given ids into IN() clause

Code: Select all

DELETE FROM phpbb_bots WHERE user_id IN ()
Yes! Errors messages no longer occur in the file. Thank you very much for your help.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
halil16
Registered User
Posts: 1504
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: A Few Warning

Post by halil16 »

rxu wrote: Tue Jan 28, 2025 4:06 pm
Hey @rxu

The problem here always happens:
viewtopic.php?t=2659528

In rare cases (More than 2K according to GSC), I get the following error when entering a topic:

Code: Select all

General Error
SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1031
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 573
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 465
CALL: phpbb\db\driver\driver->sql_in_set()

FILE: [ROOT]/phpbb/auth/auth.php
LINE: 609
CALL: phpbb\db\driver\factory->sql_in_set()

FILE: [ROOT]/phpbb/auth/auth.php
LINE: 388
CALL: phpbb\auth\auth->acl_raw_data()

FILE: [ROOT]/viewtopic.php
LINE: 1679
CALL: phpbb\auth\auth->acl_get_list()
Sometimes a topic on the forum page, but when you click on it, it says not found. I've seen many topic links like this exist even though they shouldn't be listed.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6708
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: A Few Warning

Post by thecoalman »

Link to the forum and example topic you are getting this error?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
rxu
Extensions Development Team
Posts: 4044
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: A Few Warning

Post by rxu »

halil16 wrote: Tue Feb 11, 2025 3:44 am Sometimes a topic on the forum page, but when you click on it, it says not found.
You might want to try to resynchronise forums via ACP -> Forums tab.
halil16 wrote: Tue Feb 11, 2025 3:44 am In rare cases (More than 2K according to GSC), I get the following error when entering a topic
In theory, this is possible if topic has no posters on the page. But that shouldn't be possible unless there's some issue with the board, so probably related with those "not found" topics issue.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 4049
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: A Few Warning

Post by Kailey »

halil16 wrote: Tue Feb 11, 2025 3:44 am The problem here always happens:
viewtopic.php?t=2659528

In rare cases (More than 2K according to GSC), I get the following error when entering a topic:
It's hard to root out a cause for an issue if you keep refusing to provide a link to your board (and an example topic). You've had a habit in the past of hacking the core which no doubt may be the cause of the many support issues you've posted.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
halil16
Registered User
Posts: 1504
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: A Few Warning

Post by halil16 »

thecoalman wrote: Tue Feb 11, 2025 3:56 am Link to the forum and example topic you are getting this error?
PM sent.
rxu wrote: Tue Feb 11, 2025 7:08 am You might want to try to resynchronise forums via ACP -> Forums tab.
I actually did this and solved the problem and forgot about it. :) Sorry.
rxu wrote: Tue Feb 11, 2025 7:08 am In theory, this is possible if topic has no posters on the page. But that shouldn't be possible unless there's some issue with the board, so probably related with those "not found" topics issue.
It could be.
Kailey wrote: Tue Feb 11, 2025 3:36 pm It's hard to root out a cause for an issue if you keep refusing to provide a link to your board (and an example topic). You've had a habit in the past of hacking the core which no doubt may be the cause of the many support issues you've posted.
PM sent. This is a board where I have clean updated many times and have not edited any core files.

this is a board the same age as me. so... I have had authorization for the last 1 year.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6708
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: A Few Warning

Post by thecoalman »

What is the result of:

Code: Select all

SELECT * FROM `phpbb_posts` WHERE `topic_id` = 551
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
halil16
Registered User
Posts: 1504
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: A Few Warning

Post by halil16 »

thecoalman wrote: Wed Feb 12, 2025 9:40 am What is the result of:

Code: Select all

SELECT * FROM `phpbb_posts` WHERE `topic_id` = 551
Ekran görüntüsü 2025-02-12 125040.jpg

But user 2 does not exist.
You do not have the required permissions to view the files attached to this post.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
warmweer
Jr. Extension Validator
Posts: 12207
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: A Few Warning

Post by warmweer »

Just a thought: have you tried the unofficial STK for 3.3.14?
That runs some initial checks and could identify inconsistencies in the database (e.g. for the user anonymous, also resync the posts_table).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.

Return to “[3.3.x] Support Forum”