• Hi!

    With this shortcode
    [netsposts include_blog='3' list='1' show_title='false' thumbnail='true' size='medium_large' hide_source='true' hide_excerpt='true' order_post_by='date_order desc']
    I obtain this
    Fatal error: Uncaught TypeError: array_slice(): Argument #3 ($length) must be of type ?int, string given in /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-content/plugins/network-posts-extended/network-posts-extended.php:550 Stack trace: #0 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-content/plugins/network-posts-extended/network-posts-extended.php(550): array_slice(Array, 0, '’1′') #1 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/shortcodes.php(356): netsposts_shortcode(Array, '', 'netsposts') #2 [internal function]: do_shortcode_tag(Array) #3 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(justif...', 'do_shortcode_ta...', '<p>[et_pb_secti...') #4 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/class-wp-hook.php(303): do_shortcode('<p>[et_pb_secti...') #5 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p>[et_pb_secti...', Array) #6 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1792): apply_filters('the_content', '[et_pb_section ...') #7 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(550): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #8 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/rest-api/class-wp-rest-server.php(1140): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request)) #9 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/rest-api/class-wp-rest-server.php(987): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/pages/(?...', Array, NULL) #10 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/rest-api.php(495): WP_REST_Server->dispatch(Object(WP_REST_Request)) #11 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/rest-api.php(2832): rest_do_request(Object(WP_REST_Request)) #12 [internal function]: rest_preload_api_request(Array, '/wp/v2/pages/2?...') #13 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-includes/block-editor.php(444): array_reduce(Array, 'rest_preload_ap...', Array) #14 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-admin/edit-form-blocks.php(68): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context)) #15 /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-admin/post.php(187): require('/home/clients/2...') #16 {main} thrown in /home/clients/2c3722665fcb3d908a0ae0e77fa35d4c/bernhe.im/wp-content/plugins/network-posts-extended/network-posts-extended.php on line 550
    when trying to edit the page with WP editor, but it works fine when using the Divi Builder…
    Any idea?
    Thx!
    Pascal

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error’ is closed to new replies.