Media Wiki Softaculous Installing Error

Website URL

http://wikinepal.great-site.net

Error Message

MediaWiki internal error.

Original exception: [ZpOBzz@nb8qD8IgcNAYq1gAAABA] 2024-07-14 07:44:15: Fatal exception of type “Wikimedia\Rdbms\DBConnectionError”

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

Other Information

What is this problem and what could be the potential solution for this problem can it be solved here or I should contach MediaWiki supporter.

Did you do this already?


The fact that it says “DBConnectionError” suggests that it’s a problem with the database connection, which is usually the result of a configuration error. If so, it’s probably not a MediaWiki issue but a configuration issue, which we should be able to help you with here.

However, to help you effectively, we need a bit more information, and that detailed debugging information from MediaWiki should help a lot.

4 Likes

So, What should I do now at overall to solve this problem?

In short, the process is: get more information about why the database connection doesn’t work, figure out what caused it, and fix that.

And for that first step, you should enable that $wgShowExceptionDetails flag that MediaWiki told you to enable.

2 Likes

MediaWiki internal error.

Original exception: [ZpRT6dj9kkJHiOEs5ScKaQAAAAA] / Wikimedia\Rdbms\DBConnectionError: Cannot access the database: MySQL server has gone away (sql203.byetcluster.com)
Backtrace:
from /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1149)
#0 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(805): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/database/DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)
#3 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/database/DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#4 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#5 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(725): Wikimedia\Rdbms\DBConnRef->selectField(array, string, array, string, array, array)
#6 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/LCStoreDB.php(65): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#7 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/LocalisationCache.php(559): LCStoreDB->get(string, string)
#8 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/LocalisationCache.php(606): LocalisationCache->isExpired(string)
#9 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/LocalisationCache.php(516): LocalisationCache->initLanguage(string)
#10 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/LocalisationCache.php(396): LocalisationCache->loadSubitem(string, string, string)
#11 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/LocalisationCache.php(412): LocalisationCache->getSubitem(string, string, string)
#12 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1235): LocalisationCache->getSubitemWithSource(string, string, string)
#13 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1177): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#14 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1072): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#15 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/Message.php(1485): MessageCache->get(string, boolean, LanguageEn)
#16 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/Message.php(972): Message->fetchMessage()
#17 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/Message.php(1059): Message->format(string)
#18 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/title/MalformedTitleException.php(61): Message->text()
#19 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/title/MediaWikiTitleCodec.php(101): MediaWiki\Title\MalformedTitleException->__construct(string, string, array)
#20 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/title/MediaWikiTitleCodec.php(411): MediaWiki\Title\MediaWikiTitleCodec::MediaWiki\Title{closure}(string, string)
#21 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/title/Title.php(2756): MediaWiki\Title\MediaWikiTitleCodec->splitTitleString(string, integer)
#22 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/title/Title.php(510): MediaWiki\Title\Title->secureAndSplit(string)
#23 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/MediaWiki.php(100): MediaWiki\Title\Title::newFromURL(string)
#24 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/MediaWiki.php(189): MediaWiki->parseTitle(MediaWiki\Request\WebRequest)
#25 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/MediaWiki.php(908): MediaWiki->getTitle()
#26 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/MediaWiki.php(613): MediaWiki->main()
#27 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/index.php(50): MediaWiki->run()
#28 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/index.php(46): wfIndexMain()
#29 {main}

Exception caught inside exception handler: [ZpRT6dj9kkJHiOEs5ScKaQAAAAA] / Wikimedia\Rdbms\DBConnectionError: Cannot access the database: MySQL server has gone away (sql203.byetcluster.com)
Backtrace:
from /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1149)
#0 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(805): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#2 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/database/DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)
#3 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/database/DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#4 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/libs/rdbms/database/DBConnRef.php(538): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#5 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(597): Wikimedia\Rdbms\DBConnRef->anyString()
#6 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(550): MessageCache->loadFromDB(string, NULL)
#7 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(446): MessageCache->loadFromDBWithLocalLock(string, array, NULL)
#8 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(341): MessageCache->loadUnguarded(string, NULL)
#9 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1301): MessageCache->load(string)
#10 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1205): MessageCache->getMsgFromNamespace(string, string)
#11 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1177): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#12 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/MessageCache.php(1072): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#13 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/Message.php(1485): MessageCache->get(string, boolean, LanguageEn)
#14 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/Message.php(972): Message->fetchMessage()
#15 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/language/Message.php(1059): Message->format(string)
#16 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/exception/MWExceptionRenderer.php(254): Message->text()
#17 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/exception/MWExceptionRenderer.php(398): MWExceptionRenderer::msg(string, string)
#18 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/exception/MWExceptionRenderer.php(103): MWExceptionRenderer::reportOutageHTML(Wikimedia\Rdbms\DBConnectionError)
#19 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/exception/MWExceptionHandler.php(134): MWExceptionRenderer::output(Wikimedia\Rdbms\DBConnectionError, integer)
#20 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/exception/MWExceptionHandler.php(251): MWExceptionHandler::report(Wikimedia\Rdbms\DBConnectionError)
#21 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/includes/MediaWiki.php(632): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBConnectionError, string)
#22 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/index.php(50): MediaWiki->run()
#23 /home/vol15_5/infinityfree.com/if0_36900384/htdocs/index.php(46): wfIndexMain()
#24 {main}

