Jump to content
X2Community Forums

X2 work flow - array_keys() expects parameter 1 to be array, null given


Recommended Posts

Hi, I'm using X2CRM V8.0, while trying to use the workflow/ create new workflow I'm getting error 500.

Error Code: 500
Error Message: array_keys() expects parameter 1 to be array, null given

 

The whole stack trace is like this:

PHP warning in /home3/desin4sw/public_html/wp-content/themes/exploore/functions.php(24)
#0 /home3/desin4sw/public_html/wp-content/themes/exploore/functions.php(24): array_keys()
#1 /home3/desin4sw/public_html/wp-includes/class-wp-hook.php(287): post_exclude()
#2 /home3/desin4sw/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#3 /home3/desin4sw/public_html/wp-includes/plugin.php(551): WP_Hook->do_action()
#4 /home3/desin4sw/public_html/wp-includes/class-wp-query.php(1779): do_action_ref_array()
#5 /home3/desin4sw/public_html/wp-includes/class-wp-query.php(3448): WP_Query->get_posts()
#6 /home3/desin4sw/public_html/wp-includes/post.php(2065): WP_Query->query()
#7 /home3/desin4sw/public_html/wp-content/plugins/slzexploore-core/libs/class-com.php(21): get_posts()
#8 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(120): get_contact_form()
#9 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(2859): Slzexploore_Redux_Framework_Config->get_contact_form()
#10 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(44): Slzexploore_Redux_Framework_Config->setSections()
#11 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(25): Slzexploore_Redux_Framework_Config->initSettings()
#12 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(3624): Slzexploore_Redux_Framework_Config->__construct()
#13 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/admin-init.php(9): require_once()
#14 /home3/desin4sw/public_html/wp-content/themes/exploore/framework/slz-init.php(16): require_once()
#15 /home3/desin4sw/public_html/wp-content/themes/exploore/functions.php(499): require_once()
#16 /home3/desin4sw/public_html/wp-settings.php(525): include()
#17 /home3/desin4sw/public_html/wp-config.php(98): require_once()
#18 /home3/desin4sw/public_html/wp-load.php(37): require_once()
#19 /home3/desin4sw/public_html/crm/protected/components/x2flow/triggers/index.php(1750): include_once()
#20 /home3/desin4sw/public_html/crm/framework/yii.php(237): include()
#21 unknown(0): x2_autoload()
#22 unknown(0): spl_autoload_call()
#23 /home3/desin4sw/public_html/crm/protected/components/x2flow/X2FlowItem.php(248): class_exists()
#24 /home3/desin4sw/public_html/crm/protected/components/x2flow/X2FlowItem.php(320): create()
#25 /home3/desin4sw/public_html/crm/protected/components/x2flow/actions/X2FlowAction.php(215): getInstances()
#26 /home3/desin4sw/public_html/crm/protected/components/x2flow/actions/X2FlowAction.php(203): getActionInstances()
#27 /home3/desin4sw/public_html/crm/protected/components/FlowDesignerAction.php(103): getActionTypes()
#28 unknown(0): FlowDesignerAction->run()
#29 /home3/desin4sw/public_html/crm/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#30 /home3/desin4sw/public_html/crm/framework/web/actions/CAction.php(74): FlowDesignerAction->runWithParamsInternal()
#31 /home3/desin4sw/public_html/crm/framework/web/CController.php(308): FlowDesignerAction->runWithParams()
#32 /home3/desin4sw/public_html/crm/framework/web/filters/CFilterChain.php(134): StudioController->runAction()
#33 /home3/desin4sw/public_html/crm/protected/controllers/x2base.php(586): CFilterChain->run()
#34 /home3/desin4sw/public_html/crm/framework/web/filters/CInlineFilter.php(58): StudioController->filterSetPortlets()
#35 /home3/desin4sw/public_html/crm/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#36 /home3/desin4sw/public_html/crm/framework/web/CController.php(291): CFilterChain->run()
#37 /home3/desin4sw/public_html/crm/framework/web/CController.php(265): StudioController->runActionWithFilters()
#38 /home3/desin4sw/public_html/crm/framework/web/CWebApplication.php(282): StudioController->run()
#39 /home3/desin4sw/public_html/crm/protected/components/X2WebApplication.php(66): X2WebApplication->runController()
#40 /home3/desin4sw/public_html/crm/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#41 /home3/desin4sw/public_html/crm/index.php(68): X2WebApplication->run()

X2Engine Version: 8.0
PHP Version: 7.4.22

 

Can anyone please help me to find out the issue?

Link to post
Share on other sites
3 hours ago, jack said:

I don't seem to have the file protected/components/x2flow/triggers/index.php, can you try backing up the file some where else then delete the file.
-Jack

