Jump to content


Photo

Install error 'assert(): Assertion "self::isVersion($actualVersion)" failed'

installation php warning install error

  • Please log in to reply
14 replies to this topic

#1 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

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!

#2 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

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:
if (self::isVersion($actualVersion)){
return false;
}
I didn't test code above, but I think it should help you to avoid this bug.

#3 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

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!

#4 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

Posted 23 April 2012 - 10:55 AM

Can you try to use following code, instead commenting line 753, like I explained in my previous post:
if (!self::isVersion($actualVersion)){
return false;
}

Also can you tell me which version of Apache is installed on your server?

#5 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

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:

	   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.

#6 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

Posted 23 April 2012 - 07:01 PM

Below line that you commented:

// assert('self::isVersion($actualVersion)'); //

add next line:
if (!self::isVersion($actualVersion)){
	return false;
}

Let us know if this helped or not.

#7 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

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

#8 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

Posted 24 April 2012 - 05:27 AM

Sorry, it was my fault, I posted wrong code in my previous post, code should be(notice '!' ):

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).

#9 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

Posted 24 April 2012 - 07:18 AM

Hey ivica,

Still having the same problems :(. What should be re-installed on our server?

Thanks again for all the effort. We are dying to try out Zurmo :).

#10 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

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:

<?php
echo $_SERVER['SERVER_SOFTWARE'];
?>

This will help me to find what is wrong with your Apache version.

#11 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

Posted 24 April 2012 - 11:41 AM

I am thinking, last idea that come to my mind is to add following line:
return true;
under line 66 in same file(InstallUtil.php), it will completely skip checking if Apache version satisfy or not.

#12 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

Posted 24 April 2012 - 03:08 PM

Hey Ivica,

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.

#13 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

Posted 24 April 2012 - 03:39 PM

You can continue with installation, all service that failed are optional. However, having apc and memcache installed would help your application to work load faster.

#14 rwzdoorn

rwzdoorn

    Newbie

  • Members
  • Pip
  • 9 posts
  • LocationNijmegen, The Netherlands

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:

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 Ivica

Ivica

    Advanced Member

  • Moderators
  • 479 posts

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):
max_allowed_packet	  = 20M
thread_stack			= 512K
optimizer-search-depth = 0
max_sp_recursion_depth = 100

Restart mysql server, and try installation again :)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users