[GH-ISSUE #194] Raspbian install #161

Closed
opened 2026-02-25 21:34:19 +03:00 by kerem · 2 comments
Owner

Originally created by @mwolfeu on GitHub (May 14, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/194

Originally assigned to: @jasonmunro on GitHub.

Every step (1-4) works great till I try to create a user:

mysql> show tables;
+---------------------+
| Tables_in_cyphtMail |
+---------------------+
| hm_user |
| hm_user_session |
| hm_user_settings |
+---------------------+


php ./scripts/create_account.php testuser testpass
PHP Fatal error: Call to a member function prepare() on a non-object in /usr/local/share/cypht/lib/auth.php on line 159

I already triple checked hm3.ini
Using php5
I installed php5-mysql with no change.

Thanks,
Michael

Originally created by @mwolfeu on GitHub (May 14, 2017). Original GitHub issue: https://github.com/cypht-org/cypht/issues/194 Originally assigned to: @jasonmunro on GitHub. Every step (1-4) works great till I try to create a user: mysql> show tables; +---------------------+ | Tables_in_cyphtMail | +---------------------+ | hm_user | | hm_user_session | | hm_user_settings | +---------------------+ ----------------------------------------------------------------------- php ./scripts/create_account.php testuser testpass PHP Fatal error: Call to a member function prepare() on a non-object in /usr/local/share/cypht/lib/auth.php on line 159 I already triple checked hm3.ini Using php5 I installed php5-mysql with no change. Thanks, Michael
kerem closed this issue 2026-02-25 21:34:19 +03:00
Author
Owner

@jasonmunro commented on GitHub (May 15, 2017):

Thanks for the feedback. Sounds like maybe the PHP PDO driver is missing? I know you said you installed php5-mysql, but there may be another package for the PDO driver. You can test for this easily enough with the following command line:

jason [ ~ ]$ php -r 'phpinfo();' | grep 'PDO Driver'
PDO Driver for MySQL => enabled
PDO Driver for PostgreSQL => enabled
PDO Driver for SQLite 3.x => enabled
<!-- gh-comment-id:301623224 --> @jasonmunro commented on GitHub (May 15, 2017): Thanks for the feedback. Sounds like maybe the PHP PDO driver is missing? I know you said you installed php5-mysql, but there may be another package for the PDO driver. You can test for this easily enough with the following command line: ``` jason [ ~ ]$ php -r 'phpinfo();' | grep 'PDO Driver' PDO Driver for MySQL => enabled PDO Driver for PostgreSQL => enabled PDO Driver for SQLite 3.x => enabled ```
Author
Owner

@jasonmunro commented on GitHub (Jun 3, 2017):

I just pushed some changes that improve the output when an error occurs with this script. Should help debug these issues. I'm closing this since it's been a few weeks and I don't think this is a bug in cypht per say (we needed to better handle errors which this change also does).

If this turns out to be a bug please re-open or file a new ticket. Thanks for the feedback!

<!-- gh-comment-id:305993121 --> @jasonmunro commented on GitHub (Jun 3, 2017): I just pushed some changes that improve the output when an error occurs with this script. Should help debug these issues. I'm closing this since it's been a few weeks and I don't think this is a bug in cypht per say (we needed to better handle errors which this change also does). If this turns out to be a bug please re-open or file a new ticket. Thanks for the feedback!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#161
No description provided.