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

Installation error #121

Closed
r4zv4n opened this issue Sep 17, 2014 · 37 comments
Closed

Installation error #121

r4zv4n opened this issue Sep 17, 2014 · 37 comments
Labels
compatibility Compatibility issue with other framework, features

Comments

@r4zv4n
Copy link

r4zv4n commented Sep 17, 2014

Parse error: syntax error, unexpected '[' in /models/funcs.php on line 63

@alexweissman
Copy link
Member

This is because of the PHP 5.4+ array syntax; please see #115. We're still trying to decide whether to revert to the old syntax, or update to a minimum version requirement of 5.4.

@alexweissman alexweissman added the compatibility Compatibility issue with other framework, features label Sep 18, 2014
@r4zv4n
Copy link
Author

r4zv4n commented Sep 18, 2014

I've replaced that line, and the installation went well. After it finished i was presented with a no-css login page. After the login I am getting this error

Not Found

The requested URL /api/account was not found on this server.

I even updated my php to 5.4 and restarted the hole process. With no luck, I get the same error.

@lilfade
Copy link
Contributor

lilfade commented Sep 18, 2014

The login page should redirect you to /account/dashboard.php there is no
/api/account/
On Sep 17, 2014 8:36 PM, "r4zv4n" notifications@github.com wrote:

I've replaced that line, and the installation went well. After it finished
i was presented with a no-css login page. After the login I am getting this
error

Not Found

The requested URL /api/account was not found on this server.

I even updated my php to 5.4 and restarted the hole process. With no luck,
I get the same error.

Reply to this email directly or view it on GitHub
#121 (comment)
.

@alexweissman
Copy link
Member

Hmm, it sounds like the no-css and the weird redirect might both be due to a problem with your site root setting. What did you set for "Site Root URL"? If you don't remember, it is stored in the website_url field in your configuration table.

@r4zv4n
Copy link
Author

r4zv4n commented Sep 18, 2014

I've checked the db. It is correctly set to the install directory (mysite.com/00/)

@alexweissman
Copy link
Member

@lilfade can you see if you can replicate this error? I haven't tried running a fresh install in version 0.2.1 yet.

@alexweissman
Copy link
Member

Also @r4zv4n please check your php_error_log, and your browser's javascript console, for any error messages that might help us.

@lilfade
Copy link
Contributor

lilfade commented Sep 19, 2014

Yea ill run a few tests tonight been a bit busy lately ... ill try a few things and see what i can come up with

@lilfade
Copy link
Contributor

lilfade commented Sep 19, 2014

Im unable to get either #119 or #121 to reproduce any other information you guys might have? Also i reforked my repo started getting a little ... out of hand with the auto merges so this should make it easier.

@alexweissman
Copy link
Member

Hehe cool :-D

Yeah both of these errors make me think that the SITE_ROOT constant isn't being set correctly for him for whatever reason. Firebug/JS console information would help a lot in figuring this out.

@r4zv4n
Copy link
Author

r4zv4n commented Sep 19, 2014

I reproduced the exact same error using a completely different box. You should try and install using the package available for installation at this moment. The problems are exactly the same as above. I am sure, also, that this is a wrong path problem... but no one changed the auto completed field for the root path (which was accurate every time). After getting manualyy to the root directory from the 404 error right after setup (/api/account), I am redirected to /account/dashboard_admin.php with the following console errors:

Uncaught ReferenceError: jQuery is not defined morris-0.4.3.js:11
Uncaught TypeError: undefined is not a function chart-data-morris.js:3
Uncaught ReferenceError: $ is not defined

Also, no CSS is present after completing the setup process.
It looks like is not hard at all to reproduce, so please be kind enough not to mock me..

Thanks... and,
Good luck !

@alexweissman
Copy link
Member

We're certainly not trying to mock you! We want people to use UF, so it is our pleasure to help you get it working. But, the more information you can provide, the better.

In the console, before the actual errors, you should see a number of lines where the JS/CSS files are loaded. Can you tell me what URLs they are trying to request? In Firebug it looks something like this:

screen shot 2014-09-20 at 1 28 50 pm

@r4zv4n
Copy link
Author

r4zv4n commented Sep 20, 2014

"base site path is: "

@lilfade
Copy link
Contributor

lilfade commented Sep 20, 2014

Is this shared hosting or are you running on a vps / dedicated box? If vps what is your server environment your running UF on? Eg. Linux / windows apache version php version this may help narrow the issue down. Sorry if I made it seem like we were ganging up on you and calling you a liar. We want this to work for everyone and try to help as much as we can short of sshing into your server which we can certainly try if you'd like.

@r4zv4n
Copy link
Author

r4zv4n commented Sep 20, 2014

I want to insist on the fact that this error can be replicated. In fact I am convinced that anyone trying to do a fresh install from the current package will get the same error. Please guys, give it a try. A fresh, clean install will certainly get you to the point I am at right now. Thanks !

PS: They were dedicated boxes.

@lilfade
Copy link
Contributor

lilfade commented Sep 20, 2014

