2009-01-17, 11:50 AM
I have just set up a MyBB 1.4.4 install on Solaris/SPARC 10 10/08 using Sun's CoolStack 1.3.1 version of PHP 5.2.6, with a SQLite database.
For further background, I'm running my PHP as a FastCGI process with nginx 0.7.30. The PHP process is running as the same user/group as the user who owns the files.
The issue I am seeing is that various operations throw nasty-looking SQL errors (not even framed in the MyBB page). For this reason, I've yet to open the forum to users.
A couple of example errors:
While trying to edit a forum announcement in the ACP:
While trying to install MusicalMidget's Board Messages plugin:
Each and every failing plugin (alas, this is most of the ones I've tried fail to install/activate) puke on line 67 of db_pdo.php. Looking at that line, there's not much to figure out where to start. (It executes the SQL query.)
My first question is probably "WTF are all those question marks in the queries?", followed by "Why is a core part of MyBB trying to serialize operations when it really doesn't gain anything even on databases that support it, let alone on ones that don't?".
I'd really love to use SQLite for MyBB; it's one of the reasons I chose MyBB. (Another was the Openfire integration plugin... Oh, and the browser info plugin.) I really don't have the need for the overhead of MySQL or Postgres for what will be a low-traffic forum. But, since I have a working pgsql already, I'd probably prefer to use that. Are there any show-stoppers with Postgres? Or should I somehow try to figure out how to make SQLite work right?
Let me know what info you need, and I will do my best to provide it. I haven't (yet) seen any errors on the user side, just in the ACP. So, the URL to the forum is kind of useless, especially since I really don't want to give the world an admin login to what will (ideally) be a live site in the next day or two...
For further background, I'm running my PHP as a FastCGI process with nginx 0.7.30. The PHP process is running as the same user/group as the user who owns the files.
The issue I am seeing is that various operations throw nasty-looking SQL errors (not even framed in the MyBB page). For this reason, I've yet to open the forum to users.
A couple of example errors:
While trying to edit a forum announcement in the ACP:
Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDOStatement instances' in /home/pancakes/www/bb/admin/inc/functions.php:37
Stack trace:
#0 [internal function]: PDOStatement->__sleep()
#1 /home/pancakes/www/bb/admin/inc/functions.php(37): serialize(Array)
#2 /home/pancakes/www/bb/admin/modules/forum/announcements.php(429): log_admin_action(Object(PDOStatement), 'You can't post ...')
#3 /home/pancakes/www/bb/admin/index.php(378): require('/home/pancakes/...')
#4 {main}
thrown in /home/pancakes/www/bb/admin/inc/functions.php on line 37
While trying to install MusicalMidget's Board Messages plugin:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 near "unsigned": syntax error' in /home/pancakes/www/bb/inc/db_pdo.php:67
Stack trace:
#0 /home/pancakes/www/bb/inc/db_pdo.php(67): PDO->query('???CREATE TABLE...', 4)
#1 /home/pancakes/www/bb/inc/db_sqlite3.php(189): dbpdoEngine->query('???CREATE TABLE...')
#2 /home/pancakes/www/bb/inc/db_sqlite3.php(261): DB_SQLite3->query('???CREATE TABLE...', 0)
#3 /home/pancakes/www/bb/inc/plugins/board_messages.php(55): DB_SQLite3->write_query('???CREATE TABLE...')
#4 [internal function]: board_messages_install()
#5 /home/pancakes/www/bb/admin/modules/config/plugins.php(193): call_user_func('board_messages_...')
#6 /home/pancakes/www/bb/admin/index.php(378): require('/home/pancakes/...')
#7 {main}
thrown in /home/pancakes/www/bb/inc/db_pdo.php on line 67
Each and every failing plugin (alas, this is most of the ones I've tried fail to install/activate) puke on line 67 of db_pdo.php. Looking at that line, there's not much to figure out where to start. (It executes the SQL query.)
My first question is probably "WTF are all those question marks in the queries?", followed by "Why is a core part of MyBB trying to serialize operations when it really doesn't gain anything even on databases that support it, let alone on ones that don't?".
I'd really love to use SQLite for MyBB; it's one of the reasons I chose MyBB. (Another was the Openfire integration plugin... Oh, and the browser info plugin.) I really don't have the need for the overhead of MySQL or Postgres for what will be a low-traffic forum. But, since I have a working pgsql already, I'd probably prefer to use that. Are there any show-stoppers with Postgres? Or should I somehow try to figure out how to make SQLite work right?
Let me know what info you need, and I will do my best to provide it. I haven't (yet) seen any errors on the user side, just in the ACP. So, the URL to the forum is kind of useless, especially since I really don't want to give the world an admin login to what will (ideally) be a live site in the next day or two...