User picture upload issue
-
Uploading a picture through the admin members page throws no errors or warnings. But when i add a picture through the edit profile page of any regular user, no edit picture feature shows up and the edit profile page reloads to show the picture uploaded and beneath it a warning i pasted below. Prints and the log follow beneath it.
I’m only using the [rencontre] shortcode.
Same happens with any theme and with all other plugins disabled.
The pictures are accessible through other profiles and can be rotated and made into the profile cover as expected.
Deleting pictures makes the warning vanish too.
The warning shows up regardless of the picture being uploaded on the user admin page or by the user
Any idea on how to fix it or at least disable the warning from showing on the user page since it doesn’t seem to affect anything else?Warning:
Undefined array key 4 in C:\wamp64\www\wordpresst1\wp-content\plugins\rencontre\templates\rencontre_portrait_edit.php on line 34 Call Stack #TimeMemoryFunctionLocation 10.0003364232{main}( )…\index.php:0 20.0005364544require( ‘C:\wamp64\www\wordpresst1\wp-blog-header.php )…\index.php:17 30.23256372992require_once( ‘C:\wamp64\www\wordpresst1\wp-includes\template-loader.php )…\wp-blog-header.php:19 40.23646401672include( ‘C:\wamp64\www\wordpresst1\wp-content\themes\astra\page.php )…\template-loader.php:106 50.38058544840astra_content_page_loop( )…\page.php:32 60.38058544840do_action( $hook_name = ‘astra_content_page_loop’ )…\theme-hooks.php:267 70.38058549312WP_Hook->do_action( $args = [0 => ”] )…\plugin.php:517 80.38058549312WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )…\class-wp-hook.php:332 90.38058550440Astra_Loop->loop_markup_page( ” )…\class-wp-hook.php:308 100.38058550440Astra_Loop->loop_markup( $is_page = TRUE )…\class-astra-loop.php:174 110.38298575336do_action( $hook_name = ‘astra_page_template_parts_content’ )…\class-astra-loop.php:197 120.38298575712WP_Hook->do_action( $args = [0 => ”] )…\plugin.php:517 130.38298575712WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )…\class-wp-hook.php:332 140.38298576840Astra_Loop->template_parts_page( ” )…\class-wp-hook.php:308 150.38298576840get_template_part( $slug = ‘template-parts/content’, $name = ‘page’, $args = ??? )…\class-astra-loop.php:109 160.38308577408locate_template( $template_names = [0 => ‘template-parts/content-page.php’, 1 => ‘template-parts/content.php’], $load = TRUE, $require_once = FALSE, $args = [] )…\general-template.php:204 170.38328577520load_template( $_template_file = ‘C:\wamp64\www\wordpresst1/wp-content/themes/astra/template-parts/content-page.php’, $require_once = FALSE, $args = [] )…\template.php:718 180.38338577888require( ‘C:\wamp64\www\wordpresst1\wp-content\themes\astra\template-parts\content-page.php )…\template.php:785 190.38388579560astra_entry_content_single_page( )…\content-page.php:26 200.38388579560do_action( $hook_name = ‘astra_entry_content_single_page’ )…\theme-hooks.php:452 210.38388579936WP_Hook->do_action( $args = [0 => ”] )…\plugin.php:517 220.38388579936WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )…\class-wp-hook.php:332 230.38388581064astra_entry_content_single_page_template( ” )…\class-wp-hook.php:308 240.38388581064get_template_part( $slug = ‘template-parts/single/content-header’, $name = ???, $args = ??? )…\template-parts.php:376 250.38388581600locate_template( $template_names = [0 => ‘template-parts/single/content-header.php’], $load = TRUE, $require_once = FALSE, $args = [] )…\general-template.php:204 260.38408581728load_template( $_template_file = ‘C:\wamp64\www\wordpresst1/wp-content/themes/astra/template-parts/single/content-header.php’, $require_once = FALSE, $args = [] )…\template.php:718 270.38418582080require( ‘C:\wamp64\www\wordpresst1\wp-content\themes\astra\template-parts\single\content-header.php )…\template.php:785 280.38428583728the_content( $more_link_text = ???, $strip_teaser = ??? )…\content-header.php:33 290.38438583760apply_filters( $hook_name = ‘the_content’, $value = ‘[rencontre]
\r\n\r\n’ )…\post-template.php:255 300.38438584168WP_Hook->apply_filters( $value = ‘[rencontre]
\r\n\r\n’, $args = [0 => ‘[rencontre]
\r\n\r\n’] )…\plugin.php:205 310.38508630208do_shortcode( $content = ‘[rencontre]
\n\n’, $ignore_html = ??? )…\class-wp-hook.php:308 320.38518633032preg_replace_callback( $pattern = ‘/\[(\[?)(rencontre_login|rencontre_loginFB|rencontre_imgreg|rencontre)(?![\w-])([^\]\/](?:\/(?!\])[^\]\/])?)(?:(\/)\]|\](?:([^\[]+(?:\[(?!\/\2\])[^\[]+)+)\[\/\2\])?)(\]?)/’, $callback = ‘do_shortcode_tag’, $subject = ‘[rencontre]
\n\n’ )…\shortcodes.php:227 330.38518633592do_shortcode_tag( $m = [0 => ‘[rencontre]’, 1 => ”, 2 => ‘rencontre’, 3 => ”, 4 => ”, 5 => ”, 6 => ”] )…\shortcodes.php:227 340.38518633592f_shortcode_rencontre( ”, ”, ‘rencontre’ )…\shortcodes.php:355 350.38518651504RencontreWidget->widget( $arguments = 0, $data = 0 )…\rencontre_filter.php:30 360.42798821680include( ‘C:\wamp64\www\wordpresst1\wp-content\plugins\rencontre\templates\rencontre_portrait_edit.php )…\rencontre_widget.php:773 ” loading=”lazy” alt=”” />Prints
https://drive.google.com/file/d/1h1hBvYisgPuTYXeZisk0FlOxk2ojohup/view?usp=sharing
https://drive.google.com/file/d/1hHh6XNaQc1_PsJUsQWoK1GX8pjfk3Lgb/view?usp=sharingLog
[25-Mar-2023 15:11:57 UTC] PHP Warning Undefined array key 4 in C:\wamp64\www\wordpresst1\wp-content\plugins\rencontre\templates\rencontre_portrait_edit.php on line 34 [25-Mar-2023 15:11:57 UTC] PHP Stack trace: [25-Mar-2023 15:11:57 UTC] PHP 1. {main}() C:\wamp64\www\wordpresst1\index.php:0 [25-Mar-2023 15:11:57 UTC] PHP 2. require() C:\wamp64\www\wordpresst1\index.php:17 [25-Mar-2023 15:11:57 UTC] PHP 3. require_once() C:\wamp64\www\wordpresst1\wp-blog-header.php:19 [25-Mar-2023 15:11:57 UTC] PHP 4. include() C:\wamp64\www\wordpresst1\wp-includes\template-loader.php:106 [25-Mar-2023 15:11:57 UTC] PHP 5. astra_content_page_loop() C:\wamp64\www\wordpresst1\wp-content\themes\astra\page.php:32 [25-Mar-2023 15:11:57 UTC] PHP 6. do_action($hook_name = 'astra_content_page_loop') C:\wamp64\www\wordpresst1\wp-content\themes\astra\inc\core\theme-hooks.php:267 [25-Mar-2023 15:11:57 UTC] PHP 7. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\wordpresst1\wp-includes\plugin.php:517 [25-Mar-2023 15:11:57 UTC] PHP 8. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:332 [25-Mar-2023 15:11:57 UTC] PHP 9. Astra_Loop->loop_markup_page('') C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:308 [25-Mar-2023 15:11:57 UTC] PHP 10. Astra_Loop->loop_markup($is_page = TRUE) C:\wamp64\www\wordpresst1\wp-content\themes\astra\inc\class-astra-loop.php:174 [25-Mar-2023 15:11:57 UTC] PHP 11. do_action($hook_name = 'astra_page_template_parts_content') C:\wamp64\www\wordpresst1\wp-content\themes\astra\inc\class-astra-loop.php:197 [25-Mar-2023 15:11:57 UTC] PHP 12. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\wordpresst1\wp-includes\plugin.php:517 [25-Mar-2023 15:11:57 UTC] PHP 13. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:332 [25-Mar-2023 15:11:57 UTC] PHP 14. Astra_Loop->template_parts_page('') C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:308 [25-Mar-2023 15:11:57 UTC] PHP 15. get_template_part($slug = 'template-parts/content', $name = 'page', $args = *uninitialized*) C:\wamp64\www\wordpresst1\wp-content\themes\astra\inc\class-astra-loop.php:109 [25-Mar-2023 15:11:57 UTC] PHP 16. locate_template($template_names = [0 => 'template-parts/content-page.php', 1 => 'template-parts/content.php'], $load = TRUE, $require_once = FALSE, $args = []) C:\wamp64\www\wordpresst1\wp-includes\general-template.php:204 [25-Mar-2023 15:11:57 UTC] PHP 17. load_template($_template_file = 'C:\\wamp64\\www\\wordpresst1/wp-content/themes/astra/template-parts/content-page.php', $require_once = FALSE, $args = []) C:\wamp64\www\wordpresst1\wp-includes\template.php:718 [25-Mar-2023 15:11:57 UTC] PHP 18. require() C:\wamp64\www\wordpresst1\wp-includes\template.php:785 [25-Mar-2023 15:11:57 UTC] PHP 19. astra_entry_content_single_page() C:\wamp64\www\wordpresst1\wp-content\themes\astra\template-parts\content-page.php:26 [25-Mar-2023 15:11:57 UTC] PHP 20. do_action($hook_name = 'astra_entry_content_single_page') C:\wamp64\www\wordpresst1\wp-content\themes\astra\inc\core\theme-hooks.php:452 [25-Mar-2023 15:11:57 UTC] PHP 21. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\wordpresst1\wp-includes\plugin.php:517 [25-Mar-2023 15:11:57 UTC] PHP 22. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:332 [25-Mar-2023 15:11:57 UTC] PHP 23. astra_entry_content_single_page_template('') C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:308 [25-Mar-2023 15:11:57 UTC] PHP 24. get_template_part($slug = 'template-parts/single/content-header', $name = *uninitialized*, $args = *uninitialized*) C:\wamp64\www\wordpresst1\wp-content\themes\astra\inc\template-parts.php:376 [25-Mar-2023 15:11:57 UTC] PHP 25. locate_template($template_names = [0 => 'template-parts/single/content-header.php'], $load = TRUE, $require_once = FALSE, $args = []) C:\wamp64\www\wordpresst1\wp-includes\general-template.php:204 [25-Mar-2023 15:11:57 UTC] PHP 26. load_template($_template_file = 'C:\\wamp64\\www\\wordpresst1/wp-content/themes/astra/template-parts/single/content-header.php', $require_once = FALSE, $args = []) C:\wamp64\www\wordpresst1\wp-includes\template.php:718 [25-Mar-2023 15:11:57 UTC] PHP 27. require() C:\wamp64\www\wordpresst1\wp-includes\template.php:785 [25-Mar-2023 15:11:57 UTC] PHP 28. the_content($more_link_text = *uninitialized*, $strip_teaser = *uninitialized*) C:\wamp64\www\wordpresst1\wp-content\themes\astra\template-parts\single\content-header.php:33 [25-Mar-2023 15:11:57 UTC] PHP 29. apply_filters($hook_name = 'the_content', $value = '[rencontre]\r\n\r\n') C:\wamp64\www\wordpresst1\wp-includes\post-template.php:255 [25-Mar-2023 15:11:57 UTC] PHP 30. WP_Hook->apply_filters($value = '[rencontre]\r\n\r\n', $args = [0 => '[rencontre]\r\n\r\n']) C:\wamp64\www\wordpresst1\wp-includes\plugin.php:205 [25-Mar-2023 15:11:57 UTC] PHP 31. do_shortcode($content = ' [rencontre] \n \n', $ignore_html = *uninitialized*) C:\wamp64\www\wordpresst1\wp-includes\class-wp-hook.php:308 [25-Mar-2023 15:11:57 UTC] PHP 32. preg_replace_callback($pattern = '/\\[(\\[?)(rencontre_login|rencontre_loginFB|rencontre_imgreg|rencontre)(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*+(?:\\[(?!\\/\\2\\])[^\\[]*+)*+)\\[\\/\\2\\])?)(\\]?)/', $callback = 'do_shortcode_tag', $subject = ' [rencontre] \n \n') C:\wamp64\www\wordpresst1\wp-includes\shortcodes.php:227 [25-Mar-2023 15:11:57 UTC] PHP 33. do_shortcode_tag($m = [0 => '[rencontre]', 1 => '', 2 => 'rencontre', 3 => '', 4 => '', 5 => '', 6 => '']) C:\wamp64\www\wordpresst1\wp-includes\shortcodes.php:227 [25-Mar-2023 15:11:57 UTC] PHP 34. f_shortcode_rencontre('', '', 'rencontre') C:\wamp64\www\wordpresst1\wp-includes\shortcodes.php:355 [25-Mar-2023 15:11:57 UTC] PHP 35. RencontreWidget->widget($arguments = 0, $data = 0) C:\wamp64\www\wordpresst1\wp-content\plugins\rencontre\inc\rencontre_filter.php:30 [25-Mar-2023 15:11:57 UTC] PHP 36. include() C:\wamp64\www\wordpresst1\wp-content\plugins\rencontre\inc\rencontre_widget.php:773
- The topic ‘User picture upload issue’ is closed to new replies.