Topic on Project:Support desk

Can't register after update to 1.28 and other problems

14
Innosflew (talkcontribs)

I updated to mediawiki 1.28 and I also updated all of my extensions, and now I'm suddenly getting this error with large pages with a lots of images and media on them when I try to enter visual editor: it's starts to load but after a while it gives an error message just saying "http" and if I click "OK" I can see the toolbar of the visual editor but only some functions can be used and I cannot save the page because it gives me an error message. Sometimes I'm not even able to click on the save button at all.

I looked at the console of the inspect element tool of my browser and it gives the following error message:

[03189b8de32b5bb492e62d83] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point(anonymous function)

@ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4

But even on other pages where the visual editor works fine it gives one of the following error messages:

load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4 [d2979c18dcda8575beab441b] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point(anonymous function)

@ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4
[db7ad58cf5bfe16e19f5edc7] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point(anonymous function) 

@ load.php:4

Also, I use the Mobile Frontend extension and I aren't able to edit on mobile after I updated to 1.28. When I click on the update button it says that it's going to redirect me to the editor but instead it just puts me back on the page and doesn't enters the editor.

On the Mobile Frontend inspect element tool of my browser and it gives the following error message:

[535892abd104e02f9a314008] /load.php?

load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile:4 

debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point

(anonymous function) @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile:4
[ffe452c05196ce9b2bafeb7d] /load.php?

load.php?debug=false&lang=en&modules=mobile.search|skins.minerva.editor%2Cnotifications%2Cscripts%2…:4 

debug=false&lang=en&modules=mobile.search%7Cskins.minerva.editor%2Cnotifications%2Cscripts%2Ctalk%2Ctoggling%2Cwatchstar&skin=minerva&version=124nslz   BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point

(anonymous function) @ load.php?debug=false&lang=en&modules=mobile.search|skins.minerva.editor%2Cnotifications%2Cscripts%2…:4
Innosflew (talkcontribs)

People aren't able to register on my wiki either because of this problem. Every time they fill out the registration form and click on register it crashes. Pls help.

AhmadF.Cheema (talkcontribs)

The problem you describe for large pages sometimes happens because the parsing puts too much load on processor and memory resources of the server. Check your server logs to see if that isn't happening.

Are things working fine when these two extensions are disabled?

Innosflew (talkcontribs)

The problems with the visual editor on desktop seem to have been fixed by disabling $wgSessionsInObjectCache and $wgVirtualRestConfig['modules']['parsoid']['forwardCookies']. I don't remember why did I enabled them in the first place.

But the problems still persist with the Mobile Front end and at the registration. I'm still not able to enter editor on my mobile version, and people still not able to create accounts on my wiki, and the errors in my inspect element tool still showing at every page.

Innosflew (talkcontribs)

Also, the way the account creation crashes is that it takes me to a fully white screen with nothing on it, and if I hit F5 on that screen to refresh it takes me back to the registration screen where the following error is displayed: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."

And as I've said the following error messages are displayed in the inspect elemet tool of my browser on every page on my wiki no matter what I do: https://i.gyazo.com/bed75dbabde8807f81d049cc654fbd10.png

Innosflew (talkcontribs)

And as you suggested I disabled Visual Editor, Flow(since this requires Parsoid as well), and the Mobile Frontend, and while the error messages that were displayed in the inspect elemet tool of my browser went away people are still not able to register on my wiki.

AhmadF.Cheema (talkcontribs)

The issue could be related to this Topic:T75cloz7981b8i92.

Try setting $wgSessionCacheType = CACHE_DB; in your LocalSettings.php.

Innosflew (talkcontribs)

I set it to $wgSessionCacheType = CACHE_DB; and it's still not working.

Innosflew (talkcontribs)

Btw I found this on Manual:Load.php:

"Code executed via load.php should not rely on the user's session as its results will be cached and sent to other users. Starting from MW 1.28, this is enforced and a "Sessions are supposed to be disabled for this entry point" exception will be thrown if a session access is attempted. See these tips on how to fix."

So according to this the reason I'm getting those error messages in the inspect element tool is because I'm attempting a session access? How can I fix this?

Innosflew (talkcontribs)

Okay, so I updated my mediawiki core and all of my extensions to the latest master version(1.29.0-alpha) to test it out but the problems persist. Also now I'm also getting errors about the Flow extension:

PHP Notice:  Use of undefined constant CONTENT_MODEL_FLOW_BOARD - assumed 'CONTENT_MODEL_FLOW_BOARD' in /var/www/html/LocalSettings.php on line 213
PHP Notice:  Use of undefined constant CONTENT_MODEL_FLOW_BOARD - assumed 'CONTENT_MODEL_FLOW_BOARD' in /var/www/html/LocalSettings.php on line 214
[6e41278a3968bd2cf8dedf04] /User_talk:Innosflew MWUnknownContentModelException from line 347 of /var/www/html/includes/content/ContentHandler.php: The content model 'CONTENT_MODEL_FLOW_BOARD' is not registered on this wiki.
See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.

Backtrace:

#0 /var/www/html/includes/page/WikiPage.php(225): ContentHandler::getForModelID(string)
#1 /var/www/html/includes/page/WikiPage.php(212): WikiPage->getContentHandler()
#2 /var/www/html/includes/actions/Action.php(96): WikiPage->getActionOverrides()
#3 /var/www/html/includes/actions/Action.php(154): Action::factory(string, WikiPage, RequestContext)
#4 /var/www/html/includes/MediaWiki.php(151): Action::getActionName(RequestContext)
#5 /var/www/html/includes/MediaWiki.php(767): MediaWiki->getAction()
#6 /var/www/html/includes/MediaWiki.php(512): MediaWiki->main()
#7 /var/www/html/index.php(43): MediaWiki->run()
#8 {main}

I don't know what's going on.

83.135.225.133 (talkcontribs)

Contrary to what the error message claims, page Content_handlers does not mention the content model CONTENT_MODEL_FLOW_BOARD. It's obviously related to the Flow extension. Make sure that you have all related extensions installed!

See also Topic:Tayx84759za9dzn8!

Innosflew (talkcontribs)

I have everything installed and I see Flow on the Special:Version page. Also opened chrome console and I notices on the talk pages I have this error as well:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Also, on the latest master version(1.29.0-alpha) I tested out the editor both on Desktop and Mobile version seems to be working fine now, but I'm still getting the session errors in chrome console on every page for some reason:

load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:4 [00700a194de2e7c8c28d397f] /load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 846 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point

Also, people are still not able to register on my wiki, and many special pages aren't seem to be working.

AhmadF.Cheema (talkcontribs)

BTW have you already tried the debugging instructions here: Manual:How to debug?

The console errors are usually too generic to be of much help. Try setting the following in LocalSettings.php for more detailed error logs.

$wgShowExceptionDetails = true; $wgDebugToolbar = true; $wgShowDebug = true; 
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);
error_reporting(E_ALL);
Waanders (talkcontribs)
Reply to "Can't register after update to 1.28 and other problems"