User Details
- User Since
- Apr 12 2016, 10:51 PM (453 w, 6 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- Ofbeaton [ Global Accounts ]
Feb 19 2019
Thank you! Looking at the code there, I'm glad I wasn't going crazy and this was a legit bug.
Feb 18 2019
here's the full SQL generated by the above query:
SELECT `_pagename` AS `_pageName`,`Role__full` AS `Role` FROM `cargo__Contacts` `c` WHERE c.`Username` = 'Ofbeaton' ORDER BY `_pageName`,`cargo__Contacts`.`Role__full` LIMIT 100
This error doesn't seem consistent, some of my queries with the list work, but the above one does not.
Fixing the DB to remove the namespace from the title, and setting the namespace column to the proper number in the pages table fixed my problem page.
I started trying to debug where my bad data is coming from, by inserting echo statements.
Feb 15 2019
Feb 12 2019
OK then, thank you for taking a look. I just tried to reintroduce the problem with my API and I can't recreate it simply. I'll close this for now.
Yup, then I got tons of output. ie Recreating data for Cargo table... But when api was borked I got nothing.
I tried the Recreate data tab and after I hit OK I got infinite spinner. I tried php extensions/Cargo/maintenance/cargoRecreateData.php and got no output even with debug on.
How frustrating. The problem I am trying to communicate is that the API PATH_INFO redirect shenanigans means that even a small misconfiguration on the server kills it. This is the only entry point that does this.
if I reintroduce fastcgi_param PATH_INFO $fastcgi_script_name; then when I call api.php my $_SERVER['PATH_INFO'] is /api.php
I guess to be safe in case the userpage array is not in there... you could do something like this instead:
$userName = $user->getName(); // Re-label some messages if ( isset( $personalTools['userpage'] ) ) { $userName = $personalTools['userpage']['links'][0]['text']; $personalTools['userpage']['links'][0]['text'] = $this->getMsg( 'timeless-userpage' )->text(); } if ( isset( $personalTools['mytalk'] ) ) { $personalTools['mytalk']['links'][0]['text'] = $this->getMsg( 'timeless-talkpage' )->text(); }
Yes please. This is how it is done in Vector and MonoBook.
Feb 11 2019
this line should likely also be changed
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Timeless/ /master/includes/TimelessTemplate.php#473
$headerMsg = [ 'timeless-loggedinas', $user->getName() ];