I just opened my laptop will be running a install on my vps, will be running @ http://www.fadedgaming.co/r4/ . I will run a default install with nothing changed in the installer, lets see if i can reproduce it on my end.

@r4zv4n
Copy link
Author

r4zv4n commented Sep 20, 2014

Thanks man !

@alexweissman
Copy link
Member

I just tried a fresh install, but no luck reproducing the error. What do the GET lines in your console say? Just "js/..."?

Also, are there any error messages in your php_error_log?

@lilfade
Copy link
Contributor

lilfade commented Sep 20, 2014

yea same here you can check @ http://www.fadedgaming.co/r4/ user: fgdevr4 pass: fgdevr41

@r4zv4n
Copy link
Author

r4zv4n commented Sep 20, 2014

I saw it lil...

@r4zv4n
Copy link
Author

r4zv4n commented Sep 20, 2014

Ok... give me 3 minutes to try something..

@alexweissman
Copy link
Member

I'm gonna grab some dinner, I'll be back in an hour or so. Do you guys want to set up an IRC channel or something where we can discuss this?

@r4zv4n
Copy link
Author

r4zv4n commented Sep 20, 2014

Would not hurt...

@lilfade
Copy link
Contributor

lilfade commented Sep 20, 2014

Sure ill setup one and post info in a sec

@lilfade
Copy link
Contributor

lilfade commented Sep 20, 2014

server: irc.freenode.net
room: #userfrosting

@lilfade
Copy link
Contributor

lilfade commented Sep 21, 2014

Okay @alexweissman we figured out v0.2.0 works perfect but v0.2.1 fails to load after the installer eg domain.tld/index.php fails to load css or anything as well as /account/dashboard.php but in v0.2.0 it loads perfect as it should so we may need to check out that template system code and the nav system as well to make sure. Also he's using nginx and we havent tested on it since @r3wt left us so that may also be a minor issue. (he tested v0.2.0 on apache2 so disreguard the nginx part there)

@alexweissman
Copy link
Member

Hmm. Well I haven't actually tried installing it on a live server yet, just dev. Do you think it has something to do with that?

@lilfade
Copy link
Contributor

lilfade commented Sep 21, 2014

i run it on fadedgaming.co and its "live" both my localhost and fadedgaming.co run just the same although im not sure what the issue is, none the less ill email you some details and you can check it out and see what the dealio is maybe on his server.

@demoncleaner
Copy link

I am getting the same problems. After installation I get a non-css Site with the error:

Warning: file_get_contents(http://mysite.com/models/page-templates/head.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /somefolders/models/template_functions.php on line 112

I am on a shared hosting and I just grapped version 0.2.2

@lilfade
Copy link
Contributor

lilfade commented Nov 13, 2014

@demoncleaner in your database what is your uf_configuration.website_url value ?

Also what host are your using and if you know how is the server setup eg. version information?

@lilfade
Copy link
Contributor

lilfade commented Nov 13, 2014

From some searching i found its most likely in the php.ini file. You will need to edit your php.ini file to change

allow_url_fopen = off

to

allow_url_fopen = on

this is blocking the files from grabbing / including the needed files. If you can't fix this by editing the php.ini file in your site root or by creating a php.ini file and adding the on setting you may have to contact your host to enable it for you.

@demoncleaner
Copy link

Thanks for your super fast reply. I talked to my provider who told me that it is already set to ON.

Christian Rapp | RAPPiD
+49 (0)177 678 1960
www.rappid.de

Am Donnerstag, 13. November 2014 um 09:03 schrieb Bryson:

From some searching i found its most likely in the php.ini file. You will need to edit your php.ini file to change
allow_url_fopen = off

to
allow_url_fopen = on

this is blocking the files from grabbing / including the needed files. If you can't fix this by editing the php.ini file in your site root or by creating a php.ini file and adding the on setting you may have to contact your host to enable it for you.


Reply to this email directly or view it on GitHub (#121 (comment)).

@lilfade
Copy link
Contributor

lilfade commented Nov 13, 2014

no problem, what is the website_url path set to in your database, in the uf_configuration table

@demoncleaner
Copy link

It was set to: mydomain.com//

I tried removing the double // and put / instead with same results.

If it is easier you could contact me directly and I give you access to my setup.

Christian Rapp | RAPPiD
+49 (0)177 678 1960
www.rappid.de

Am Donnerstag, 13. November 2014 um 10:49 schrieb Bryson:

no problem, what is the website_url path set to in your database, in the uf_configuration table


Reply to this email directly or view it on GitHub (#121 (comment)).

@lilfade
Copy link
Contributor

lilfade commented Nov 13, 2014

Sure you can email me @ lilfade@fadedgaming.co

@lilfade
Copy link
Contributor

lilfade commented Nov 13, 2014

The issue was from a .htaccess file limiting access with a .htpasswd file, this is limiting the file_get_contents from working as theres no authencation being done and the server sees the requests as non-local

@alexweissman
Copy link
Member

Issues with file_get_contents and remote paths should be resolved with latest push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility issue with other framework, features
Projects
None yet
Development

No branches or pull requests

4 participants