Jump to content


Photo

Error when adding either new google account or Google Integration: Function mcrypt_encrypt() is deprecated

Google oauth 2.0 mcrypt_encrypt error 500

  • Please log in to reply
2 replies to this topic

#1 premgyani

premgyani

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 04 July 2019 - 03:58 AM

Hello friends.  I'm installing my first instance of X2CRM (opensource 6.9) this morning and am getting the following error when I try and add a google account to the CRM through the Manage Apps option under my profile.  I have read elsewhere that this should work faultlessly so am wondering what a newbie like me is doing wrong...   Help appreciated as always,  Prem

 

 

Error Code: 500
Error Message: Function mcrypt_encrypt() is deprecated
Stack Trace: [click to toggle display]

PHP error in /home/gyani772/public_html/weddingtuktuk/CRM/protected/components/util/EncryptUtil.php(161)
#0 /home/gyani772/public_html/weddingtuktuk/CRM/protected/components/behaviors/JSONEmbeddedModelFieldsBehavior.php(239): EncryptUtil->encrypt()
#1 /home/gyani772/public_html/weddingtuktuk/CRM/protected/components/behaviors/TransformedFieldStorageBehavior.php(93): JSONEmbeddedModelFieldsBehavior->packAttribute()
#2 /home/gyani772/public_html/weddingtuktuk/CRM/protected/components/behaviors/TransformedFieldStorageBehavior.php(109): JSONEmbeddedModelFieldsBehavior->packAll()
#3 /home/gyani772/public_html/weddingtuktuk/CRM/protected/components/behaviors/JSONEmbeddedModelFieldsBehavior.php(206): JSONEmbeddedModelFieldsBehavior->beforeSave()
#4 /home/gyani772/public_html/weddingtuktuk/CRM/framework/base/CComponent.php(561): JSONEmbeddedModelFieldsBehavior->beforeSave()
#5 /home/gyani772/public_html/weddingtuktuk/CRM/framework/db/ar/CActiveRecord.php(843): Credentials->raiseEvent()
#6 /home/gyani772/public_html/weddingtuktuk/CRM/framework/db/ar/CActiveRecord.php(945): Credentials->onBeforeSave()
#7 /home/gyani772/public_html/weddingtuktuk/CRM/framework/db/ar/CActiveRecord.php(1074): Credentials->beforeSave()
#8 /home/gyani772/public_html/weddingtuktuk/CRM/framework/db/ar/CActiveRecord.php(809): Credentials->insert()
#9 /home/gyani772/public_html/weddingtuktuk/CRM/protected/controllers/ProfileController.php(657): Credentials->save()
#10 unknown(0): ProfileController->actionCreateUpdateCredentials()
#11 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#12 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
#13 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/CController.php(308): CInlineAction->runWithParams()
#14 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilterChain.php(133): ProfileController->runAction()
#15 /home/gyani772/public_html/weddingtuktuk/CRM/protected/controllers/x2base.php(578): CFilterChain->run()
#16 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#17 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#18 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilter.php(40): CFilterChain->run()
#19 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/CController.php(1145): CAccessControlFilter->filter()
#20 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CInlineFilter.php(58): ProfileController->filterAccessControl()
#21 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#22 /home/gyani772/public_html/weddingtuktuk/CRM/protected/controllers/x2base.php(578): CFilterChain->run()
#23 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#24 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#25 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilter.php(40): CFilterChain->run()
#26 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilterChain.php(130): FileUploadsFilter->filter()
#27 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilter.php(40): CFilterChain->run()
#28 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/filters/CFilterChain.php(130): X2AjaxHandlerFilter->filter()
#29 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/CController.php(291): CFilterChain->run()
#30 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/CController.php(265): ProfileController->runActionWithFilters()
#31 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/CWebApplication.php(282): ProfileController->run()
#32 /home/gyani772/public_html/weddingtuktuk/CRM/framework/web/CWebApplication.php(141): X2WebApplication->runController()
#33 /home/gyani772/public_html/weddingtuktuk/CRM/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#34 /home/gyani772/public_html/weddingtuktuk/CRM/index.php(64): X2WebApplication->run()

X2Engine Version: 6.9
PHP Version: 7.1.30



#2 Metalyinsane

Metalyinsane

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 04 July 2019 - 01:25 PM

You could try update to newer version to use php 7 or if staying with 6.9 roll back your php version.

#3 premgyani

premgyani

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 04 July 2019 - 09:41 PM

Simple solution and thank you.  Very silly of me to assume the auto install on my hosting provider would be the latest version.  My bad. Thank you very much.  Prem







Also tagged with one or more of these keywords: Google, oauth 2.0, mcrypt_encrypt, error 500

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users