mirror of
https://github.com/JLiscom/OpenNote.git
synced 2026-04-25 16:25:49 +03:00
[GH-ISSUE #31] OpenNote not working on subdomain. #28
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#28
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 @vincurekf on GitHub (Feb 6, 2014).
Original GitHub issue: https://github.com/JLiscom/OpenNote/issues/31
Hi, i have a question about running OpenNote on subdomain (note.domain.cz).
But when i tried to run it i've got this:
So i tried to change the default web path in settings and i added a dot to path to Authenticater (because when i leave it on defalt i get the error above again:
That helped but i have another problem with Authenticater.php script not being included correctly:
Can someone please tell me what to do?
@JLiscom commented on GitHub (Feb 8, 2014):
Do you have this subdomain in a different web structure then the primary?
I operate my personal instance of OpenNote on a subdomain and I cant reproduce this error.
@vincurekf commented on GitHub (Feb 8, 2014):
Well, my primary folder is at "/data/www/XXXXXX/fswitch_cz/" and subdomains are just subfolders.
You can see it here http://note.fswitch.cz.
I even tried to set the base in .htaccess simply by
But it's weird to me, because when i remove the dot from here:
it should load the module correctly but then i can't acces index page, the main page to be exact.
@JLiscom commented on GitHub (Feb 9, 2014):
I can't seem to reproduce the problem.
Can you revert the changes to public static function getWebRoot(). It looks like from the post above you modified the code that parses out the local directory include path.
You can keep the same $loginModulePath variable change
@JLiscom commented on GitHub (Feb 9, 2014):
I just pulled down the latest build and deployed it to my personal instance and it is okay.
Maybe its the way the sub domain is setup. I have my subdomain as a cname record to another instance. Do you have the subdomain configured some how in Apache or is it a completely separate like a cpanel like setup?
@vincurekf commented on GitHub (Feb 9, 2014):
I don't set my subdomains in any way, i just create subfolder and the domain starts working immediately.
Ok, i revrerted the changes, now when i try it, got this:
again, opennote is trying acces the files on vrong path.
http://note.fswitch.cz/note/controller/modules/login/
when i add a dot before path at line #64
i can acces opennote, but then its trying import Authenticater with the dot before.
...cz/note/controller./modules/login/Authenticater.php): failed to open stream: No such file or directory...
I allso tried change this line:
to
but the same apears, opennote is trying acces web on:
http://note.fswitch.cz/note/controller/modules/login/
So maybe the problem is in
"dirname(__FILE__)"?Isn't it expecting from me to have opennote in some subfolder on my main domain, and then, assuming that "note.fswitch.cz" is not subdomain but simply subfolder under main domain?
From what i can see, maybe the solution is substr-ing the name of subdomain from the main calling path, but i dont know how...
And yes, i downloaded the last version, last commit 32b3873a32
This is very weird... :D
@JLiscom commented on GitHub (Feb 10, 2014):
type
include_once dirname(__FILE__)."./modules/login/Authenticater.php";toinclude_once dirname(__FILE__)."/./modules/login/Authenticater.php";.What OS are you running apache on?
@JLiscom commented on GitHub (Apr 3, 2014):
Closed due to inactivity