Install - Parse Error - config.php on line 7

alt=
Tyler
@tyler
12 years ago
6 posts
So when I try to install jamroom it just throws this error after I enter my database info. I know my memory_limit is set to 128mb so I think that clears your needs - right?
updated by @tyler: 12/16/13 07:35:06AM
brian
@brian
12 years ago
10,148 posts
Is this when running the installer? The installer writes the data/config/config.php file, so something is likely corrupting it. If you can, after install, send me the data/config/config.php file (it contains your MySQL username and password, so don't post it here).

Thanks!

Edit to add: my email address is brian [at] jamroom [dot] net


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 11/14/13 07:29:01AM
alt=
Tyler
@tyler
12 years ago
6 posts
No worries here. Besides the opening php tags - which i removed - this is the entire file....

$_conf['jrCore_db_host'] = 'localhost';
$_conf['jrCore_db_port'] = '3306';
$_conf['jrCore_db_name'] = 'jamming';
$_conf['jrCore_db_user'] = 'test';
$_conf['jrCore_db_pass'] = '111111';
$_conf['jrCore_base_url'] = 'http://127.0.0.1\';
brian
@brian
12 years ago
10,148 posts
hmm - that last stray slash before the closing single quote should not be there - I'm guessing when you entered the URL for the site you had a closing slash at the end of the URL? I just did a test install here and had no problems, but I can see how a backslash at the end of the URL would cause this issue.

Change it to this:

$_conf['jrCore_db_host'] = 'localhost';
$_conf['jrCore_db_port'] = '3306';
$_conf['jrCore_db_name'] = 'jamming';
$_conf['jrCore_db_user'] = 'test';
$_conf['jrCore_db_pass'] = '111111';
$_conf['jrCore_base_url'] = 'http://127.0.0.1'; 

And save it - that will fix it.

Let me know if that helps.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
Tyler
@tyler
12 years ago
6 posts
I feel dumb. And no, I didn't type that in. It was automatically there. I am using WAMP so I don't know if that has something to do with it. Sorry for wasting your time :|
brian
@brian
12 years ago
10,148 posts
Hey no worries - I've not ever seen that before, so it's good to know - if we see other users on a WAMP setup that see this issue.

One thing to note too - Jamroom is not going to fully function on a WAMP setup, since it uses binaries (ffmpeg, sox) for media conversions and such that do not run on Windows. So just a heads up that you'll want a small Linux based setup for complete testing.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
12 years ago
7,768 posts
total guess: is "enable magic quotes" on in you php.ini setting. That might possibly throw an extra \ in there.

Tags