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

Problem using $ROOT_DIRECTORY #2

Open
OnlyDrey opened this issue Dec 29, 2017 · 5 comments
Open

Problem using $ROOT_DIRECTORY #2

OnlyDrey opened this issue Dec 29, 2017 · 5 comments

Comments

@OnlyDrey
Copy link

I am having a problem using $ROOT_DIRECTORY in my project. Using setup.php I get this error

Array ( [0] => [1] => ) Is the last folder in this array. It tells you what the value of $ROOT_DIRECTORY needs to be

I know what I'm looking for, but it doesn't seem to find the directory. The main directory of my site is "public_html", when using a sub-directory it works, but it doesn't work for my main directory for some reason, any idea why?

@SleekPanther
Copy link
Owner

Maybe try making $ROOT_DIRECTORY=""; (an empty string)
I'm just guessing, but maybe public_html since doesn't appear in the URL, your specific server doesn't find it when parsing the folders

I'd just start by going down the list of variables in setup.php and printing them out to see if they contain what they should because it's strange that $split_url[count($split_url) -1] is giving you Array ( [0] => [1] => ) because it should just be the last item in the array which should be a string

@SleekPanther SleekPanther modified the milestone: Test Milestone Dec 31, 2017
@OnlyDrey
Copy link
Author

OnlyDrey commented Jan 2, 2018

Using public_html works for every site except the index page. I tried using blanks, etc in $ROOT_DIRECTORY=""; but nothing seemed to work. For the record, the webserver is using cPanel, maybe there is a setting I'm missing in there? Just a thought.

@Kunwark
Copy link

Kunwark commented Sep 30, 2021

@OnlyDrey Do you still need help with this issue?

@genesisoliva
Copy link

Did you find a solution? Because im having a hard time as well and I push my repo to heroku

@Kunwark
Copy link

Kunwark commented Nov 8, 2021

@genesisoliva What's causing the problem for you?

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

No branches or pull requests

4 participants