Topic on Project:Support desk

Visualeditor issues due to nginx???

3
Gjtokkel (talkcontribs)

Hi,

I am running wiki 1.35 php7.4 and cannot get visualeditor properly to work. I had to disable it. Apparently the issue is that the rest api is not called correctly. I am wondering whether this is due to nginx.... my phpinfo shows:

$_SERVER['SERVER_SOFTWARE'] nginx/1.10.3

Here: Parsoid I did read: "If you're serving MediaWiki with Nginx, you'll need to also add something like this to your server conf:"

location /rest.php/ { try_files $uri $uri/ /rest.php?$query_string; }


Do I need to ask my provider to add this in de nginx config in order to make visualeditor work? Is there any way I can find out myself?

Nicholaslue (talkcontribs)

How is it not working properly? The visual editor loads in the page but won't read existing content and adds a bunch of code to the page upon saving.

68.145.238.178 (talkcontribs)

Same problem using nginx with Ubuntu Server 20.04 and visualeditor. What worked for me was to install additional php components:


sudo apt install php7.4-mbstring php7.4-xml php7.4-fpm php7.4-json php7.4-mysql php7.4-curl php7.4-intl php7.4-gd php7.4-mbstring texlive imagemagick

Reply to "Visualeditor issues due to nginx???"