meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Synology DSM6.2.4 install issue #3757

Open Faqbe9 opened 1 day ago

Faqbe9 commented 1 day ago

Trying to install/use MRBS 1.11.5 on a Synology DSM 6.2.4 with Apache 2.4 - PHP7.4 and web station. Configured config.inc.php with necessary variables. Tried with specific port the one specified on DB installation) and without.

When initiating http://myServer/mrbs/index.php, following error messages are displayed:

Uncaught exception 'MRBS\Exception' in /volume1/web/mrbs/lib/MRBS/DBFactory.php at line 39
Undefined class constant 'PDO::MYSQL_ATTR_FOUND_ROWS'
#0 /volume1/web/mrbs/dbsys.inc(90): MRBS\DBFactory::create('mysql', '127.0.0.1', 'me', 'myPwd*', 'mrbs', false, NULL, Array)
#1 /volume1/web/mrbs/dbsys.inc(102): MRBS\db()
#2 /volume1/web/mrbs/lib/MRBS/Session/Session.php(82): MRBS\db_schema_version()
#3 /volume1/web/mrbs/lib/MRBS/Session/Session.php(28): MRBS\Session\Session->init(2592000)
#4 /volume1/web/mrbs/lib/MRBS/Session/SessionWithLogin.php(31): MRBS\Session\Session->__construct()
#5 /volume1/web/mrbs/lib/MRBS/Session/SessionPhp.php(19): MRBS\Session\SessionWithLogin->__construct()
#6 /volume1/web/mrbs/lib/MRBS/Session/SessionFactory.php(14): MRBS\Session\SessionPhp->__construct()
#7 /volume1/web/mrbs/mrbs_auth.inc(33): MRBS\Session\SessionFactory::create('php')
#8 /volume1/web/mrbs/init.inc(41): MRBS\session()
#9 /volume1/web/mrbs/defaultincludes.inc(35): require_once('/volume1/web/mr...')
#10 /volume1/web/mrbs/index.php(11): require('/volume1/web/mr...')
#11 {main}

MRBS GET: Array
(
)
MRBS POST: Array
(
)

Database seems right and can be read using PhpMyAdmin. OrangeHrm and VToger are working correctly (using Web Station). Any assistance would be welcome

campbell-m commented 1 day ago

Have you got the PDO MySQL driver enabled?

Faqbe9 commented 4 hours ago

Thks 4 asking, if PDO stands for MariaDb10, the answer is yes. However, I'm a bit lost to know whether when installing MariaDb10, MySql connector comes with the package and is properly installed. Packages like OrangeHrm or Vtiger are correctly running on my NAS (DS920+) but maybe these are not using the same "connector" Is there any specific activation to perform after MariaDb10 installation ?

campbell-m commented 3 hours ago

No, I mean the PHP PDO_MySQL driver. Check your php.ini file and make sure the line

extension=pdo_mysql

is uncommented.