PHP Fatal error: Uncaught Error: Call to undefined function create_function()
-
Hello, getting this in my PHP Error Log when I try to add the Directory to a page. Any help would be appreciated. Thanks. (Sorry if this is too much code.)
[11-Sep-2023 17:40:21 UTC] PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /wp-content/connections_templates/cmap/functions.php:23 Stack trace: #0 /wp-content/connections_templates/cmap/functions.php(519): cMap->__construct() #1 /wp-content/plugins/connections/includes/template/class.template.php(1063): include_once('/home/*********...') #2 /wp-includes/class-wp-hook.php(310): cnTemplate->includeFunctions('') #3 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #4 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /wp-content/plugins/connections/includes/Shortcode/Entry_Directory.php(205): do_action('cn_template_inc...') #6 /wp-content/plugins/connections/includes/Shortcode/Entry_Directory.php(119): Connections_Directory\Shortcode\Entry_Directory->loadTemplate('cmap') #7 /wp-content/plugins/connections/includes/Shortcode/Entry_Directory.php(161): Connections_Directory\Shortcode\Entry_Directory->__construct(Array, '', 'connections') #8 /wp-content/plugins/connections/includes/Shortcode/Directory_View.php(289): Connections_Directory\Shortcode\Entry_Directory::instance(Array, '', 'connections') #9 /wp-content/plugins/connections/includes/Shortcode/Directory_View.php(101): Connections_Directory\Shortcode\Directory_View->generateHTML() #10 /wp-content/plugins/connections/includes/Shortcode/Directory_View.php(118): Connections_Directory\Shortcode\Directory_View->__construct(Array, '', 'connections') #11 /wp-content/plugins/connections/includes/Deprecated/class.shortcode-connections.php(53): Connections_Directory\Shortcode\Directory_View::instance(Array, '', 'connections') #12 /wp-content/plugins/connections/includes/blocks/directory/class.block.php(338): cnShortcode_Connections::view(Array) #13 /wp-includes/class-wp-block.php(258): Connections_Directory\Blocks\Directory::render(Array, '', Object(WP_Block)) #14 /wp-includes/blocks.php(1133): WP_Block->render() #15 /wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php(190): render_block(Array) #16 /wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Block_Renderer_Controller->get_item(Object(WP_REST_Request)) #17 /wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/block-re...', Array, NULL) #18 /wp-includes/rest-api/class-wp-rest-server.php(447): WP_REST_Server->dispatch(Object(WP_REST_Request)) #19 /wp-includes/rest-api.php(418): WP_REST_Server->serve_request('/wp/v2/block-re...') #20 /wp-includes/class-wp-hook.php(310): rest_api_loaded(Object(WP)) #21 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #22 /wp-includes/plugin.php(565): WP_Hook->do_action(Array) #23 /wp-includes/class-wp.php(398): do_action_ref_array('parse_request', Array) #24 /wp-includes/class-wp.php(779): WP->parse_request('') #25 /wp-includes/functions.php(1335): WP->main('') #26 /wp-blog-header.php(16): wp() #27 /index.php(17): require('/home/*********...') #28 {main} thrown in /wp-content/connections_templates/cmap/functions.php on line 23 [11-Sep-2023 17:40:31 UTC] PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /wp-content/connections_templates/cmap/functions.php:23 Stack trace: #0 /wp-content/connections_templates/cmap/functions.php(519): cMap->__construct() #1 /wp-content/plugins/connections/includes/template/class.template.php(1063): include_once('/home/*********...') #2 /wp-includes/class-wp-hook.php(310): cnTemplate->includeFunctions('') #3 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #4 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /wp-content/plugins/connections/includes/Shortcode/Entry_Directory.php(205): do_action('cn_template_inc...') #6 /wp-content/plugins/connections/includes/Shortcode/Entry_Directory.php(119): Connections_Directory\Shortcode\Entry_Directory->loadTemplate('cmap') #7 /wp-content/plugins/connections/includes/Shortcode/Entry_Directory.php(161): Connections_Directory\Shortcode\Entry_Directory->__construct(Array, '', 'connections') #8 /wp-content/plugins/connections/includes/Shortcode/Directory_View.php(289): Connections_Directory\Shortcode\Entry_Directory::instance(Array, '', 'connections') #9 /wp-content/plugins/connections/includes/Shortcode/Directory_View.php(101): Connections_Directory\Shortcode\Directory_View->generateHTML() #10 /wp-content/plugins/connections/includes/Shortcode/Directory_View.php(118): Connections_Directory\Shortcode\Directory_View->__construct(Array, '', 'connections') #11 /wp-content/plugins/connections/includes/Deprecated/class.shortcode-connections.php(53): Connections_Directory\Shortcode\Directory_View::instance(Array, '', 'connections') #12 /wp-content/plugins/connections/includes/blocks/directory/class.block.php(338): cnShortcode_Connections::view(Array) #13 /wp-includes/class-wp-block.php(258): Connections_Directory\Blocks\Directory::render(Array, '', Object(WP_Block)) #14 /wp-includes/blocks.php(1133): WP_Block->render() #15 /wp-includes/blocks.php(1171): render_block(Array) #16 /wp-includes/class-wp-hook.php(310): do_blocks('<!-- wp:paragra...') #17 /wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:paragra...', Array) #18 /wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php(611): apply_filters('the_content', '<!-- wp:paragra...') #19 /wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(414): WP_REST_Revisions_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #20 /wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(249): WP_REST_Autosaves_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #21 /wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Autosaves_Controller->create_item(Object(WP_REST_Request)) #22 /wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/pages/(?...', Array, NULL) #23 /wp-includes/rest-api/class-wp-rest-server.php(447): WP_REST_Server->dispatch(Object(WP_REST_Request)) #24 /wp-includes/rest-api.php(418): WP_REST_Server->serve_request('/wp/v2/pages/32...') #25 /wp-includes/class-wp-hook.php(310): rest_api_loaded(Object(WP)) #26 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #27 /wp-includes/plugin.php(565): WP_Hook->do_action(Array) #28 /wp-includes/class-wp.php(398): do_action_ref_array('parse_request', Array) #29 /wp-includes/class-wp.php(779): WP->parse_request('') #30 /wp-includes/functions.php(1335): WP->main('') #31 /wp-blog-header.php(16): wp() #32 /index.php(17): require('/home/*********...') #33 {main} thrown in /wp-content/connections_templates/cmap/functions.php on line 23
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function create_function()’ is closed to new replies.