Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 06:42 am EST
Geeklog Forums
Another Parse Error
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
I've just installed GeekLog on my site, and have gotten the following error:
Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in /var/www/a1908/foundation/public_html/admin/install/install.php on line 174
I've double checked the files I was supposed to edit, and I don't see any mistakes. I also re-uploaded install.php after unzipping with WinRAR. Does anyone know what this error might refer to?
4
4
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
Yes, mysql_tableanddata.php is there.
Could it be the path that's the problem? It's the only other thing that makes sense to me.
My path is currently:
/var/www/a1908/foundation/
I'm not sure if it's the full path, but I don't know what, if anything goes before /var. My web host doesn't seem to allow me to access anything outside the public folder, so there is no way for me to check.
I'm probably sounding like a complete idiot, but I am somewhat new to this.
5
5
Quote
Anonymous
Anonymous
Parse errors are usually caused by not having matching quotes, brackets, parenthesis, etc or missing a ; or having a malformed command, or having extra characters floating around. It's odd you're getting one of these in the install.php file.
The path is suppose to start at the root. On my system, it starts with /home. The /var directory is another two directories down. Why don't you ask your host what is the absolute path starting from the home or root directory? I don't know if yours works the same.
7
9
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
Thank you, I will email my host shortly to find out about the absolute path.
I'm just curious...what does line 174 in install.php actually do?
require_once($_CONF['path'] . 'sql/' . $_DB_dbms . '_tableanddata.php');
I'm not familiar with the programming side of things.
8
6
Quote
Anonymous
Anonymous
Oh, not too much. It's only the guts of the installation. :O)
The file contains the SQL statements which create all your tables and populates them with initial data.
26
9
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
aaaaaaaarrrrrrrgggggghhhhh! I haven't had any response from my web host, and Geeklog still isn't working :-( It's very frustrating, because this would be the perfect solution for my website. In my desperation I even investigated PHPNuke a bit, but it appears very clunky by comparison, and seems to take up a lot of space. So...I'm not giving up just yet.
I know through searching on this site that other people have had the same problem... how did you people end up fixing it?
9
7
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
If you have shell access to your web server to can figure out the absolute path by cd'ing into your webserver directory and typing 'pwd'. From that you should be able to fill out all your $_CONF path variables correctly.
If you'd like interactive help, you can log onto irc at irc.freenode.net and /join #geeklog.
-Vinny
4
6
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
I discovered that I do indeed have the absolute path correct. So now I don't have a clue at all what the problem could be. Does anyone have any other ideas since it doesn't appear to be a path or corrupted file problem?
5
4
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
I've figured out that what my server doesn't like is any of the "require_once" lines (i.e. require_once($_CONF['path'] . 'sql/updates/' . $_DB_dbms . '_1.3_to_1.3.1.php'); )... because if I just type in the full path to the files instead, it goes through until it reaches those lines I haven't edited manually.
What I don't know is why it has a problem with those lines. Is it an older version of MySQL at work? If I painstakingly change all of the lines manually (assuming the number of them isn't ridiculous), will the problem be fixed?
What I don't know is why it has a problem with those lines. Is it an older version of MySQL at work? If I painstakingly change all of the lines manually (assuming the number of them isn't ridiculous), will the problem be fixed?
22
7
Quote
Anonymous
Anonymous
Now, that is really weird. I wonder why include_once works but not require_once. Where's Dirk, who allowed him to take time off?
You can also find your root's path by running this script:
<?php
phpinfo();
?>
It's located in the DOCUMENT_ROOT or SITE_HTMLROOT variables on that page. You can use this to double check whether your host told you the right info.
If you have to go with another CMS, I wouldn't recommend PHPNuke. That one has a lot of security holes and some hackers have been attacking a their sites lately. Every time they fix one another seems to pop up.
6
4
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
OK, after much tweaking, I finally have Geeklog installing with no problem. But...after I get through the install process, success.php won't load, and neither will index.php. There aren't any errors this time, it just says the page cannot be displayed. They are found initially, but then don't load up.
Does anyone know what could be wrong this time?
4
5
Quote
Status: offline
missarchy
Forum User
Junior
Registered: 03/31/03
Posts: 20
I'm in! :-D I can't wait to customize the template, and start using my new site!
It's been a trying experience installing this thing, but I've learned a lot along the way - a couple days ago I knew nothing about PHP. I'm sure if it wasn't such a great script, I would have just given up.
Thank you to everyone who has offered their help along the way - it was greatly appreciated!
5
6
Quote
All times are EST. The time is now 06:42 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content