Topic on Project:Support desk

Not getting the updated content after clicking SAVE

17
212.24.153.58 (talkcontribs)

Not getting the updated content of an edited web page after clicking SAVE. Although the page gets created/saved. I can't create web pages the normal way.

1Roso (talkcontribs)

versions: MediaWiki 1.26.3 PHP 5.6.28 (apache2handler) MySQL 5.7.13-log ICU 57.1 OS Windows Server 2012 R2 Standard Installation using XAMPP

Issue confirmed using Chrome and IE.

31.55.5.11 (talkcontribs)

1.26.3 is an ancient, unsupported, insecure software version. Please update to a supported secure software version.

AhmadF.Cheema (talkcontribs)

Is there any error given when you hit "Save"?

See Manual:How to debug, to get more detailed information about any errors occurring in the background.

1Roso (talkcontribs)

Nope, no indication at all. The same happens after clicking on LOGIN (in that case I just have to click on any link available and then the status of logged user gets changed correctly).

It is a fresh installation :(

Does MediaWiki provide any logs I can check?

AhmadF.Cheema (talkcontribs)
1Roso (talkcontribs)

I can see one thing at the end of debug log:

[gitinfo] Computed cacheFile= for <path>

[gitinfo] Cache incomplete for <path>

Is there anything I should look for specifically?

Console, Queries, PHP includes logging seems to be without any errors.

Ciencia Al Poder (talkcontribs)

Looks like your browser is caching the pages more than they should. Try hitting CTRL+SHIFT+R when you see a stale page, it should force the browser to get the updated version of the page

1Roso (talkcontribs)

I tried it now also from my mobile and it behaves the same way :(

I have tried the CTRL+SHIFT+R hint, but it still behaves the same way.

1Roso (talkcontribs)

Also, my settings in LocalSettings.ini for cache is NONE

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = array();

Also, I have done "php rebuildall.php" command as well... Did not help :( Any thoughts?

Ciencia Al Poder (talkcontribs)

So, to be sure I understand, you have a page with text like "AAAAAA", you edit it so it says "ABBBB" and after saving it still displays "AAAAAA", even after clearing the cache or using another browser, but editing the page displays "ABBBB"?

1Roso (talkcontribs)

Good point. I haven't said what happens with the saved page. Yes, the changes are actually being saved, but the redirect after SAVE does not happen.

I can see this URL in the browser for instance while being on the login screen (is that the correct one?):

<server>/MWiki/index.php?title=Special:UserLogin&returnto=Main+Page

This address appears after clicking on SAVE while not entering requested change summary (I have it configured so). If I enter some text and hit SAVE again, I see that for 1 second the page is doing something (like loading stuff) but then loading finishes and nothing changes. No redirection to the actual page. It stays in the editing phase.

<server>//index.php?title=Main_Page&action=submit

Ciencia Al Poder (talkcontribs)

I'm more confused now. So you say that after saving the page you're redirected to login? If your wiki requires login to edit and you are logged off in the middle of an edit, you aren't redirected to the login page. Usually you're presented with a read-only edit screen. And neither if your wiki requires login to view pages (you simply get an error saying you must login to view pages).

Can you also give details about the "clicking on SAVE while not entering requested change summary (I have it configured so)" part? Is this an extension or some configuration?

If after hitting save the page starts loading and then stops, but the page isn't reloaded at all (i.e.: you still have the focus on the button and scroll of the page is maintained) then the webserver has probably segfault and the connection terminated. This is usually caused by a bug in PHP, any of its extensions (xcache or similar) or the webserver itself. The webserver's error log might tell you more about this

1Roso (talkcontribs)

The issue happens on many occasions. First is in the login screen (hitting login button makes the login successful in the background, but the page is not being redirected to the main page). Then while editing any web page, doing changes and then hitting SAVE button (the SAVE action happens in the background, but the page is not being reloaded to see the edited page).

I have tried to get every logs I could as suggested in replies above, but no error, no issue seems to be found... I'm just a beginner and I'm lost a little bit. I'm thinking about doing a full reinstall, including new database and start from scratch...

Will try to upgrade PHP. Upgrade of MediaWiki to 1.28 did not resolve the issue.

Ciencia Al Poder (talkcontribs)

Open the developer console of the browser (hit F12) and on the network tab see what happens when you submit the form. It displays the response of the server. Maybe you get a connection reset or something, or it never loads. In that case it's a server fault, not a configuration / programmatic error in MediaWiki.

1Roso (talkcontribs)

I have uninstalled XAMPP, got newest one with PHP 7.0.13, retaining MySQL database used b4, all works now. But what was causing it is unknown.

1Roso (talkcontribs)

Have compared the two LocalSettings.php files (old and new) and saw a difference in typo in address for $wgServer variable... that could be it.