mirror of
https://github.com/JLiscom/OpenNote.git
synced 2026-04-26 00:35:48 +03:00
[GH-ISSUE #67] Cannot register or login on fresh install #58
Labels
No labels
bug
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OpenNote-JLiscom#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mioux on GitHub (Jul 16, 2014).
Original GitHub issue: https://github.com/JLiscom/OpenNote/issues/67
I have downloaded OpenNote 14.x, unzipped in /var/www/opennote
Apache is configured with alias /OpenNote /var/www/opennote
Root is configured for my roundcube installation in /var/www/roundcubemail
Database is initialized via /OpenNote/Service/install.php script (tested both sqlite and mysql)
[Wed Jul 16 16:31:24 2014] [error] [client 77.242.202.234] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'notebook'@'localhost' (using password: YES)' in /var/www/opennote/Service/Config.php:44\nStack trace:\n#0 /var/www/opennote/Service/Config.php(44): PDO->__construct('mysql:host=127....', 'notebook', 'password')\n#1 /var/www/opennote/Service/Config.php(20): Config::mysqlConfig()\n#2 /var/www/opennote/Service/install.php(89): Config::dbConfig()\n#3 {main}\n thrown in /var/www/opennote/Service/Config.php on line 44, referer: https://xxx/OpenNote/Service/install.php?step=1
I then clicked "Back" and "SQLite" again, which correctly initialized the SQLite DB
[Wed Jul 16 16:32:51 2014] [error] [client 77.242.202.234] File does not exist: /var/www/roundcubemail/var, referer: https://xxx/OpenNote/
I think this error is related to the _ _ FILE _ _ var. I'm not a php expert (I mostly code T-SQL or C# :D) but I don't have found where the _ _ FILE _ _ var is initialized, I think this is the problem.
@mioux commented on GitHub (Jul 16, 2014):
It works without working with alias (I put OpenNote folder inside my RC install dir)
@JLiscom commented on GitHub (Jul 16, 2014):
@mioux I just tested it and it does appear to work.
The installer is not the greatest thing I have ever written. Its hard because I need to use the PDO connection which needs a config but I also have to generate a config. I think that is where the error is coming from
What do you mean about the alias? Just trying to understand how I can handle this case.
@JLiscom commented on GitHub (Jul 16, 2014):
@mioux I also should note the front end JS app will not tell you if it cannot connect to the back end. That was something that didn't make it into this release. However, once it is configured everything should work.
@mioux commented on GitHub (Jul 16, 2014):
Here is my apache conf file
<VirtualHost 0.0.0.0:443>
It seems that OpenNote tries to open /var/www/roundcubemail/var/www/opennote instead of /var/www/opennote.
There is no error when I put the OpenNote folder in /var/www/roundcubemail and remove the alias line. It works, but I would prefer separate the 2 softwares.
I have tested the magic variable FILE through alias, it's /var/www/opennote as expected
@JLiscom commented on GitHub (Jul 16, 2014):
@mioux I will try to replicate and fix.
@JLiscom commented on GitHub (Sep 8, 2014):
@mioux Can you see if the latest update fixes you issue
@mioux commented on GitHub (Sep 9, 2014):
Tested with latest git release, it doesn't work
@JLiscom commented on GitHub (Sep 30, 2014):
@mioux
Try changing you config to match https://github.com/FoxUSA/OpenNote/blob/Fox-Working/OpenNote/openNote/openNote.config.js#L24 (Added
service.phpto url) In future versions I will no longer use a .htaccess file as it does not work in cases like this@mioux commented on GitHub (Oct 2, 2014):
Shame on me, I didn't saw this message.
It seems to work, I have made a rapid check (creating and editing a note) without error.
Thanks