Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文
Summary by MacFan4000

off topic

MahindaDeSilva (talkcontribs)

I ma an Xmas light enthusiast in Brisbane Australia.Last chrisma a guy had done a good display and i talked to him with interest of doing a project this year. He sold me DMX512 Decoders with 27 camels (9x3RGM+common). I have bought 1000 RGB pixels from Ali Express as well.

Now the person whom I bought the decoders have left the town and I am helpless to do the rest of work.

I have the following;

RGB pixels

DMX512 27 chanel decorders

Power pack

I need to test Nutcracker sequences from computer. Other than above do I need any other controllers or consoles for the project please. Please educate me

DannyS712 (talkcontribs)

This is for support regarding mediawiki software, not general technical help

Remove user tabs for non-logged in users (Discussion-View-Edit-History-Refresh)

4
Spiros71 (talkcontribs)

I tried various solutions listed here Topic:Qji4lqoeaodggoft Including the code below in LocalSettings.php (which just hides, rather than removes), but it did not work (MW 1.31/Timeless Skin). Any way it could work in MW 1.31?

$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
  global $wgUser;
  if ( !$wgUser->isLoggedIn() ) {
    $hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
  }
  return true;
}
MarkAHershberger (talkcontribs)

As you can see from the documentation for the SkinTemplateSetupPageCSS, it was removed in MW 1.19.

Try this:

$wgHooks['BeforePageDisplay'][] = 'wfHideVariousTabsFromAnonymous';
function wfHideVariousTabsFromAnonymous( OutputPage $out, Skin $skin ) {
  if ( !$out->getUser()->isLoggedIn() ) {
    // addInineStyle is deprecated
    $out->addInlineStyle( 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }' );
  }
  return true;
}
Spiros71 (talkcontribs)

Thank you so much, Mark, works perfectly!

Moonriverzf (talkcontribs)

Tried completely half a day, various extensions and code, these codes here settled my problem, it really works! Thanks.

Paul Hema (talkcontribs)
Reply to "delete categories"
Squeak24 (talkcontribs)

Hi, I have recently discovered an issue on all my Wikis where I have two links next to each other pointing to the Help pages. I have only seen this so far happening on the category pages.

Is there anyway to get rid of one of these links?

Squeak24 (talk) 11:48, 18 November 2019 (UTC)

AhmadF.Cheema (talkcontribs)

Where exactly are these "two links" located on the category pages?

Also, what's your MediaWiki version?

Squeak24 (talkcontribs)

In the top right hand side of the page. If you go to the All skins page you will see it once.

Instead of it spearing once, I am seeing it twice. When I inspect the code, I am seeing the HTML twice. I have tried to look at the Vector template files but I can't find where it is called from.

The MediaWiki version is 1.31.

Any help is appreciated

Squeak24 (talk) 10:43, 19 November 2019 (UTC)

Reply to "Helplink duplication"
88.24.29.252 (talkcontribs)

Hi!


I'm seting up a private wiki (nly logged in users can read and edit it) on a free hosting (it's installed as an app ). After a few days, as I'm editing a page, whe I save I get this message:


"Sorry! We could not process your edit due to a loss of session data.

You might have been logged out. Please verify that you're still logged in and try again. If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site."


When I try to log out. I get this message: "Log out failed due to session error. Please try again."


Then I try to log in in a different browser and I get this message:


"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."


It has happened twice, after another clean install. I can't start it over again!


I've tried setting $wgSessionCacheType = CACHE_DB; in LocalSettings.php, but the problem is NOT solved.


System information:

MediaWiki: version 1.31.5

PHP: version 7.1.33 (cgi-fcgi)

MySQL: 5.7.20-log


I've installed only one extra extension: SimpleTooltip.


Can you help me?? Thanks!

Wargo (talkcontribs)

How long you are editing? Do you have enabled cookies on your computer?

88.24.29.252 (talkcontribs)

Idk, I've been editing all day until it has happened again.Cookies are enabled. The other users also can't login from their pcs.

FreshVegetarian (talkcontribs)

Do you know how much RAM you have to run the wiki? Could that be related?

88.24.29.252 (talkcontribs)

I couldn't find the specs, it's a free hosting. Do you think it can be a RAM problem?

Reply to "Can't login"

After upgrading to 1.33.1, the "l10n_cache" table is 783M, what is the problem?

4
45.135.186.39 (talkcontribs)

I just upgraded my website from 1.27.1 to 1.33.1, then size of the database reached over 800M, but my site is definitely not so big, I just checked the "l10n_cache" table alone is 783M, so what is the function of this table? how to reduce it?

Moonriverzf (talkcontribs)

Manual:L10n cache table

I found this link, so the content within this table could be deleted manually, without effecting the execution of the whole database?

Ciencia Al Poder (talkcontribs)

Yes, you can truncate this table, and the contents will be regenerated.

Moonriverzf (talkcontribs)

Yes, It's done. After truncate, the size is reduced to 2.5M immediately, and "delete *" doesn't work, should be "truncate".

Reply to "After upgrading to 1.33.1, the "l10n_cache" table is 783M, what is the problem?"
RoySmith (talkcontribs)

What's the best place to ask questions about the python mwclient? There doesn't seem to be a mailing list for it.

Reply to "mwclient support group?"

Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )]

8
Nooobie (talkcontribs)

Hello,

I need help :(

"I am using latest version of XAMPP on Windows Server 2008 R2 to deploy latest: mediawiki"

on localsettings.php

Using SSL:

  $wgSMTP = array(  
       'host' => 'ssl://smtp.gmail.com',
       'IDHost' => 'gmail.com',
       'port' => 465,
       'username' => 'my-email@gmail.com', 
       'password' => 'mypasswd',
       'auth' => true
    );

Got this error:

"Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )]"

Using TLS:

  $wgSMTP = array(  
       'host' => 'smtp.gmail.com',
       'IDHost' => 'gmail.com',
       'port' => 587,
       'username' => 'my-email@gmail.com', 
       'password' => 'mypasswd',
       'auth' => true
    );

Got this error:

"Mailer returned: authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]"

I also tried changing the [mail function] on C:\xampp\php\php.ini

and [sendmail function] on C:\xampp\sendmail\sendmail.ini.

but doesnt work. :(

//my antivirus and firewall is turn off//

Eckirchn (talkcontribs)

I have the same issue.

Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Permission denied (code: -1, response: )]

I am running Fedora 28, a clean install, and I have confirmed I can send an email from command line using

echo "Testing...1...2...3" | ssmtp XXXX@gmail.com

I am a bit confused

星耀晨曦 (talkcontribs)
Nooobie (talkcontribs)

dont work, i even tried swiftmailer, still doesnt work :(

Nooobie (talkcontribs)

got this error: Mailer returned: authentication failure [SMTP: SMTP server does not support authentication (code: 250, response: smtp.gmail.com at your service, [222.127.137.194] SIZE 35882577 8BITMIME STARTTLS ENHANCEDSTATUSCODES PIPELINING CHUNKING SMTPUTF8)]

Nooobie (talkcontribs)

can anybody help to solve this.. pls :(

星耀晨曦 (talkcontribs)

Hum, I mean that if you using TLS to sent mail and you got SMTP: STARTTLS failed (code: 220 error message, you can try to edit net_smtp code to avoid this error. I also encountered this error before.

FreshVegetarian (talkcontribs)
Reply to "Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )]"
105.66.134.110 (talkcontribs)

Hi, is it allowed to run a MediaWiki wiki for comercial use? For example, can I make ads on the wiki? Can I make the content copyrithed not open/under a free license? Can I disable the '''View source code''' feature for non login in users?

Thank you for help.

FreshVegetarian (talkcontribs)

As shown on https://en.wikipedia.org/wiki/MediaWiki, the MediaWiki Software is licensed under GPLv2+. This means that it is free software -- you can modify it however you like and use it for your own purposes, including for commercial use. See this page: https://www.gnu.org/licenses/gpl-3.0.en.html. You can see wikihow.com for an example of a commercial wiki. You choose how to copyright the content of your wiki, whether all rights reserved or in a CC license. I'm not sure how to disable the "view source code" feature for non-login users.

Reply to "Comercial uses"
Elienar (talkcontribs)

When accessing the website externally we have no problem viewing it and editing it, but when trying to access it from within the LAN it can't be loaded. We have tried loading it internally on a few different laptops: different OSes, different browsers, no luck. I'm not even sure where to start with this one.

We get the following error message:

This site can’t be reached

<domain name> refused to connect.

Search Google for <site address>

ERR_CONNECTION_REFUSED

Reply to "Can't Access site Internally"