Found error in /concrete/startupconfig_check.php file

Permalink
What's up with this "t" business in line #6?
die(t( <--- when I remover the "t" it at least doesn't fail with "Fatal error: Call to undefined function: t()"

So, when I remove it, I am still hosed. IT says I don't have v5... well, that's true..I have 5.2.6! What gives? ;-)

I cut and pasted in the code below...straight out of the .zip...

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$config_check_failed = false;

if (version_compare(PHP_VERSION, '5.2.6', '<')) {
die(t("Concrete5 requires PHP5."));
}

if (!@include('config/site.php')) {
// nothing is installed
$config_check_failed = true;
}

 
mhunter replied on at Permalink Reply
I think I figured it out!

So, I renamed my index.php to index.php5
and it works!

I guess my service provider executes different versions of php based on the file extension.

Wow...I wonder if there is a way to change that behavior.
mhunter replied on at Permalink Reply
my hosting provider parses .php with PHP4

so, I added a .htaccess file with the following:

AddType x-mapp-php5 .php

and things are working fine...on to the NEXT step with fingers crossed.
berkoWitZ replied on at Permalink Reply
Hi mhunter!

I had a similar problem, when I removed the "t" now I got the message about not having PHP5, which in fact I have...i rename the index.php to index.php5 and it worked, I typed the DB credentials and password and all the requirements are all good BUT: 404 not found when I press installed :/

Oh and I tried the .htaccess file but I get a 500 internal server error..have to figure out this one now...

EDIT: the one is probably an error with the mod_rewrite not being enabled, at least that´s what the installation help says...I´ll contact my host and see if it fix the error..
andrew replied on at Permalink Reply
andrew
This was a stupid bug :) this should be fixed in 5.1 that I released yesterday.
JustinPM replied on at Permalink Reply
I just downloaded 5.1.0 this morning and I'm receiving the same error. I'm checking it out, but for me renaming to php5 doesn't fly. And for some reason the .htaccess isn't going either. What was your fix?

*EDIT* - I see that the t was meant to be an underscore I guess, but now I have to figure out why I'm not running this as php5. Thanks!

**EDIT 2** - So my webhost gave me the choice of being on PHP 4 or 5. Odd. All's well that ends well. I like this CMS!
ScottC replied on at Permalink Reply
ScottC
Hey man,

I am on (mt) right now, but heres what I did because I was too stupid to select the right php version in the control panel and I ended up reading some forum post:

.htaaccess in web root
Action php5-script /gs-bin/php-5.2.6-1
AddHandler php5-script .php
"omitted standard C5 rewrite code"


Hosting is something I don't like worrying about and these guys can do a great job for a great price.