elrido / ZeroBin

This Project has been renamed and moved to
https://github.com/PrivateBin/PrivateBin
Other
85 stars 8 forks source link

Problems with DB method #42

Closed alexandreteles closed 8 years ago

alexandreteles commented 9 years ago

Using the current master branch or the latest release with MySQL i get:

PHP Fatal error: Call to a member function prepare() on a non-object in /var/www/h0t.in/paste-beta/lib/zerobin/db.php on line 423"

Any other details that I can actually provide to help with the debug?

elrido commented 9 years ago

Hi and thank you for reporting the issue. To be honest the master is currently being refactored and that might be the cause of the issue. But I want to get more experience with the database behaviour on live systems anyway, so I set up two instances from the current master for sqlite and mysql.

I will debug the issues and get back to you when we have a stable master that works with both and will do my bigger changes in branches in the future. Sorry about the inconvenience. :-(

elrido commented 9 years ago

Found and corrected a few issues in the database layer. If you still have the issues, could you send me your [model_options] / opt setting and the type of database you are using? I guess your error happens during sending a new paste, right?

elrido commented 8 years ago

I'll consider this solved for now. Please feel free to reopen it, if the problem is not yet solved for you.