Hi Jack, thanks for your reply. Yes I have deleted the file. Still, I'm getting the 500 error. I have attached the sc. Also find the stack trace Now.

 

PHP warning in /home3/desin4sw/public_html/wp-content/themes/exploore/functions.php(24)
#0 /home3/desin4sw/public_html/wp-content/themes/exploore/functions.php(24): array_keys()
#1 /home3/desin4sw/public_html/wp-includes/class-wp-hook.php(287): post_exclude()
#2 /home3/desin4sw/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#3 /home3/desin4sw/public_html/wp-includes/plugin.php(551): WP_Hook->do_action()
#4 /home3/desin4sw/public_html/wp-includes/class-wp-query.php(1779): do_action_ref_array()
#5 /home3/desin4sw/public_html/wp-includes/class-wp-query.php(3448): WP_Query->get_posts()
#6 /home3/desin4sw/public_html/wp-includes/post.php(2065): WP_Query->query()
#7 /home3/desin4sw/public_html/wp-content/plugins/slzexploore-core/libs/class-com.php(21): get_posts()
#8 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(120): get_contact_form()
#9 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(2859): Slzexploore_Redux_Framework_Config->get_contact_form()
#10 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(44): Slzexploore_Redux_Framework_Config->setSections()
#11 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(25): Slzexploore_Redux_Framework_Config->initSettings()
#12 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/options-init.php(3624): Slzexploore_Redux_Framework_Config->__construct()
#13 /home3/desin4sw/public_html/wp-content/themes/exploore/admin/admin-init.php(9): require_once()
#14 /home3/desin4sw/public_html/wp-content/themes/exploore/framework/slz-init.php(16): require_once()
#15 /home3/desin4sw/public_html/wp-content/themes/exploore/functions.php(499): require_once()
#16 /home3/desin4sw/public_html/wp-settings.php(525): include()
#17 /home3/desin4sw/public_html/wp-config.php(98): require_once()
#18 /home3/desin4sw/public_html/wp-load.php(37): require_once()
#19 /home3/desin4sw/public_html/crm/protected/components/x2flow/actions/index.php(1750): include_once()
#20 /home3/desin4sw/public_html/crm/framework/yii.php(237): include()
#21 unknown(0): x2_autoload()
#22 unknown(0): spl_autoload_call()
#23 /home3/desin4sw/public_html/crm/protected/components/x2flow/X2FlowItem.php(248): class_exists()
#24 /home3/desin4sw/public_html/crm/protected/components/x2flow/X2FlowItem.php(320): create()
#25 /home3/desin4sw/public_html/crm/protected/components/x2flow/actions/X2FlowAction.php(215): getInstances()
#26 /home3/desin4sw/public_html/crm/protected/components/x2flow/actions/X2FlowAction.php(203): getActionInstances()
#27 /home3/desin4sw/public_html/crm/protected/components/FlowDesignerAction.php(103): getActionTypes()
#28 unknown(0): FlowDesignerAction->run()
#29 /home3/desin4sw/public_html/crm/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#30 /home3/desin4sw/public_html/crm/framework/web/actions/CAction.php(74): FlowDesignerAction->runWithParamsInternal()
#31 /home3/desin4sw/public_html/crm/framework/web/CController.php(308): FlowDesignerAction->runWithParams()
#32 /home3/desin4sw/public_html/crm/framework/web/filters/CFilterChain.php(134): StudioController->runAction()
#33 /home3/desin4sw/public_html/crm/protected/controllers/x2base.php(586): CFilterChain->run()
#34 /home3/desin4sw/public_html/crm/framework/web/filters/CInlineFilter.php(58): StudioController->filterSetPortlets()
#35 /home3/desin4sw/public_html/crm/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#36 /home3/desin4sw/public_html/crm/framework/web/CController.php(291): CFilterChain->run()
#37 /home3/desin4sw/public_html/crm/framework/web/CController.php(265): StudioController->runActionWithFilters()
#38 /home3/desin4sw/public_html/crm/framework/web/CWebApplication.php(282): StudioController->run()
#39 /home3/desin4sw/public_html/crm/protected/components/X2WebApplication.php(66): X2WebApplication->runController()
#40 /home3/desin4sw/public_html/crm/framework/base/CApplication.php(185): X2WebApplication->processRequest()
#41 /home3/desin4sw/public_html/crm/index.php(68): X2WebApplication->run()

X2Engine Version: 8.0
PHP Version: 7.4.22

Capture.JPG

Link to post
Share on other sites
4 hours ago, jack said:

Hi tanmoyrock, where did you download your copy of X2, I am seeing index.php files that we don't seem to have in the app. Also what is all the wp-load.php and wp files?

Hi Jack, these wp files are from wordpress directory. I'm using Wordpress & X2 sidebyside.  In ROOT wordpress,  in ROOT/crm X2..

Link to post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...