Topic on Project:Support desk

Include custom page, or php or query custom database

3
Arviestarman (talkcontribs)

Hello,

Momentarily, I use Mediawiki 1.24.1 with the Include extension (https://www.mediawiki.org/wiki/Extension:Include) to include some custon php pages I have made which queries a database with some extra info (servers, patches, etc...). But, with the update to MediaWiki 1.24.2, this extension does not work anymore.

I know this is a security risk, but I only use this wiki in a restricted environment (which can not access the Internet), and, my pages are located in a subfolder in my wiki (extrawikidocs). Also, I have some pages which can update the database (patch date,...).

Is there another (more secure) extension for adding extra php content?


Thank you in advance!

AKlapper (WMF) (talkcontribs)

Could you elaborate on "this extension does not work anymore"? What is the shown behavior? Any kind of error messages? Also see Manual:How to debug.

193.191.187.200 (talkcontribs)

There are no messages on the screen, neither in the log file. When I add the lines for PHP and SQL logging, also nothing is on the screen. Also logging to a file does not give any info.

When the Extension:Include is active, after upgrading to 1.24.2, I get a BLANK screen. Whhen I comment the require_one in the LocalSettings (require_once("$IP/extensions/secure-include.php");), my wiki works (without the included pages).

Reply to "Include custom page, or php or query custom database"