The International Simutrans Forum

Community => Community Discussion => Forum => Topic started by: Freahk on October 01, 2019, 11:52:53 AM

Title: Thanks function and Can't start new threads
Post by: Freahk on October 01, 2019, 11:52:53 AM
Hey there,
it seems that I can't use the thanks function anymore.
Whenever clicking on the heart button, nothing will happen no matter if I use firefox or chrome on my PC or my notebook.
Title: Can't create new Threads
Post by: Freahk on October 05, 2019, 02:20:59 PM
Well, this is the wrong thread, sorry about that.

I just wanted to report that currently, it seems that I can't create new threads.
I just get an error:
Quote
DATABASE ERROR
Please try again. If you come back to this error screen, report the error to an administrator.

Due to this, I obviously could not create an own thread for this and instead abused the reply to another Thread for this.
Title: Re: Thanks function and Can't start new threads
Post by: An_dz on October 06, 2019, 02:35:20 PM
There's some bug with IPv6 addresses. I'm guessing there's something to do with the database, but I have no idea what's going on.
Title: Re: Thanks function and Can't start new threads
Post by: ACarlotti on October 06, 2019, 03:23:11 PM
It looks to me like there is some very restrictive rate limiting - after a successful page load, I then get a database error for every attempted page load for at least a couple of minutes thereafter.
(Now to wait a few minutes before clicking 'post'.)
Title: Re: Thanks function and Can't start new threads
Post by: Isaac Eiland-Hall on October 08, 2019, 02:14:26 PM
I'm looking into this today. Will update with any news.
Title: Re: Thanks function and Can't start new threads
Post by: Isaac Eiland-Hall on October 08, 2019, 02:35:08 PM
Don't know why the "spam" field existed, but dropping it resolved topic creation.

(https://i.imgur.com/awYbg5v.png)

https://i.imgur.com/awYbg5v.png

I've also increased the resources for the forum to see if that helps.

No clue on the thanks. No php errors, so will have to try and dig into it. It may be a bit. :|

Hopefully this gets the forum back to a more usable state, though.
Title: Re: Thanks function and Can't start new threads
Post by: Freahk on October 08, 2019, 03:12:25 PM
I just inspected this in the frontend:
When I click the button, an XHR is started and replied with code 200 OK
It seems a whole page is returned including <head> and page header and footer menu bars.
I wouldn't expect this from an XHR but maybe it was implemented that way.

However, the body contains the following suspicious lines:
Quote
   <div id="fatal_error">
      <div class="cat_bar">
         <h3 class="catbg">
            An Error Has Occurred!
         </h3>
      </div>
      <div class="windowbg">
         <span class="topslice"><span></span></span>
         <div class="padding">Function name must be a string</div>
         <span class="botslice"><span></span></span>
      </div>
   </div>
Maybe searchcing for that "Function name must be a string" string helps.
Title: Re: Thanks function and Can't start new threads
Post by: Isaac Eiland-Hall on April 27, 2020, 12:03:48 PM
Like works again although it's not pretty at the moment.