User Details
- User Since
- May 9 2021, 11:40 PM (108 w, 3 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- AndrewDBate [ Global Accounts ]
Jan 13 2022
I have just determined that my suggested workaround is not required when using MediaWiki 1.36.1 and Nginx.
@maiden_taiwan Thank you very much for confirming this. You have confirmed that my suggested workaround is not required when using MediaWiki 1.37.1 and Apache.
It would be interesting to determine whether the same can be reproduced when using Nginx as the webserver.
That is very impressive @maiden_taiwan!
Dec 28 2021
I think that because it is a private wiki, then if you can GET a page without additional authorization then that should be enough to prove that VisualEditor has the required access. (But I am not an expert. Maybe someone else could confirm this?)
@maiden_taiwan I honestly don't know... Maybe there is something wrong with your TLS certificate config? Are you using Let's Encrypt or something else?
@UGOBOSS777 From what you have commented, what you have put in your LocalSettings.php file is not the same as the workaround I suggested. Please try the workaround as I originally commented:, i.e. replace the lines:
if ( $_SERVER['REMOTE_ADDR'] == 'XXX' ) { $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = true; $wgGroupPermissions['*']['writeapi'] = true; }
with those in my earlier comment:
if ( isset( $_SERVER['REMOTE_ADDR'] ) && in_array( $_SERVER['REMOTE_ADDR'], [ $_SERVER['SERVER_ADDR'], '127.0.0.1' ] ) ) { $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = true; }
If you could report back with whether that worked or not, so that it can help others struggling with this, that would be great. Thanks!
Oct 20 2021
Oct 11 2021
I agree it is worth trying a directory other than /tmp to save the log file.
Oct 7 2021
@Technoabyss Unfortunately not. I am running MediaWiki 1.36.1 and still need the workaround I posted.
@maiden_taiwan Okay, that's strange. The first step would then be to get $_SERVER['REMOTE_ADDR'] to print to a log with the correct value so that we can determine the value of $_SERVER['REMOTE_ADDR'] when a call is made to the REST API from the local machine (we cannot use echo for that because there is no page being loaded).
@maiden_taiwan Okay, good to know. Please do update this ticket if you ever figure out why $_SERVER['REMOTE_ADDR'] is empty in your LocalSettings.php but not when printed from plain PHP files.
Oct 4 2021
@maiden_taiwan That really is strange.
@maiden_taiwan So in the table of everything in the $_SERVER array near the bottom of the output of phpinfo() is it showing non-empty strings for $_SERVER['REMOTE_ADDR'] and $_SERVER['SERVER_ADDR']?
Oct 2 2021
@maiden_taiwan Are the production and testing servers identical, other than one is http and the other is https? Do both use Apache? Are you using IPv6? Or are you using IPv4 only?
Sep 23 2021
I have the same issue on MediaWiki 1.36.1.
Sep 8 2021
Why has this task been closed when the page at https://www.mediawiki.org/wiki/Extension:ElectronPdfService still clearly says at the top:
Sep 5 2021
I can confirm that I am having the same issue on MediaWiki version 1.36.1 on Debian.
May 9 2021
Another PostgreSQL user here. I am keen to get TimedMediaHandler working with PostgreSQL. Is there anything I can do to help?