Jump to content


Photo

Issue after updating to 7.1


  • Please log in to reply
7 replies to this topic

#1 JacobD

JacobD

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 10 January 2019 - 07:10 AM

Here is the error I get on every page every module other than the admin page:

 

xwRY1Sl.jpg

 

Stack trace:

PHP warning in /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/util/EncryptUtil.php(168)
#0 /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/util/EncryptUtil.php(168): openssl_decrypt()
#1 /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/behaviors/JSONEmbeddedModelFieldsBehavior.php(258): EncryptUtil->decrypt()
#2 /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/behaviors/TransformedFieldStorageBehavior.php(106): JSONEmbeddedModelFieldsBehavior->unpackAttribute()
#3 /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/behaviors/TransformedFieldStorageBehavior.php(119): JSONEmbeddedModelFieldsBehavior->unpackAll()
#4 /home/altitude/www/crm/X2CRM-master/x2engine/framework/base/CComponent.php(561): JSONEmbeddedModelFieldsBehavior->afterFind()
#5 /home/altitude/www/crm/X2CRM-master/x2engine/framework/db/ar/CActiveRecord.php(902): Credentials->raiseEvent()
#6 /home/altitude/www/crm/X2CRM-master/x2engine/framework/db/ar/CActiveRecord.php(1040): Credentials->onAfterFind()
#7 /home/altitude/www/crm/X2CRM-master/x2engine/framework/db/ar/CActiveRecord.php(1874): Credentials->afterFind()
#8 /home/altitude/www/crm/X2CRM-master/x2engine/framework/db/ar/CActiveRecord.php(1359): Credentials->populateRecord()
#9 /home/altitude/www/crm/X2CRM-master/x2engine/framework/db/ar/CActiveRecord.php(1494): Credentials->query()
#10 /home/altitude/www/crm/X2CRM-master/x2engine/protected/models/Admin.php(87): Credentials->findByPk()
#11 /home/altitude/www/crm/X2CRM-master/x2engine/protected/models/Admin.php(129): Admin->getGoogleIntegrationCredentials()
#12 /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/X2ClientScript.php(957): Admin->getGoogleApiKey()
#13 /home/altitude/www/crm/X2CRM-master/x2engine/protected/views/profile/_activityFeed.php(278): X2ClientScript->registerGeolocationScript()
#14 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CBaseController.php(126): require()
#15 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CBaseController.php(95): ProfileController->renderInternal()
#16 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CController.php(872): ProfileController->renderFile()
#17 /home/altitude/www/crm/X2CRM-master/x2engine/protected/views/profile/activity.php(65): ProfileController->renderPartial()
#18 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CBaseController.php(126): require()
#19 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CBaseController.php(95): ProfileController->renderInternal()
#20 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CController.php(872): ProfileController->renderFile()
#21 /home/altitude/www/crm/X2CRM-master/x2engine/protected/controllers/x2base.php(730): ProfileController->renderPartial()
#22 /home/altitude/www/crm/X2CRM-master/x2engine/protected/controllers/ProfileController.php(1624): ProfileController->render()
#23 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/actions/CInlineAction.php(49): ProfileController->actionActivity()
#24 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CController.php(308): CInlineAction->runWithParams()
#25 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilterChain.php(134): ProfileController->runAction()
#26 /home/altitude/www/crm/X2CRM-master/x2engine/protected/controllers/x2base.php(580): CFilterChain->run()
#27 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#28 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#29 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilter.php(40): CFilterChain->run()
#30 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CController.php(1148): CAccessControlFilter->filter()
#31 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CInlineFilter.php(58): ProfileController->filterAccessControl()
#32 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#33 /home/altitude/www/crm/X2CRM-master/x2engine/protected/controllers/x2base.php(580): CFilterChain->run()
#34 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#35 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#36 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilter.php(40): CFilterChain->run()
#37 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilterChain.php(131): FileUploadsFilter->filter()
#38 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilter.php(40): CFilterChain->run()
#39 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/filters/CFilterChain.php(131): X2AjaxHandlerFilter->filter()
#40 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CController.php(291): CFilterChain->run()
#41 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CController.php(265): ProfileController->runActionWithFilters()
#42 /home/altitude/www/crm/X2CRM-master/x2engine/framework/web/CWebApplication.php(282): ProfileController->run()
#43 /home/altitude/www/crm/X2CRM-master/x2engine/protected/components/X2WebApplication.php(64): X2WebApplication->runController()
#44 /home/altitude/www/crm/X2CRM-master/x2engine/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#45 /home/altitude/www/crm/X2CRM-master/x2engine/index.php(66): X2WebApplication->run()

I already tried updating to PHP7.1 and 7.2 and no luck still.



#2 X2Peter

X2Peter

    Advanced Member

  • Administrators
  • 68 posts

Posted 10 January 2019 - 10:00 AM

Hello JacobD,

 

You may need to re-generate your encryption.iv and encryption.key files in protected/config. You can do this by deleting these files (the app should then re-create them or you can manually create them by running protected/yiic cryptsetup).



#3 JacobD

JacobD

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 10 January 2019 - 10:43 AM

Hello JacobD,

 

You may need to re-generate your encryption.iv and encryption.key files in protected/config. You can do this by deleting these files (the app should then re-create them or you can manually create them by running protected/yiic cryptsetup).

 

This worked. Thank you!



#4 alt_f4

alt_f4

    Advanced Member

  • Premium Members
  • PipPipPip
  • 329 posts
  • LocationGermany

Posted 11 January 2019 - 03:58 AM

Same here but thanks to X2Peter, now it works.



#5 Attila

Attila

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationJohannesburg, South Africa

Posted 13 January 2019 - 09:02 AM

Evening all 

 

I ran the upgrade (on my dev server), deleted the encryption.key file and  logged in everything seems to work perfectly, thank you

 

I then changed my server's (Centos: 7.6 , Virtualmin) PHP version from 5.4.16 to PHP 7.2.10 and tried to login again and received the following error 

 

CDbException

CDbConnection is unable to find PDO class "PDO". Make sure PDO is installed correctly.

 

 

Any suggestions on this ? 

 

Your expert advice is always very appreciated 

 

Attila


Never allow waiting to become a habit. Live your dreams & take risks. Life is happening NOW !


#6 alt_f4

alt_f4

    Advanced Member

  • Premium Members
  • PipPipPip
  • 329 posts
  • LocationGermany

Posted 13 January 2019 - 11:08 PM

PDO is a PHP extension - sure, that this is installed and usable? Tried a server restart (I´d to do this, for example).

 

May your DB-port is a non-standard-port? You´re able to configure your connection settings around line 217 in "protected/config/main.php ".

Also you may want to check your "php.ini" for the path to the PDO/PHP extentions (they might be changed to a PHP upgrade).

 

Regards!



#7 Attila

Attila

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationJohannesburg, South Africa

Posted 14 January 2019 - 10:15 AM

thanks Michael 

 

It's a very standard install standard ports etc .. I have read that this could occur if one has multiple Php version installed I will scratch some more  

 

Any other pearls of wisdom are welcome

 

Best 


Never allow waiting to become a habit. Live your dreams & take risks. Life is happening NOW !


#8 Attila

Attila

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationJohannesburg, South Africa

Posted Yesterday, 02:50 AM

Silly Me it was missing the PDO and MySQL drivers for for 7.2    -    :D  


Never allow waiting to become a habit. Live your dreams & take risks. Life is happening NOW !





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users