Jump to content


Photo

ASSERTION FAILED in /home/content/08/8802508/html/planner/app/protected/modules/install/utils/InstallUtil.php on line 572: assert('self::isVersion($ac

Installation

  • Please log in to reply
16 replies to this topic

#1 svbailey

svbailey

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 13 January 2012 - 10:24 PM

Hi All.

This could very well be pilot error and i apologise in advance if i have done or failed to do something very simple that has resulted in this!

I have followed the installation instructions and on going to mysite.com/app/index.php to install get the following error:



ASSERTION FAILED in /home/content/08/8802508/html/planner/app/protected/modules/install/utils/InstallUtil.php on line 572: assert('self::isVersion($actualVersion)');

PHP Error

assert() [<a href='function.assert'>function.assert</a>]: Assertion &quot;self::isVersion($actualVersion)&quot; failed


/home/content/08/8802508/html/planner/app/protected/modules/install/utils/InstallUtil.php(572)


560 $contents);
561 file_put_contents($perInstanceConfigFile, $contents);
562 }
563
564 public static function isVersion($version)
565 {
566 return preg_match('/^\d+\.\d+(.\d+)?/', $version) == 1; // Not Coding Standard
567 }
568
569 protected static function checkVersion($minimumRequiredVersion, $actualVersion)
570 {
571 assert('self::isVersion($minimumRequiredVersion)');
572 assert('self::isVersion($actualVersion)');
573 if (preg_match('/^\d+\.\d+$/', $actualVersion) == 1) // Not Coding Standard
574 {
575 $actualVersion .= '.0';
576 }
577 return version_compare($actualVersion, $minimumRequiredVersion) >= 0;
578 }
579
580 protected static function getVersionFromPhpInfo($regEx)
581 {
582 ob_start();
583 phpinfo();
584 $phpInfo = trim(ob_get_clean());


Stack Trace
#0

[/center] /home/content/08/8802508/html/planner/app/protected/modules/install/utils/InstallUtil.php(572): assert("self::isVersion($actualVersion)")


567 }
568
569 protected static function checkVersion($minimumRequiredVersion, $actualVersion)
570 {
571 assert('self::isVersion($minimumRequiredVersion)');
572 assert('self::isVersion($actualVersion)');
573 if (preg_match('/^\d+\.\d+$/', $actualVersion) == 1) // Not Coding Standard
574 {
575 $actualVersion .= '.0';
576 }
577 return version_compare($actualVersion, $minimumRequiredVersion) >= 0;
#1

[/center] /home/content/08/8802508/html/planner/app/protected/modules/install/utils/InstallUtil.php(221): InstallUtil::checkVersion("2.0", false)


216 public static function checkTidy($minimumRequiredVersion, /* out */ &$actualVersion)
217 {
218 $actualVersion = phpversion('tidy');
219 if ($actualVersion !== null)
220 {
221 return self::checkVersion($minimumRequiredVersion, $actualVersion);
222 }
223 return false;
224 }
225
226 /**
#2

[/center] /home/content/08/8802508/html/planner/app/protected/modules/install/serviceHelpers/ServiceHelper.php(156): InstallUtil::checkTidy("2.0", false)


151
152 protected function callCheckServiceMethod($methodName, & $actualVersion)
153 {
154 assert('is_string($methodName)');
155 assert('$actualVersion == null');
156 return InstallUtil::$methodName($this->minimumVersion, $actualVersion);
157 }
158
159 protected function getMinimumVersionLabel()
160 {
161 assert('is_string($this->minimumVersion)');
#3

+

[/center] /home/content/08/8802508/html/planner/app/protected/modules/install/serviceHelpers/ServiceHelper.php(129): ServiceHelper->callCheckServiceMethod("checkTidy", "false")

#4

+

[/center] /home/content/08/8802508/html/planner/app/protected/modules/install/serviceHelpers/TidyServiceHelper.php(36): ServiceHelper->checkServiceAndSetMessagesByMethodNameAndDisplayLabel("checkTidy", "Tidy")

#5

+

[/center] /home/content/08/8802508/html/planner/app/protected/modules/install/serviceHelpers/ServiceHelper.php(90): TidyServiceHelper->checkService()

#6

+

[/center] /home/content/08/8802508/html/planner/app/protected/modules/zurmo/components/BeginRequestBehavior.php(62): ServiceHelper->runCheckAndGetIfSuccessful()

#7

+

[/center] /home/content/08/8802508/html/planner/yii/framework/base/CComponent.php(571): BeginRequestBehavior->handleTidyCheck(CEvent)

#8

+

[/center] /home/content/08/8802508/html/planner/yii/framework/base/CApplication.php(185): CComponent->raiseEvent("onBeginRequest", CEvent)

#9

+

[/center] /home/content/08/8802508/html/planner/yii/framework/base/CApplication.php(157): CApplication->onBeginRequest(CEvent)

#10

+

[/center] /home/content/08/8802508/html/planner/app/index.php(53): CApplication->run()


2012-01-13 15:07:59 Apache Yii Framework/1.1.8

#2 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 14 January 2012 - 12:11 AM

Do you have the tidy extension turned on for php? Looks like that is where it is jammed up. On http://zurmo.org/download, there are 3 download instructions available. It says all the extensions required to install Zurmo. Please let me know if you have any other questions.

Thanks,
Jason

Jason Green
Zurmo Team
Need support? Upgrade now


#3 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 14 January 2012 - 04:42 AM

Also if you can let me know what system you are using Linux/Windows, and what version on MySQL, php etc.

Jason Green
Zurmo Team
Need support? Upgrade now


#4 legionar

legionar

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 30 January 2012 - 07:18 AM

Hi !

I am very new to zurmo, and my english is also not my first language.
But, I have very similar problem.
My OS is win7 professional, and everything works(!), except two things:
1. My zurmo is very, very, very slow. :(
I wondered, and want to know why. So I tried to "debug".
2. If I change $debugOn = true, I obtain this:


PHP Error

assert() [<a href='function.assert'>function.assert</a>]: Assertion &quot;crc32(serialize($model)) == $checksum&quot; failed



C:\xampp\htdocs\zurmo\app\protected\extensions\zurmoinc\framework\models\RedBeanModelsCache.php(71)



59 if (!is_array($serializedModelAndChecksum) || count($serializedModelAndChecksum) != 2)
60 {
61 throw new NotFoundException();
62 }
63 list($serializedModel, $checksum) = $serializedModelAndChecksum;
64 assert('$checksum == 0 || $checksum == crc32($serializedModel)');
65 $model = unserialize($serializedModel);
66 if ($model === null) // RedBeanModel objected to what was being unserialized.
67 {
68 throw new NotFoundException();
69 }
70 assert('serialize($model) == $serializedModel');
71 assert('crc32(serialize($model)) == $checksum');
72 assert('$model instanceof RedBeanModel');
73 self::$modelIdentifiersToModels[$modelIdentifier] = $model;
74 return $model;
75 }
76 throw new NotFoundException();
77 }
78
79 /**
80 * Cache a model maintaining the in memory model
81 * cache to a limited size.
82 */
83 public static function cacheModel(RedBeanModel $model)


Stack Trace
#0

[/center] C:\xampp\htdocs\zurmo\app\protected\extensions\zurmoinc\framework\models\RedBeanModelsCache.php(71): assert("crc32(serialize($model)) == $checksum")

66 if ($model === null) // RedBeanModel objected to what was being unserialized.
67 {
68 throw new NotFoundException();
69 }
70 assert('serialize($model) == $serializedModel');
71 assert('crc32(serialize($model)) == $checksum');
72 assert('$model instanceof RedBeanModel');
73 self::$modelIdentifiersToModels[$modelIdentifier] = $model;
74 return $model;
75 }
76 throw new NotFoundException();
#1

