Jump to content


Photo

Cannot Save Email Account

Email

  • Please log in to reply
1 reply to this topic

#1 TechnoDino

TechnoDino

    Advanced Member

  • Members
  • PipPipPip
  • 60 posts
  • LocationChicagoland

Posted 19 September 2019 - 07:49 AM

Using Version 7.1 [have the same problem with Version 7] (community).  I set up an email account using 'Manage Apps'.  The account gets validated.  When I save I receive  a Error 500 message (see screenshot). The error message text; I edited to remove the top level domain (TLD=tld):  

 

Error Code: 500
Error Message: openssl_encrypt(): IV passed is 32 bytes long which is longer than the 16 expected by selected cipher, truncating
Stack Trace: [click to toggle display]
PHP warning in /home/tld/public_html/x2/protected/components/util/EncryptUtil.php(159)
#0 /home/tld/public_html/x2/protected/components/util/EncryptUtil.php(159): openssl_encrypt()
#1 /home/tld/public_html/x2/protected/components/behaviors/JSONEmbeddedModelFieldsBehavior.php(242): EncryptUtil->encrypt()
#2 /home/tld/public_html/x2/protected/components/behaviors/TransformedFieldStorageBehavior.php(96): JSONEmbeddedModelFieldsBehavior->packAttribute()
#3 /home/tld/public_html/x2/protected/components/behaviors/TransformedFieldStorageBehavior.php(112): JSONEmbeddedModelFieldsBehavior->packAll()
#4 /home/tld/public_html/x2/protected/components/behaviors/JSONEmbeddedModelFieldsBehavior.php(209): JSONEmbeddedModelFieldsBehavior->beforeSave()
#5 /home/tld/public_html/x2/framework/base/CComponent.php(561): JSONEmbeddedModelFieldsBehavior->beforeSave()
#6 /home/tld/public_html/x2/framework/db/ar/CActiveRecord.php(846): Credentials->raiseEvent()
#7 /home/tld/public_html/x2/framework/db/ar/CActiveRecord.php(948): Credentials->onBeforeSave()
#8 /home/tld/public_html/x2/framework/db/ar/CActiveRecord.php(1077): Credentials->beforeSave()
#9 /home/tld/public_html/x2/framework/db/ar/CActiveRecord.php(811): Credentials->insert()
#10 /home/tld/public_html/x2/protected/controllers/ProfileController.php(671): Credentials->save()
#11 unknown(0): ProfileController->actionCreateUpdateCredentials()
#12 /home/tld/public_html/x2/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#13 /home/tld/public_html/x2/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
#14 /home/tld/public_html/x2/framework/web/CController.php(308): CInlineAction->runWithParams()
#15 /home/tld/public_html/x2/framework/web/filters/CFilterChain.php(134): ProfileController->runAction()
#16 /home/tld/public_html/x2/protected/controllers/x2base.php(581): CFilterChain->run()
#17 /home/tld/public_html/x2/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#18 /home/tld/public_html/x2/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#19 /home/tld/public_html/x2/framework/web/filters/CFilter.php(40): CFilterChain->run()
#20 /home/tld/public_html/x2/framework/web/CController.php(1148): CAccessControlFilter->filter()
#21 /home/tld/public_html/x2/framework/web/filters/CInlineFilter.php(58): ProfileController->filterAccessControl()
#22 /home/tld/public_html/x2/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#23 /home/tld/public_html/x2/protected/controllers/x2base.php(581): CFilterChain->run()
#24 /home/tld/public_html/x2/framework/web/filters/CInlineFilter.php(58): ProfileController->filterSetPortlets()
#25 /home/tld/public_html/x2/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#26 /home/tld/public_html/x2/framework/web/filters/CFilter.php(40): CFilterChain->run()
#27 /home/tld/public_html/x2/framework/web/filters/CFilterChain.php(131): FileUploadsFilter->filter()
#28 /home/tld/public_html/x2/framework/web/filters/CFilter.php(40): CFilterChain->run()
#29 /home/tld/public_html/x2/framework/web/filters/CFilterChain.php(131): X2AjaxHandlerFilter->filter()
#30 /home/tld/public_html/x2/framework/web/CController.php(291): CFilterChain->run()
#31 /home/tld/public_html/x2/framework/web/CController.php(265): ProfileController->runActionWithFilters()
#32 /home/tld/public_html/x2/framework/web/CWebApplication.php(282): ProfileController->run()
#33 /home/tld/public_html/x2/protected/components/X2WebApplication.php(65): X2WebApplication->runController()
#34 /home/tld/public_html/x2/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#35 /home/tld/public_html/x2/index.php(67): X2WebApplication->run()
X2Engine Version: 7.1
PHP Version: 7.1.29
 

 

 

 

Any help appreciated

Thanks

 

John

Attached Files


:)Thanks :)

 

John

 


#2 X2Clifton

X2Clifton

    Member

  • Moderators
  • 19 posts

Posted 19 September 2019 - 08:24 AM

Hi Techno Dino,

 

This issue has also been addressed in this tagged post: http://community.x2c...updating-to-71/

 

Here is the solution that X2Peter gave within that posts' reply thread: "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)."

 

On top of X2Peter's solution, you will have to re-enter your credentials for any other third-party app you authorized afterwards. Let me know if there's any issues with this.







Also tagged with one or more of these keywords: Email

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users