Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in install process. #1175

Closed
mathwhiz1212 opened this issue Apr 2, 2015 · 12 comments
Closed

Error in install process. #1175

mathwhiz1212 opened this issue Apr 2, 2015 · 12 comments
Labels

Comments

@mathwhiz1212
Copy link

Notice: Undefined variable: handle in /var/www/wallabag/install/index.php on line 137

Fatal error: Call to a member function prepare() on a non-object in /var/www/wallabag/install/install_functions.php on line 101

Self-hosted, raspbian on a raspberry pi. no problems with the compatibility test, Permissions given through sudo chown -hR www-data folder, As far as I can tell this is regardless of browser as I have tried serveral.
mysql Ver 14.14 Distrib 5.5.41, PHP 5.4.39

@mathwhiz1212
Copy link
Author

Weird.. doing the install over with a different username and it works until I get this error when I try to log in:
Fatal error: Call to a member function fetchAll() on a non-object in /var/www/wallabag/inc/poche/Database.class.php on line 190

@tcitworld
Copy link
Member

Hmm, seems to be the same thing as #1114 (sorry, french).

@tcitworld tcitworld added the Bug label Apr 2, 2015
@tcitworld
Copy link
Member

Still can't reproduce it, though my php and mysql versions are identical or nearly identical. What the heck ?

@xpac1985 Can you check if you have empty or nearly databases (just the tags table) too ?

Gonna go with a Virtual Machine with Wheezy in it to check what I do wrong.

@xpac1985
Copy link

xpac1985 commented Apr 7, 2015

mysql> SELECT COUNT() FROM information_schema.tables WHERE table_schema = 'wallabag';
+----------+
| COUNT(
) |
+----------+
| 0 |
+----------+

Or in short - nothing ;-)

@tcitworld
Copy link
Member

Nothing. Sigh.

If you're motivated, you can check the alpha release for the next version, but even though I made some changes to the system, I wouldn't expect it to change anything.

@tcitworld
Copy link
Member

Okay, I tested Wheezy inside a WM, and it worked, once again.

Quick questions : is the MySQL server different than localhost ? Is the database already created ? Does the user really exists ?

@xpac1985
Copy link

xpac1985 commented Apr 8, 2015

HA!
The alpha version helped, as in showing some MySQL Error code, which simply said: "Access denied".
I was perfectly sure that I used the right username and password, but after re-GRANTing all rights to the user the current stable as well as the alpha install fine.
No idea how I could have miss-copy-pasted the username and password, but obviously I did.
Problem solved, at least for me.
Thanks a lot for your super quick support!

@tcitworld
Copy link
Member

Oooh, that's interesting. :) Now I know how to fix that. A huge thank you !

@xpac1985
Copy link

xpac1985 commented Apr 8, 2015

Let me add some little things:
You may want to add
"php composer.phar update"
to your install instructions, as for some reason composer tends to not install the most current versions of the needed dependencies (at least on my system).

@tcitworld
Copy link
Member

I will look up what's updated before. :)

@tcitworld
Copy link
Member

This is now fixed in dev branch. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants