c5 installation problems with easyphp 5.3.0 on windows 7

Permalink
Hello,

i have been trying installing c5 locally on my machine - tried both xampp and easyphp 5.3.0 - but I always get these errors during the installation script:
Deprecated: Function eregi() is deprecated in C:\EasyPHP530\www\concrete\helpers\validation\strings.php on line 31

Warning: get_class() expects parameter 1 to be object, null given in C:\EasyPHP530\www\concrete\blocks\autonav\controller.php on line 189

Fatal error: Call to a member function add() on a non-object in C:\EasyPHP530\www\concrete\models\collection.php on line 418

I followed the installation instructions and got c5 to work on my hosted domain.

I am not a developer so have very limited familiarity with coding...can anybody help please?

 
wltr replied on at Permalink Reply
wltr
You should try a 5.2 version.
marcosalino replied on at Permalink Reply
Cheers dude,

I didn't know that, got it working no-problem with easy php 5.2 !!

Thanks
ScottC replied on at Permalink Reply
ScottC
I was literally leaving for vacation so I didn't and haven't yet figured what the issue is, so I am running an older version of php as well for the time being.

This will need to be addressed once php 5.3 is more widespread.
abulka replied on at Permalink Reply
abulka
Seems like the latest concrete gives errors during a fresh install, under xampp in windows 7. Probably unrelated to win 7 - probably the latest php causing this. I've seen similar problems months ago with other version numbers so it seems like concrete never likes the latest php... which is unfortunate since xampp gives you the latest php.

Deprecated: Function eregi() is deprecated in C:\xampplite\htdocs\concrete5.3.2\concrete\helpers\validation\strings.php on line 31

Warning: get_class() expects parameter 1 to be object, null given in C:\xampplite\htdocs\concrete5.3.2\concrete\blocks\autonav\controller.php on line 189

Fatal error: Call to a member function add() on a non-object in C:\xampplite\htdocs\concrete5.3.2\concrete\models\collection.php on line 418
dogierider replied on at Permalink Reply
dogierider
on concrete/helpers/validation/strings.php

you shoud find and replace eregi with preg_match.
remember preg_match should be used with "/".
ex)
return eregi("^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$", $em);
to
return preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/", $em);


on concrete/blocks/autonav/controller.php
change as follow.
if($obj){
switch(strtolower(get_class($obj))) {
...
}
}

then try install. but result is "Fatal error: Call to a member function add() on a non-object in"
then you add config/site.php manually.

<?php
define('LOCALE', 'ja_JP');
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'concrete');
define('DB_PASSWORD', 'mypass');
define('DB_DATABASE', 'concrete');
define('BASE_URL', 'http://example.com');
define('DIR_REL', '');
define('PASSWORD_SALT', '');
?>

you should manually add Packages and Blocks but concrete5 will work.