Jump to content

Topic on Project:Support desk

Wiki pages with somewhat long titles error when saving

15
Kupirijo (talkcontribs)

Hello,

I have upgraded to MediaWiki 1.39.7 with the following components:

Product Version
MediaWiki 1.39.7
PHP 7.4.33 (apache2handler)
MariaDB 10.5.25-MariaDB
ICU 74.2

I have been getting errors from the web browser such as "The connection was reset" when I try to edit and save pages with somewhat long titles (about 30 characters). Note that the titles are in the Greek alphabet, so I do not know if this plays a role regarding the size of character encoding. From what I read online, the maximum size for a page title is 255 bytes.

Also sometimes when saving is successful, I get lines of the form "<<<<<<< /private/var/tmp/merge-old-6jssyq" incorporated into the page's contents.

Note that I did not have problems of this sort with older versions of MediaWiki (or MySQL). I also do not have any problems with pages that have shorter page titles.

Any help on the matter is appreciated.

Thank you in advance.

TheDJ (talkcontribs)

> I get lines of the form "<<<<<<< /private/var/tmp/merge-old-6jssyq" incorporated into the page's contents

This sounds like you have a git merge conflict in a file of your mediawiki installation.

Kupirijo (talkcontribs)

Thank you @TheDJ

Could you explain how git is involved in this error please? Aren't characters "<<<<<<<<" and ">>>>>>>>" used more widely and not only in git?

Btw, this type of lines appears in the source of a wiki page, when I am editing a section of the page.

TheDJ (talkcontribs)

merge-old is what was triggering me. That is the prefix for the filenames that git uses when encountering two conflicting versions.

Bawolff (talkcontribs)

Greek characters are 2 bytes each. 30 character greek title = 60 bytes. So its probably not a length issue.

It could also be something going wrong with edit conflict merging which also uses diff3 (and uses the merge-old-xxxxx convention), but i've never heard that happening before. See also manual:$wgDiff3


Can you check your php error log.

Kupirijo (talkcontribs)

Thank you. I checked /var/log/apache2/error.log

and I get

[Thu Jul 11 08:52:19.418457 2024] [core:notice] [pid 137] AH00052: child pid 21546 exit signal Segmentation fault (11)

[Thu Jul 11 08:52:19.418818 2024] [core:notice] [pid 137] AH00052: child pid 21052 exit signal Segmentation fault (11)


Also I have the following values in LocalSettings.php

## Shared memory settings

$wgMainCacheType    = CACHE_NONE;

$wgMemCachedServers = array();


Thank you in advance.

Bawolff (talkcontribs)

Debugging php segfaults can be pretty difficult if you arent familiar with php internals. Normally i suggest updating your version of php to see if that helps.

Kupirijo (talkcontribs)

Thank you. Shall I update to PHP 8.1?

Want (talkcontribs)

What is the distribution on the server? Or do you operate in a container?

Kupirijo (talkcontribs)

Hi. By "distribution" do you mean the current version of PHP? If yes, it is on the first message in the thread (7.4.33 (apache2handler)). I am running the wiki locally (MacOS).

Want (talkcontribs)

Ok. If MasOS used, probably is created any container. It is possible that something is missing from it.

Want (talkcontribs)
Kupirijo (talkcontribs)
Want (talkcontribs)

Yes, but not use bitnami prefabricated package. It's Debian on a VM, with MW instalation from Git repositories.

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Bawolff (talkcontribs)

Its worth a shot.

Reply to "Wiki pages with somewhat long titles error when saving"