[/center] C:\xampp\htdocs\zurmo\app\protected\extensions\zurmoinc\framework\models\RedBeanModel.php(2618): RedBeanModelsCache::getModel("User1")

2613 $modelClassName = get_called_class();
2614 }
2615 $modelIdentifier = $modelClassName . strval($bean->id);
2616 try
2617 {
2618 $model = RedBeanModelsCache::getModel($modelIdentifier);
2619 $model->constructIncomplete($bean, false);
2620 return $model;
2621 }
2622 catch (NotFoundException $e)
2623 {
#2

[/center] C:\xampp\htdocs\zurmo\app\protected\modules\users\models\User.php(39): RedBeanModel::makeModel(RedBean_OODBBean)

34 assert('$bean === false || $bean instanceof RedBean_OODBBean');
35 if ($bean === false)
36 {
37 throw new NotFoundException();
38 }
39 return self::makeModel($bean);
40 }
41
42 public static function authenticate($username, $password)
43 {
44 assert('is_string($username)');
#3

+

[/center] C:\xampp\htdocs\zurmo\app\protected\modules\zurmo\components\WebUser.php(43): User::getByUsername("super")
#4

+

[/center] C:\xampp\htdocs\zurmo\app\protected\modules\zurmo\components\ZurmoLanguageHelper.php(55): WebUser->__get("userModel")
#5

+

[/center] C:\xampp\htdocs\zurmo\app\protected\modules\zurmo\components\BeginRequestBehavior.php(191): ZurmoLanguageHelper->load()
#6

+

[/center] C:\xampp\htdocs\zurmo\yii\framework\base\CComponent.php(571): BeginRequestBehavior->handleLoadLanguage(CEvent)
#7

+

[/center] C:\xampp\htdocs\zurmo\yii\framework\base\CApplication.php(185): CComponent->raiseEvent("onBeginRequest", CEvent)
#8

+

[/center] C:\xampp\htdocs\zurmo\yii\framework\base\CApplication.php(157): CApplication->onBeginRequest(CEvent)
#9

+

[/center] C:\xampp\htdocs\zurmo\app\index.php(56): CApplication->run()

2012-01-30 01:08:27 Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Yii Framework/1.1.8




Please, can you help me ?





#5 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 30 January 2012 - 06:48 PM

When you turn on debug after you have installed the application:

Add &clearCache=1 to the URL of any page, and it will fix your problem you are seeing.

If you are having speed issues, did you install Memcache? I highly recommend memcache as it greatly speeds up the application.

Turning on debug will actually make it slower.

Jason Green
Zurmo Team
Need support? Upgrade now


#6 legionar

legionar

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 31 January 2012 - 06:25 PM

Meanwhile, I realized, that it must be something with cache, so I cleared the whole browser's cache, and it works. :)
Thank you for you respond.
But, speed is still problem. I have installed memcache, all items are "PASS", service is running ... :(
And, for instance, when I choose "leads" and on the row only "detail", an error 'occure'.
But when I choose "edit" (a small icon at the end of line), everything is OK.
And, in that error message, I have incorrect return address: not "/zurmo/app", but only "/app".
I found it in "/app/protected/modules/zurmo/views/ErrorView.php", and corrected it for me. I hope, nothing will go wrong ...
One thing more: I have installed my zurmo-instance into "http://localhost/zurmo" folder, not into root.
Can it be a problem ?

I am affraid, I'll have even more problems, so - be patient with me, please. :)

#7 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 31 January 2012 - 07:48 PM

Meanwhile, I realized, that it must be something with cache, so I cleared the whole browser's cache, and it works. :)
Thank you for you respond.
But, speed is still problem. I have installed memcache, all items are "PASS", service is running ... :(
And, for instance, when I choose "leads" and on the row only "detail", an error 'occure'.
But when I choose "edit" (a small icon at the end of line), everything is OK.
And, in that error message, I have incorrect return address: not "/zurmo/app", but only "/app".
I found it in "/app/protected/modules/zurmo/views/ErrorView.php", and corrected it for me. I hope, nothing will go wrong ...
One thing more: I have installed my zurmo-instance into "http://localhost/zurmo" folder, not into root.
Can it be a problem ?

I am affraid, I'll have even more problems, so - be patient with me, please. :)

Which version of the application do you have installed?

Jason Green
Zurmo Team
Need support? Upgrade now


#8 legionar

legionar

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 31 January 2012 - 08:35 PM

Which version of the application do you have installed?

zurmo-stable-0.5.7.5a3c5db6b1ba.zip
memcached-win64-1.4.4-14.zip (I have win7 prof. on 64bit AMD 2-core machine with 4GB RAM)
php_apc-20110109-5.3-vc9-x86.zip
php_memcache-2.2.6-5.3-vc9-x86.zip
xampp-win32-1.7.7-VC9.zip

Maybe php memcache.dll and memcached.exe are not compatible ?

#9 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 31 January 2012 - 11:44 PM

zurmo-stable-0.5.7.5a3c5db6b1ba.zip
memcached-win64-1.4.4-14.zip (I have win7 prof. on 64bit AMD 2-core machine with 4GB RAM)
php_apc-20110109-5.3-vc9-x86.zip
php_memcache-2.2.6-5.3-vc9-x86.zip
xampp-win32-1.7.7-VC9.zip

Maybe php memcache.dll and memcached.exe are not compatible ?

Can you turn debug = true, and then send a screenshot of the error you get when you click the link? Also can you send a screenshot of the link you are clicking?

Jason Green
Zurmo Team
Need support? Upgrade now


#10 legionar

legionar

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 01 February 2012 - 09:20 AM

After some 'investigation', I found that an error occurs only if I set $language='sk'.
So, it is obvious, that simple translation of all messages files is not enough ... :)

Speed is still a problem. :( For instance, with $language='en' and $debugOn, the first page after login gives performance report:

Page is valid XHTML and has been tidied.

Page render time: 9.623 seconds.

Total page view time including validation and tidy: 9.716 seconds.

Total page time: 17.589 seconds.


With $debugOn=false it gives:

Load time: 14.415 seconds.




I'd like to repair this first.
Then I'd like to localize zurmo into Slovak. (I wrote to Ray, and sent him all files, but it is only the first attempt. It should be checked several times, and I need some futher information, how to complete that job. Oh, and I'd like to have some 'language picker' on my page. Don't you have any ?)

Thanks for your help.

#11 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 01 February 2012 - 06:02 PM

First i will answer your language related questions:
You need to add $instanceConfig['params']['supportedLanguages']['sk'] = 'Slovak' into your perInstanceConfig.php
After you do this in the admin under language management you should be able to activate Slovak. Then from there you can go to your user and choose the language.

Thanks for sending the language files to Ray. I need some time to think how best to offer up new languages that are not part of the core application. I am thinking about having an extensions area on the site to download language packs, but then I need to come up with a way to handle installation of those packs.

I will private message you so we can talk about this in more detail.

Regarding your speed issues, the fastest should be memcache on, with debug off. Do you have APC running? If so, turn APC off. Also can you send me the specs of the machine you are running this on?

Jason Green
Zurmo Team
Need support? Upgrade now


#12 holyxing

holyxing

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 09 February 2012 - 01:48 PM

Hi,Jason

I spent to lot of time to explore the speed issue, the main reason was about connection string . u know, I modify ~/config/debut.php at line 29

change $debugOn = false

to $debugOn = true;

the follow printing message are Zurmo index.php page render time between host=localhost & host=127.0.0.1

setting host=localhost

Page render time: 10.804 seconds.
Total page view time including validation and tidy: 10.805 seconds.
Total page time: 17.061 seconds.

Database: 'mysql:host=localhost;dbname=zurmo', username: 'zurmo'.

setting host=127.0.0.1
Page render time: 9.914 seconds.
Total page view time including validation and tidy: 9.915 seconds.
Total page time: 14.099 seconds.

Database: 'mysql:host=127.0.0.1;dbname=zurmo', username: 'zurmo'.

the result of render time was so big different, does it ?

BTW, How can I improve my performance continued?

#13 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 09 February 2012 - 02:57 PM

First,
change debugOn = false. Go to the app in the browser. You will need to add &clearCache=1 as a parameter to the URL after you do this. Please let me know what response times you get then, and which page you are on. And does the time stay the same on each page?

Also did you install memcache?

Jason Green
Zurmo Team
Need support? Upgrade now


#14 holyxing

holyxing

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 10 February 2012 - 07:12 AM

yes, Jason
I have installed memcached with my local and add url parameter &clearCache=1 .

the page render time is loading home page which log in success of zurmo.

setting host=localhost

Page render time: 10.804 seconds.
Total page view time including validation and tidy: 10.805 seconds.
Total page time: 17.061 seconds.

Database: 'mysql:host=localhost;dbname=zurmo', username: 'zurmo'.

setting host=127.0.0.1
Page render time: 9.914 seconds.
Total page view time including validation and tidy: 9.915 seconds.
Total page time: 14.099 seconds.

Database: 'mysql:host=127.0.0.1;dbname=zurmo', username: 'zurmo'.

#15 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 10 February 2012 - 02:12 PM

yes, Jason
I have installed memcached with my local and add url parameter &clearCache=1 .

the page render time is loading home page which log in success of zurmo.

setting host=localhost

Page render time: 10.804 seconds.
Total page view time including validation and tidy: 10.805 seconds.
Total page time: 17.061 seconds.

Database: 'mysql:host=localhost;dbname=zurmo', username: 'zurmo'.

setting host=127.0.0.1
Page render time: 9.914 seconds.
Total page view time including validation and tidy: 9.915 seconds.
Total page time: 14.099 seconds.

Database: 'mysql:host=127.0.0.1;dbname=zurmo', username: 'zurmo'.

Did you load the demo data? Also what speeds do you get if you go to the admin page? Additionally, can you provide the specs of your machine?

Jason Green
Zurmo Team
Need support? Upgrade now


#16 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 11 February 2012 - 04:41 PM

Also - is the accounts list page slow too? Can you provide those timings? Also can you send your phpinfo as an attachment?

Jason Green
Zurmo Team
Need support? Upgrade now


#17 Jason

Jason

    Administrator

  • Administrators
  • 718 posts
  • LocationChicago

Posted 12 February 2012 - 03:55 PM

I believe http://zurmo.org/fea...nce-improvement will create a major boost and resolve your performance issues on your local machine.

Jason Green
Zurmo Team
Need support? Upgrade now






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users