English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

500 Unable to load Database Driver:pdomysql
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: 500 Unable to load Database Driver:pdomysql
#13110
500 Unable to load Database Driver:pdomysql 6 Years, 9 Months ago Karma: 0
Please correct the error.
The support of the hoster helped:
Проблема оказалась не в сервере, а в самом компоненте, при этом решение на первый взгляд выглядит довольно странно.

Сам блок кода, проверяющий наличие драйвера, выглядит так:

if (empty($instances[$driver]))
{
$path = dirname( __FILE__)
.DS.'database'
.DS.'database'.DS.$driver.'.php';
if (file_exists($path)) {
require_once($path);
} else {
JError::raiseError(500, JTEXT::_('Unable to load Database Driver:') .$driver);
return null;
}

В директории, откуда он подгружает драйверы, файла с именем pdomysql.php нет:

root@odnoklasniki:~# ls -l /var/www/suhsi8mushe/data/www/public_html/xn----8sbwg0bcjc9b.xn--p1ai/sushi/xn--c1ajhpcjhd0j.xn----8sbwg0bcjc9b.xn--p1ai/administrator/components/com_multisites/libraries/joomla/database/database/
total 16
-rw-r--r-- 1 suhsi8mushe suhsi8mushe 26 Jul 9 19:43 index.html
-rw-r--r-- 1 suhsi8mushe suhsi8mushe 4111 Jul 9 19:43 mysqli.php
-rw-r--r-- 1 suhsi8mushe suhsi8mushe 3536 Jul 9 19:43 mysql.php

Собственно, суть проблемы заключается в этом.
Замена драйвера в глобальных настройках (configuration.php) на mysqli проблему не решила, так что есть смысл уточнить у разработчика компонента, где это можно поменять.

Что касается решения, то помог метод, описанный в этой ветке форума:

www.jms2win.com/en/forum/23-general-ques...load-database-driver


Там говорится, что баг был устранен в версии 1.2.76 компонента multisites, однако у вас стоит 1.3.66, а решение по-прежнему актуально.

Добавил строку "define( 'MULTISITES_REFRESH_DISABLED', true);" в файл /var/www/suhsi8mushe/data/www/public_html/xn----8sbwg0bcjc9b.xn--p1ai/sushi/xn--c1ajhpcjhd0j.xn----8sbwg0bcjc9b.xn--p1ai/administrator/components/com_multisites/multisites.cfg.php, после чего указанный раздел заработал.

За подробностями и консультациями по поводу наиболее корректного способа устранения проблемы в данном случае лучше обратиться к разработчику компонента.
rosoptovik
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13111
Re: 500 Unable to load Database Driver:pdomysql 6 Years, 9 Months ago Karma: 54
Would you please write in english.
We have tried using google to translate your text from russian to english but this is not clear.

JMS is designed to work on MySQL and NOT for PDO.

You seems mention an error in a file but it is not clear in which file and line number where the problem is located.
It seems that you also make reference to a JMS 1.2.76 and we are currently in JMS 1.3.66.

As mentioned hereabove, JMS is not designed to work with PDO.
It is only working for MySQL or MySQLi.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2017/07/09 23:18 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla