Page 1 of 1

PHP Warning emitted after page redirect

Posted: Thu Jan 16, 2025 3:19 pm
by thedoh
Articles thart redirect (ex: "There is no spoon (Achievement)", "So long and thanks for all the fish (Achievement)"), to other pages such as to "Achievements" will show the following PHP warning

Code: Select all

Notice: Unexpected clearActionName after getActionName already called in /var/www/wiki.factorio.com/includes/context/RequestContext.php on line 338
Reproduction steps:
  1. Go to https://wiki.factorio.com/There_is_no_s ... hievement)
  2. Notice that you are redirected to https://wiki.factorio.com/Achievements
  3. Notice that there is a PHP warning in black at the top of the page
  4. Notice that some CSS styles on the article are not being applied correctly to text.
Note: I am not logged in to the Wiki.

Browser/OS version/JavaScript version info: Vivaldi 7.0.3495.29 (Stable channel) (arm64) on macOS Version 15.2 (Build 24C101) with javascript version V8 13.0.245.25

Re: PHP Warning emitted after page redirect

Posted: Thu Jan 16, 2025 4:30 pm
by eugenekay
I believe this is the same as 125819 - the PHP configuration on the Wiki web server has “display_errors” set to True; which is an anti-pattern for public websites.