Author Topic: Is there a problem on forums?  (Read 16862 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Is there a problem on forums?
« on: March 27, 2021, 07:46:19 pm »
I can use the forums normally from my phone. But from my PC,  using Firefox, Edge or Chrome it's not usable because I obtain often a Database Error, telling me to report this To an administrator. I tried several things as changing user, resetting the cache... until now nothing works except my phone browser !
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Is there a problem on forums?
« Reply #1 on: March 27, 2021, 07:58:54 pm »
Works OK here with Firefox 87 on Windows 7 and Windows 10

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Is there a problem on forums?
« Reply #2 on: March 28, 2021, 09:07:19 pm »
Works also nice for me...

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a problem on forums?
« Reply #3 on: March 29, 2021, 01:40:45 pm »
works OK here, either from phone or Windows 7 with Firefox.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #4 on: March 29, 2021, 03:25:53 pm »
I continue to have problems and now also from my phone. I have the feeling that it comes from my internet link because it's happen when i use my box. This message is written directly using mobile data on my phone and stopping wifi connection. Quite strange because only the connection to codebblocks forums has this Database Error. All other Internet links work...
« Last Edit: March 29, 2021, 03:27:41 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline New Pagodi

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Is there a problem on forums?
« Reply #5 on: March 29, 2021, 11:26:28 pm »
I also can't read the forum.  If I clear the site data and log in again, I can load maybe 1 page before I get nothing but database error messages.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a problem on forums?
« Reply #6 on: March 30, 2021, 12:40:30 am »
I see some icon issue:

Do you guys have your own forum icon?
I see most of the forum users have a "Question mark icon". For example, in this thread,  New Pagodi, gd_on, BlueHazzard and Miguel Gimenez's icon are all question marks.
I can see my own icon shown correctly.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #7 on: March 30, 2021, 10:00:34 am »
I have no avatar set (no icons) . But some other users have the same configuration and forums work for them. More, if you see a question mark you see the forums with the new look? For me, that was the case last week during 3 or 4 days but now i see them with the old look. But this is not the real problem even if i don't see in my profile if i can change that. As told before the only way i found to communicate with forums is through mobile data on my phone... it's realy tedious!
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: Is there a problem on forums?
« Reply #8 on: March 30, 2021, 11:40:30 am »
Could you hook your PC to the mobile data and open the forum like that? I suspect your ISP might be doing something...

In an ideal situation you could compare the network requests and the received page contents via your ISP and your mobile data.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #9 on: March 30, 2021, 12:21:48 pm »
Yes, I'm able to connect to the C::B forums through mobile data of my phone. But I have to do that from an other PC because my main one is a desktop without bluetooth !
On that other PC, a laptop, I have to connect it to my phone via bluetooth, declare my phone to share the internet connection via mobile data.
OK ... but it's also tedious, and apparently I'm not alone with this problem : New Pagody seems to have the same problem. And of course, only guys able to connect to forums can tell you that they have a problem ! Sometimes, it seems to work, but in the "best" case, after filling a new post, you obtain this Database Error when clicking on the "post" button ! very frustrating !
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is there a problem on forums?
« Reply #10 on: March 30, 2021, 08:56:12 pm »
"Database Error" sounds like something failing on the server, which doesn't seem like something related to the connection between you and the server.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #11 on: March 31, 2021, 10:06:25 am »
I agree with you.
But why using mobile data from my phone works and standard internet access from my PCs does not (laptop, desktop and even my phone if I use Wifi to use my box). Not easy to understand.
It's also true that this happend after the switch to a new forum look, and switch back to the old look. But, is it related ?
More, I obtain also this "database error" when I am connected as a guest, not with my account.
I have also remarked that at the bottom of the main forums page, I can see that the number of guest is generally quite high but the number of registered connected users is generally very low (2 or 3 max). If I remember well, it was not like that. But this is just a feeling, maybe. Have you connection statistics to see this: This may indicate some connections problems.

PS : re-reding https://forums.codeblocks.org/index.php/topic,24422.msg166571.html#msg166571, I see how to switch between forum looks. But, the problem is not there !
« Last Edit: March 31, 2021, 10:36:27 am by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #12 on: March 31, 2021, 07:27:26 pm »
An interesting test : on the SMF forum itself, for example on https://www.simplemachines.org/community/index.php, I have no such problems. So, my feeling is that there is something wrong on the C::B forum server. A problem during last week migration maybe.
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #13 on: April 01, 2021, 03:50:15 pm »
May be I have found a way to make it work again on my PC. Just a workaround ?
In the configuration of my Ethernet card, I desactivated Internet protocol IpV6 to keep only IpV4 activated. Like that, it seems it work. Very strange !
« Last Edit: April 01, 2021, 03:53:42 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Is there a problem on forums?
« Reply #14 on: April 01, 2021, 03:51:21 pm »
My ISP does not have ipv6 so i can not test this...

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: Is there a problem on forums?
« Reply #15 on: April 01, 2021, 04:52:29 pm »
This could very well be the reason, I also don't have an IPv6 address... Hmmm!

Offline New Pagodi

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Is there a problem on forums?
« Reply #16 on: April 01, 2021, 06:11:12 pm »
ipv6 does seem to be the problem.  Based on this post, in firefox's about:config page, I created the new field

Code
network.dns.ipv4OnlyDomains
and set its value to

Code
forums.codeblocks.org
and I can browse the forum again.

« Last Edit: April 01, 2021, 06:13:30 pm by New Pagodi »

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Is there a problem on forums?
« Reply #17 on: April 01, 2021, 07:56:31 pm »
Cool for firefox. Do you know how to do the same configuration in other browsers : chrome, Edge, ... Of course, in Ethernet configuration, but it switch off all ipv6, so less elegant !

Also, an other problem, but on the wiki this time. I  can navigate it, but I can't connect to the wiki (in case I want to modify/add something) : top button "Anonymous" does not do anything. Did I forget something (how to connect) or is it a migration problem ?
« Last Edit: April 01, 2021, 07:59:13 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Is there a problem on forums?
« Reply #18 on: April 01, 2021, 08:48:39 pm »
From the news, https://www.codeblocks.org/post/infrastructure-migration/:

Quote
During the migration, the forums will be in maintenance mode (no new posts) and the wiki will be in read-only mode.

Looks like it is still in read only mode.

Offline MaxGaspa

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Is there a problem on forums?
« Reply #19 on: April 01, 2021, 09:17:57 pm »
In the last few weeks I had a lot of with the CB   forum using Win7 and Firefox (latest) but no issues using Win10 and Edge (latest). I fix my issues on Win7 using the instruction in

https://support.mozilla.org/en-US/kb/firefox-cant-load-websites-other-browsers-can#w_ipv6

I set in about:config

network.dns.disableIPv6


to

true

and now everything is working fine.

Hope this helps

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: Is there a problem on forums?
« Reply #20 on: April 02, 2021, 05:39:38 am »
I suspect the server code is asking Cloudflare for the origin IPv4 and getting an empty result back when the connection is purely IPv6, which leads to the database error when the server is trying to track active users/guests. (I had this issue in a different project using Cloudflare, we had to ignore IPv6 users in the end...)

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: Is there a problem on forums?
« Reply #21 on: April 07, 2021, 05:32:14 pm »
"Forum stats" panel really doesn't like quotes:
Code
Latest Post: "Re: Error "quotThe project ..."
there's an extra "quot" word.
The original post name is
Code
Re: Error "The project file does not exist ..." when trying to open multiple project

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Is there a problem on forums?
« Reply #22 on: April 15, 2021, 04:50:56 pm »
After running this for some time now, i can confirm that i am still affected by that Database Error problem. Basically i can open a few threads, then i am greeted with the message:

Code
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

Using the above mentioned method to enforce the usage of IPv4 for forums.codeblocks.org solves the issue for me on the Desktop. However, i cannot change this setting on my mobile browser so i am still locked out on my mobile phone. This is the only website i experience this problem so im pretty sure this is a problem on your side. What i do not understand is why aren't there more reports about this? IPv6 connections should be pretty common these days, there should be more people affected?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Is there a problem on forums?
« Reply #23 on: April 15, 2021, 07:02:46 pm »
At least now the IP shown when posting is correct.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a problem on forums?
« Reply #24 on: April 17, 2021, 05:15:11 am »
I enable this option in my Firefox, but I still see this error.

I never see this error before, it only starts from tomorrow.

Sometimes, I can only reply, and some times I can't. I can't start a new thread in the "Help" user forums. Not sure why.

EDIT: for me, I see "network.dns.disableIPv6" is not the cause of the database error, it is some url text pattern error, see my next post.
« Last Edit: April 17, 2021, 05:40:26 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a problem on forums?
« Reply #25 on: April 17, 2021, 05:33:34 am »
I found a very strange issue, if my post contains such string, then, I will get the database error:

see the image shot below:

So, it means some special web link text pattern will cause the database error.  :(
« Last Edit: April 17, 2021, 05:38:38 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Is there a problem on forums?
« Reply #26 on: April 17, 2021, 11:26:00 am »
The problem may be with the square brackets or the strange character – , checking the modified link:

Bug 49951 <4.5/4.6/4.7 Regression> Debug stepping behavior regarding g++ Class destructor has changed for the worse starting at gcc 4.5.0

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Is there a problem on forums?
« Reply #27 on: April 17, 2021, 12:20:15 pm »
The problem may be with the square brackets or the strange character – , checking the modified link:

Bug 49951 <4.5/4.6/4.7 Regression> Debug stepping behavior regarding g++ Class destructor has changed for the worse starting at gcc 4.5.0

Good catch!
I can confirm this is the true problem of my "database error" issue.
Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline gaiusbonus

  • Single posting newcomer
  • *
  • Posts: 7
Re: Is there a problem on forums?
« Reply #28 on: May 12, 2021, 11:11:12 am »
I think you are mixing two problems.
One of them is the IPv6 issue.

After a transition period of 23 years for IPv6, the ISPs in my region (Germany) only use DS-Lite for new (private) contracts.
I just tried to use the search function with a DS-Lite -> database error
Then tried to use the search function with a Dual-Stack -> worked after telling firefox network.dns.disableIPv6 = true
Then tried to use the search function with an old Telekom 8!!MBit DSL with only IPv4 Support -> worked well.

The problem seems to be the missing IPv6 support in SMF 2.0. Found something here https://www.simplemachines.org/community/index.php?topic=575249.msg4071226#msg4071226...

PHP should not be the problem, because the server uses v7.3.24
Linux Mint 20.1 | code::blocks 20.03 | g++ 9.3.0-17ubuntu1~20.04

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Is there a problem on forums?
« Reply #29 on: May 12, 2021, 03:15:54 pm »
This seems to be a solution... https://custom.simplemachines.org/mods/index.php?mod=3051
best would be to update to SMF 2.1, but there is no official release...