View Full Version : Install Parse Error
rightworks
02-08-2010, 04:17 AM
I'm getting the following error when trying to access the admin page on the initial install:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h04/mnt/79485/domains/news.massroundup.com/html/Hotaru.php on line 28
Not sure if this is the hotaru.php file or if it's actually a bad setting in the hotaru_settings.php. I haven't made any changes to the hotaru.php
shibuya246
02-08-2010, 05:12 AM
Are you using a server with PHP 4 or 5? That error normally appears for other software as well when the server is only set up to use PHP4. Are you able to upgrade to PHP5? This should solve the problem. Let me know how you go.
rightworks
02-08-2010, 12:04 PM
The server is using php 5. It's hosted on media temple, if that makes a difference.
The server is using php 5. It's hosted on media temple, if that makes a difference.
Could you tell us which version of PHP 5 you are using? Hotaru was designed on 5.2.6, and the error you quote is usually a sign that you're running PHP 4. Take a look at the thread below. It implies that if you want to run PHP 5 on media temple, you have to add a line to your .htaccess file:
Update: MediaTemple GS is now running PHP 5.2.6. To enable it, use this snippet instead:
Action php5-script /gs-bin/php-5.2.6-1
AddHandler php5-script .php
http://www.adamthody.com/2008/09/php5-on-media-temple-grid-server/
rightworks
02-08-2010, 10:59 PM
It was the php 4 vs php 5. I assumed because the main site, which is running wordpress, was php 5, that the subdomain I created would also be php5. Bad assumption. Switch the setting, added the code to htaccess for good measure, and it appears we're up and running.
thanks.
shibuya246
02-09-2010, 03:03 AM
perfect. glad that you got it sorted out and working. Let us know if you need any thing to have hotaru performing at 100% for you.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.