Hi, I'm not sure but is it possible to set a message for every page in a namespace? For example for all talk pages, there is a message at the top of the page.
Message (notice) for namespaces
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.
I have just set up MediaWiki (1.29.0) on an AS400 IBM i machine. Though I can navigate the site, as well as create/edit pages, I cannot log in or create a new account. Every attempt to do so gives me "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."
I have tried adding "session_save_path("tmp");" to LocalSettings.php, as well as play with values of $wgMainCacheType and $wgSessionCacheType with no luck. Currently, my shared memory settings in LocalSettings.php have only these two lines:
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = ;
How can I fix this? I believe my CSRF token is not being correctly cached in my session, but I'm not sure how to correct it.
I am using MariaDB as a database, Apache for the server, and PHP 5.5.37.
If you have $wgMainCacheType = CACHE_ACCEL; you should provide a persistent data storage in $wgSessionCacheType
I have $wgSessionCacheType = CACHE_DB;
I've been able to look into my objectcache table, and found that MWSession is being stored correctly, (as in it's the same value as <my-wiki>_session in the response header's cookie). Is there another location where that value is written/read? I figure since I know it's being cached, but my comparison is still failing, that the fault is probably in getting/setting whatever value the cached token checks against, right?
Also, for what it's worth, I've since tried installing MediaWiki using version 1.27.3, but I'm still facing the same problem.
Another update: I've been fiddling with the source code to see if I can narrow down where my problem is occurring. This is what I'e found:
AuthManagerSpecialPage::trySubmit() is where the token mismatch is caught. $requestTokenValue and $sessionToken are not the same
setting $secret in Token::__construct to some constant allows me to sidestep the "hijacking" error, but in it's place is the error "Cookies may be disabled. Ensure you have cookies enabled start again" (my cookies are enabled), as well as the warning "You are already logged in as <username>. Use the form below to log in as another user" ("log in" changes to "sign out", but navigating away from the page at all signs me out). Supplying an incorrect password or username yields the appropriate error there, so WikiMedia is correctly able to check my credentials.
Obviously, making $secret a constant wasn't going to solve my problem, but hopefully faking it through the first error can shed some more light on what's actually going wrong.
Be sure that
session.referer_check is set to Off in php.ini, this can cause such invalid session problems.
setting a debug log may give some details.
"$wgEnableScaryTranscluding = true" brings down wiki
Here I got the advise to use Scary Transcluding to exchange content between wikis.
After a lot of confusion I understand now, that Extension:Interwiki will not make redundant to set "$wgEnableScaryTranscluding = true" in LocalSettings.php.
However, as soon as I set the command, my wiki will deliver an error screen with the following message:
Diese Seite funktioniert nicht localhost kann diese Anfrage momentan nicht verarbeiten. HTTP ERROR 500
Can you give me advise how to solve the problem or at least where to look for the cause?
Thank you in advance!
That's why it is called scary transclusion. It is incredibly inefficient, and in fact, the variable itself is a way to scare off people from using it:
There were no results matching the query.
Hi , I am working on my own wiki site. I installed it using MS SQL Server as DB.
The only problem is it failed to do content full-text searching, no matter what key words I typed in (I am pretty sure some pages contains the key words), it just gave 'There were no results matching the query.' No searching results shown.
What's wrong with it? Could somebody help me?
Plus, I use
Nginx 1.10.2 + Microsoft Sql Server 10.50.2550.0 + PHP 7.0.15-nts-Win32-VC14-x86 + MediaWiki 1.27.1
The only extra modification I made is I cut the oi_name,oi_archive_name length from 255 to 225 because of the problem
Error: 1945 [SQLSTATE 01000][Error Code 1945][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Warning! The maximum key length is 900 bytes. The index 'oi_name_archive_name' has maximum length of 1020 bytes.
I am not sure if this is the cause for that.
Thanks in advance.
Can anyone help me?
When I check the table 'searchindex' , I found all content is messy code.
Is it the problem of failing to make full text searching? How may I fix it?
Sounds more like a configuration issue with charset or collation to me (see more info in the bug report)
Error code: 127
I will look on that.
What option is the best for creating thumbnalis?
JPEG (using GD)
<math>-Environment Produces Errors
I just installed the math extension.
If I use the math-environment, it produces errors.
An empty math-environment will be processed correctly, but as soon as it gets any content, e.g. <math>a</math>, it produces error messages like
Datenbankfehler Es ist ein Datenbankabfragefehler aufgetreten. Dies könnte auf einen Fehler in der Software hindeuten. [c5d579b6c896fd685d557fa0] 2017-08-20 14:21:29: Fataler Ausnahmefehler des Typs „DBQueryError“
sudo -u www-data php update.php returned
MediaWiki 1.28.2 Updater Your composer.lock file is up to date with current dependencies! Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information
Can you suggest me a solution?
Thank you in advance!
Add js var that page was edited or created
How would I add a js var to the head that the page was edited or created via an extension?
I need to trigger the page that is loaded for the contributor after he edited or created a page.
- Would be easy to add the age in seconds I guess, but that could be incorrect at times.
- Add url parameter to the viewed article after edits?
You can use
mw.config.get( 'wgPostEdit' ); to know if the user just edited a page. It can contain:
I get only null and true (MW 1.25), but that's enough for me. Thanks!
It seems prior to 1.30 the type of edit is kept in the cookie
'PostEditRevision' + wgCurRevisionId.
No one can edit, despite having permissions
Today a bug was reported to me where when editing a page, it told them (another Sysop) that they did not have permission to edit it. I checked, and they're still a sysop. What's more is, this is effecting every single user on the wiki, including myself, and we all still have our permissions. The edit button is gone, but when viewing the source of a page, or trying to create a new one, we get "The action you have requested is limited to users in one of the groups: Users, Administrators, Bureaucrats, editor." despite belonging to those groups.
I have no idea why this is happening. I tried disabling cloudflare, but it doesn't seem to have any effect. The site is not in read only mode either, this happened out of the blue this morning.
Cloudflare should have nothing to do with this. Are you sure no settings in LocalSettings.php were changed before this? The only logical explanation is that a setting changed.
$wgReadOnly is off/commented out, so it's not that. I have not touched anything regarding permissions in several months. The only things I've changed recently is adding the extensions Number Format, Category Test, Labeled Section Transclusion, and DynamicPageList. It all worked fine when I installed them.
Is there anything in specific I should look for in my LocalSettings.php?
As a test, you should try temporarily disabling all extensions to make sure that it is not an extensions problem. An older version of Extension:Lockdown was one extension which caused similar rights issues.
error "forbidden" when modify pages with geohack links
When i try to insert in my page many Geohack links (example: http://tools.wmflabs.org/geohack/geohack.php?language=it&pagename=Rofelle¶ms=43.740911_N_12.155430_E_type:adm3rd_scale:50000&title=Rofelle) i receive error reported below
Any idea of the problem? Mediawiki thinks that someone trying a SQL injection?
page with problem: http://www.scoutmorciano.it/storia/Campi_estivi
You do not have permission to access this document.
Can't install plugin
Hello, I've downloaded the program. When it wouldn't open an image with an FPX extension, I downloaded the FPX plugin. It downloaded a zip file containing FPX.dll. I tried copying the FPX.dll into the plugins folder, but it would not paste. How do I install the plugin? I've looked all over your site for instructions, and found the page that said that the plugin should be in the Plugin folder, but I can't get it in there! Thanks. Rhonda Fleming, firstname.lastname@example.org.
My post is in reference to the program XnView!
Welcome to the support desk for the MediaWiki software. For questions about XnView, please ask in an XnView forum.