Ulysses Stuff > Ulysses Release Archives
OpenSteam: Bans and User Management System
Neubivljiv:
--- Quote from: Storm on May 03, 2014, 06:19:29 AM ---I am trying to install this and get this error. What am I doing wrong?
Warning: Creating default object from empty value in /usr/www/myuserid/public/WEB/inc/class.db.PDO.php on line 18
Error!: Unable to connect to the database
--- End quote ---
Make sure that you have PDO enabled. Also, open config.php and modify the settings for your database (see first post - Installation)
Storm:
Yes I asked my host provider how to enable PDO but they had never heard of it. Do you know how I do that? I figured that might be the problem from the error! And yes the setting are correct in config.php.
I've actually checked things many times over and just can't find the cause for this error. I thought the current version of mysqloo had PDO enabled by default anyway. Can anyone shed any light?
RalphORama:
--- Quote from: RalphORama on May 02, 2014, 10:07:58 PM ---Yep, the addon doesn't work without it. I have the lua file in garrysmod/addons/ulx/lua/ulx/modules/sh/opensteam.lua, libmysqlclient.so.18 in my root folder (next to srcds_linux), and gmsv_mysqloo_linux.dll in garrysmod/lua/bin/.
As for logging in, I added your line of code, and while it does get rid of the error on the login page, nothing happens/changes when I log in (or try to register).
--- End quote ---
Another error in server console: Database Connection Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Neubivljiv:
Your setup is not valid.
Check local ULX_HOST...try with '127.0.0.1'
Storm:
I have the database up and running fine and it's registering ph_users. I just can't seem to connect to the website. I have checked config.php and it is corrrect. I believe PDO is enabled by default in the current version of mysqloo. But I am still getting this error. Any thoughts?
Warning: Creating default object from empty value in /usr/www/xxxxuserid/public/WEB/inc/class.db.PDO.php on line 18
Error!: Unable to connect to the database
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version