PHP Warning emitted after page redirect

Anything related to the content on our wiki (https://wiki.factorio.com/)

Moderator: Bilka

thedoh
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Tue May 02, 2017 1:37 pm
Contact:

PHP Warning emitted after page redirect

Post 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
eugenekay
Fast Inserter
Fast Inserter
Posts: 150
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: PHP Warning emitted after page redirect

Post 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.
Post Reply

Return to “Wiki Talk”