Install error 'assert(): Assertion "self::isVersion($actualVersion)" failed'
Started by rwzdoorn, Apr 19 2012 07:41 AM
installation php warning install error
14 replies to this topic
#1
Posted 19 April 2012 - 07:41 AM
Hey zurmo people,
First off: Let me compliment you on working on this great project. We are a app developer company from the Netherlands and would like to use Zurmo as our CRM.
When following the installation guidelines i've encountered a problem with our server:
"assert(): Assertion "self::isVersion($actualVersion)" failed"
It's in line 'app/protected/modules/install/utils/InstallUtil.php(753)'
Not enough info? Check the error http://crm.dreamix-s...install/default
All folders and files are writable and still we can't continuo installing.
Also just a tip.. i've read a couple of questions regarding installation. Just out of usability perspective (i'm a UI/Interaction designer) have a look at the wordpress installation. It's pretty quick and need how they install the DB's etc.
Hope you guys can help us out. We are looking forward using ZurmoCRM!
First off: Let me compliment you on working on this great project. We are a app developer company from the Netherlands and would like to use Zurmo as our CRM.
When following the installation guidelines i've encountered a problem with our server:
"assert(): Assertion "self::isVersion($actualVersion)" failed"
It's in line 'app/protected/modules/install/utils/InstallUtil.php(753)'
Not enough info? Check the error http://crm.dreamix-s...install/default
All folders and files are writable and still we can't continuo installing.
Also just a tip.. i've read a couple of questions regarding installation. Just out of usability perspective (i'm a UI/Interaction designer) have a look at the wordpress installation. It's pretty quick and need how they install the DB's etc.
Hope you guys can help us out. We are looking forward using ZurmoCRM!
#2
Posted 19 April 2012 - 02:28 PM
Glad to hear to you want to try ZurmoCRM.
I checked your issue, and created Pivotal story for it, so it will be fixed in next few days.
However, you can make temporary fix into your working copy, open app/protected/modules/install/utils/InstallUtills.php file, and comment out line 753, or even better, instead that line, add next line:
I checked your issue, and created Pivotal story for it, so it will be fixed in next few days.
However, you can make temporary fix into your working copy, open app/protected/modules/install/utils/InstallUtills.php file, and comment out line 753, or even better, instead that line, add next line:
if (self::isVersion($actualVersion)){
return false;
}
I didn't test code above, but I think it should help you to avoid this bug.
#3
Posted 23 April 2012 - 08:01 AM
Hi Ivica,
Thanks for the quick reply! I've commented out line 753 which resulted in the official install page. After 'click to start' it results in more errors: http://crm.dreamix-s...ult/checkSystem . I tried the other code but wouldn't work.
Thanks again for helping out!
Thanks for the quick reply! I've commented out line 753 which resulted in the official install page. After 'click to start' it results in more errors: http://crm.dreamix-s...ult/checkSystem . I tried the other code but wouldn't work.
Thanks again for helping out!
#5
Posted 23 April 2012 - 12:08 PM
Hey Ivica,
Apache 2.2.19
I'm not really sure where to place the code. What code should I replace? In code are my 750 till 759 lines:
As you might already noticed, i'm not a programmer myself.
Apache 2.2.19
I'm not really sure where to place the code. What code should I replace? In code are my 750 till 759 lines:
protected static function checkVersion($minimumRequiredVersion, $actualVersion)
{
assert('self::isVersion($minimumRequiredVersion)');
// assert('self::isVersion($actualVersion)'); //
if (preg_match('/^\d+\.\d+$/', $actualVersion) == 1) // Not Coding Standard
{
$actualVersion .= '.0';
}
return version_compare($actualVersion, $minimumRequiredVersion) >= 0;
}
As you might already noticed, i'm not a programmer myself.
#7
Posted 23 April 2012 - 08:12 PM
Hey Ivica,
Added the line after the commented line, still see the install page correct but after clicking next it results in more errors:
http://crm.dreamix-s...ult/checkSystem
Added the line after the commented line, still see the install page correct but after clicking next it results in more errors:
http://crm.dreamix-s...ult/checkSystem
#8
Posted 24 April 2012 - 05:27 AM
Sorry, it was my fault, I posted wrong code in my previous post, code should be(notice '!' ):
Once you change this, inform us, so we can maybe provide more details about problem on your server, because seems that some required software is not installed correctly(so it doesn't return its version number).
if (!self::isVersion($actualVersion)){
return false;
}
Once you change this, inform us, so we can maybe provide more details about problem on your server, because seems that some required software is not installed correctly(so it doesn't return its version number).
#10
Posted 24 April 2012 - 11:36 AM
Do you know which version of Apache you have installed on your server?
Also it would be good if you could create new file, with code below, and open it in browser, and post here output from browser:
This will help me to find what is wrong with your Apache version.
Also it would be good if you could create new file, with code below, and open it in browser, and post here output from browser:
<?php echo $_SERVER['SERVER_SOFTWARE']; ?>
This will help me to find what is wrong with your Apache version.
#12
Posted 24 April 2012 - 03:08 PM
Hey Ivica,
The return true; helped a bit. I've got the following report:
So what to do? Install these extensions first?
Also, we are running apache Apache 2.2.19.
The return true; helped a bit. I've got the following report:
http://crm.dreamix-studio.com/app/index.php/install/default/checkSystem
PHP post_max_size setting is: 8M minimum requirement is: 20M FAIL APC is not installed Minimum version required: 1.0.0 FAIL Tidy is not installed Minimum version required: 2.0 FAIL Memcache extension is not installed. Minimum version required: 2.2.0.
So what to do? Install these extensions first?
Also, we are running apache Apache 2.2.19.
#14
Posted 24 April 2012 - 09:08 PM
Hey Ivica,
Okay, i'm one step closer to installing Zurmo.. I've changed some things in my htaccess for the upload error, but now im left with the following:
How do I change these settings of mySQL? I'm using normaly directadmin but can't find the options there.
Okay, i'm one step closer to installing Zurmo.. I've changed some things in my htaccess for the upload error, but now im left with the following:
Failed Required Services Database max_sp_recursion_depth size is: 0 minimum requirement is: 20 FAIL Database thread_stack value is: 262144 minimum requirement is: 524288 FAIL Database optimizer_search_depth value is 62. It is required to be set to 0. FAIL Failed Optional Services Database max_allowed_packet size is: 1M minimum requirement is: 20M FAIL
How do I change these settings of mySQL? I'm using normaly directadmin but can't find the options there.
#15
Posted 25 April 2012 - 05:02 AM
In order to fix those issues, you need to open my.cnf(or my.ini on Linux) mysql config file, and add/edit following lines(under [mysqld] section):
Restart mysql server, and try installation again
max_allowed_packet = 20M thread_stack = 512K optimizer-search-depth = 0 max_sp_recursion_depth = 100
Restart mysql server, and try installation again
Also tagged with one or more of these keywords: installation, php warning, install error
Zurmo Discussions →
Installation and Setup →
Job Manager - cPanel - Cron Setup - "No input file specified"Started by benhoward, 12 Jun 2013 |
|
|
||
Zurmo Discussions →
Installation and Setup →
Unable to install due to "PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM" errorStarted by BjornV, 15 May 2013 |
|
|
||
Zurmo Discussions →
Installation and Setup →
Installing Under SubdomainStarted by Benbison, 07 May 2013 |
|
|
||
Zurmo Discussions →
Installation and Setup →
Installation ErrorStarted by DrewUte, 30 Apr 2013 |
|
|
||
Zurmo Discussions →
Installation and Setup →
No backgrounds or icons on fresh install 1.1.31Started by JadeGolem, 01 Apr 2013 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









