Topic on Project:Support desk

RyanKunk (talkcontribs)

i have been having a few issues lately. My first is that my page formatting is coming up plain text

the site is ditwiki.com

MediaWiki 1.25.1
PHP 7.3.13 (cgi-fcgi)
MySQL 5.5.62-log

any help is appreciated

This post was hidden by 103.123.170.247 (history)
Malyacko (talkcontribs)
Bawolff (talkcontribs)

check your php error log for "headers already sent" error.

RyanKunk (talkcontribs)

ok so it seems like my wiki links are pointing to /wiki/ThisPage instead of /ThisPage i know this is a simple fix but i cant remember how to do it

RyanKunk (talkcontribs)

ah i found it. changed $wgArticlePath to "/$1"

RyanKunk (talkcontribs)

but now when i try to go to the login page i get this error


Index.php

Jump to navigationJump to search There is currently no text in this page. You can search for this page title in other pages, [index.php?title=Special:Log&page=Index.php search the related logs], or [index.php?title=Index.php&action=edit create this page].

RyanKunk (talkcontribs)
Bawolff (talkcontribs)

that seems like a combination of rewrite rules being wrong and $wgServer (and maybe $wgScriptPath) being wrong.

RyanKunk (talkcontribs)

Does this help? these are my settings currently


$wgScriptPath = ".";

$wgScriptExtension = ".php";

$wgArticlePath = "/$1";

$wgServer = "localhost";


here is my htaccess


RewriteEngine On

AddType x-mapp-php5 .php

DirectoryIndex index.php

RewriteRule ^(.*)\&(.*)$ $1\%26$2

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule (.*) /index.php?title=$1 [L,QSA]

RewriteRule ^$ /Main_Page [R]

Bawolff (talkcontribs)

well for starters, wgServer should include a protocol (http://localhost or https://localhost

wgScriptPath should not be ".". Just make it be the empty string ""


Im not sure what RewriteRule ^(.*)\&(.*)$ $1\%26$2 does in practise but i suspect that might cause problems

Ciencia Al Poder (talkcontribs)

If you set $wgServer = "localhost";, your wiki will only be accessible from "localhost" (the own server) and not from external clients.

You should set $wgServer to the public accessible URL of the wiki (probably ditwiki.com).

Ciencia Al Poder (talkcontribs)

Looks like you've already fixed that. You should look at Manual:Combating spam, since it seems your wiki is being attacked by spambots.

Reply to "formatting help"