Dear SocialEngine Family,
I'm facing with another error for quite some time now. When I click on edit Ad Campaign I get a error. Did anyone of you already had this problem?
If anybody has any idea how to fix this I will be grateful!
Kind regards,
2020-10-06T20:38:22+00:00 CRIT (2):
Error Code: 39e8ec
Zend_Json_Exception: Decoding failed: Unexpected control character found in /home/xxxxxx/public_html/application/libraries/Zend/Json.php:95
Stack trace:
#0 /home/xxxxxx/public_html/application/modules/Core/controllers/AdminAdsController.php(159): Zend_Json::decode('null"]')
#1 /home/xxxxxx/public_html/application/libraries/Zend/Controller/Action.php(516): Core_AdminAdsController->editAction()
#2 /home/xxxxxx/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#3 /home/xxxxxx/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#4 /home/xxxxxx/public_html/application/modules/Core/Bootstrap.php(86): Zend_Controller_Front->dispatch()
#5 /home/xxxxxx/public_html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#6 /home/xxxxxx/public_html/application/index.php(223): Engine_Application->run()
#7 /home/xxxxxx/public_html/boot.php(47): include('/home/xxxxxx...')
#8 /home/xxxxxx/public_html/index.php(24): Engine_Boot->boot()
#9 {main}
Make sure your server conforms, and does not exceed, to our requirements. Also make sure your host is not using mariadb or nginx as we don't support those.
Open file
/application/modules/Core/controllers/AdminAdsController.php
Around line 157 you should see this code
$campaign->network .= '"]';
replaced that with
$campaign->network .= '';
Save the file and that should fixed the error for you!
As we are not having any issues editing campaigns, I would suggest you be careful with that change. I suggest checking to ensure your server meets the requirements. Editing source files can have unintended issues and voids support.