Hey I have mentioned the problem?

Thank you for sharing the additional information. This part basically says all there is to know about the issue:

Unfortunately, “MySQL server has gone away” is a very strange error to get. Usually it means the server closed the connection, which tends to happen with long running connection, or because you launched a query which is too big.

But I did a little bit more digging, and it seems that this error is being returned during the connection setup phase, which makes no sense to me.

I did have a look at your MediaWiki LocalSettings.php file. It looks like it was installed with Softaculous, and Softaculous generates custom database usernames and passwords. But then you appear to have replaced the password with your hosting account password. Which is usually not necessary, but is fine, if you also update the database username, which you didn’t do. So now your site is configured with a username and a password which don’t match.

I’m not sure if it will solve the issue, but if you update your database username, it will definitely fix one issue down the road, and maybe even fix this issue.

3 Likes

So now what should I do finally I did’t understood and I should change password how can I?

Website URL

http://stewardswiki.great-site.net/

Error Message

I was trying to install MediaWiki :Mobile Frontend I installed this extension via WinSCP the file was uploaded properly and fully but after I added wfLoadExtension in LocalSetings.php and saved and opened my wiki the site could’t be open and when I again removed wfLoadExtension and saved and opened wiki it started working so what is the problem and now how can I run this extension on my wiki.

Other Information

The problem that is showing;

This page isn’t working

stewardswiki.great-site.net is currently unable to handle this request.

HTTP ERROR 500

Please read

3 Likes

Now I’m having another problem related to Template while I tried to add templates it’s huge me this problem:
Lua error: Cannot create process: proc_open is not available. Check PHP’s “disable_functions” configuration directive.
I asked for help with Media wiki supporter and in AI so I found that we should make a change in PHP.ini that I can’t find so what is the solution now.

Unfortunately, there’s no solution. proc_open and similar functions like exec, are all disabled on free hosting. And no, there’s no php.ini that you can change; and the server operators don’t change the setting for all websites just because 1 website asks for it.

4 Likes

So means this wiki is unusable for me as we can’t make any templates.

If being able to run external programs to run custom scripting is a hard requirement, then yes, your site cannot be run on our hosting. Base MediaWiki, without Lua scripting, works just fine.

3 Likes

Ok So, I have curiosity that I have Media Wiki installed from Xampp new version 1.42.1 as I’m facing this problem now this problem isn’t present in that Xampp one so how can I import that my wiki in Infinity free easily without any errors is it possible.

Migrating your existing website from XAMPP is not going to solve the Lua issue. The problem is that in order to use the Lua scripting features, you need to be able to use certain PHP functions which are disabled on our hosting. On XAMPP, those functions are likely not disabled, which is why it works locally. But whether you install a new site here or migrate an existing site: the functions that are disabled on our hosting are disabled and cannot be used.

If you still want to try to migrate your website from XAMPP, I would suggest to do it this way:

But again, I strongly doubt it will actually solve your issue.

3 Likes

If nothing can solve the issue what’s the significance of creating Wiki without Lua nothing will work for everyone in an Wiki so why is this problem unsolved there is no importance of creating Wiki from web host.

I’m not that familiar with MediaWiki, and I don’t know how much MediaWiki relies on Lua scripting for basic functionality. As far as I can tell, it’s just one extension, Scribunto, that needs this functionality. If you can do without the specific features this plugin offers, then you can safely remove the Lua functionality and keep using MediaWiki.

If MediaWiki relies on Lua too much, you may also wish to consider alternative wiki solutions. Softaculous has a few options available for installation, and I’ve heard good things of other solutions like BookStack and Tiki as well.

Enabling the functions that would enable this Lua scripting enables basically anyone to run basically anything, which has very wide consequences for the performance, stability and security or our hosting, so we cannot enable it “just like that”. The security impact of these functions is so big that they are disabled on premium hosting by default, and you have to enable them manually if you want to use them.

In any case, there is absolutely no reason why a website that just produces text pages needs to run commands and use external scripting systems to work. Our hosting has everything you need to run a wiki site. Just maybe not with the all of the most powerful and complicated features.

4 Likes

Does this problem arise to all the person or it’s only for few like me.

Everyone using our hosting who wants to use MediaWiki with Lua scripting functionality has this issue. If you search the forum for “mediawiki lua”, you’ll see a number of other topics created over the years describing the same issue.

4 Likes