Topic on Project:Support desk

"Someone else has changed this page..." after moving wiki to new server

9
Ubc ue (talkcontribs)

Hi,

I moved the wiki to a new server, all looks fine, but when I try edit pages I always get this message

Edit conflict: ... Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Only the text in the upper text area will be saved when you press "Save page".


System info (Ubuntu server): MediaWiki 1.22.4 PHP 5.5.9-1ubuntu4.7 (apache2handler) SQLite 3.8.2 with full-text search support

I googled around but with no success.

Thanks in advance.

Ubc ue (talkcontribs)

Hi all, I'm really out of ideas. There are no system error massages. It seems a DB thing (I'm using SQLite), but can't see where the issue is.

Any hint would be appreciated.

thanks.

Ciencia Al Poder (talkcontribs)

Is your wiki public? A link to it may help us test the problem.

When editing a page, view the HTML source of the page from the browser, and find two hidden inputs, that should be near the edit area:

 <input type='hidden' value="20150324104020" name="wpStarttime" />
 <input type='hidden' value="20150306172305" name="wpEdittime" />

Search for those input names, and look at the values (the value should change for you). wpStarttime contains the time when you started editing the page, and wpEdittime contains the time of the last revision of the page when you started editing. Both are timestamps in UTC time. wpEdittime should happen before in time than wpStarttime. If not, something is wrong in your database or the system time when you imported the database.

193.137.216.98 (talkcontribs)

Hi, many thanks for the feedback. Unfortunately the wiki is private and there is no public url.

Anyway I checked the source of the page when editing, and this is how it looks

<input type='hidden' value="20150324150924" name="wpStarttime" /> <input type='hidden' value="20140403224620" name="wpEdittime" />

so this detail seems ok.

Thanks again.

Ciencia Al Poder (talkcontribs)

See if you have defined in LocalSettings any of those settings and if the value is correct: $wgExternalDiffEngine, $wgDiff, $wgDiff3

193.137.216.98 (talkcontribs)
Ciencia Al Poder (talkcontribs)

I'm out of ideas. As a last resort, try to enable the debug log as explained in Manual:How to debug, to see if it gives some error condition or cause for the conflict. Another option is to try installing a new wiki under a different path and new database and see if the problem is reproducible.

85.243.208.188 (talkcontribs)

I enabled all debugging options and seen nothing (especially in the edit page). The only thing that shows is "PHP Notice: Uncommitted DB writes (transaction from DatabaseBase::query (DatabaseBase::query))" before logging in.

I noticed that also the same problem/message shows if trying create new pages.

I tested installing on the same server another mediawiki instance and it all works as expected.

Ciencia Al Poder (talkcontribs)

Well, that's interesting. The problem may be somewhere in LocalSettings.php then. Maybe the problem comes from one of the extensions. Try disabling all extensions, and then enable them one by one until you see the error again.

If without extensions the problem persists, it must be another setting. Try copying the same LocalSettings.php from where it works, changing the settings for the database, and then import settings one by one.

Reply to ""Someone else has changed this page..." after moving wiki to new server"