Fatal error media.php
-
Hi !
I have a fatal error when i try to complete the indexation.
There’s the message :
XHRPOST https://****.******.com/wp-admin/admin-ajax.php [HTTP/2 500 Internal Server Error 560ms] Fatal error: Uncaught Error: Cannot access offset of type string on string in /***/******/*****/wp-includes/media.php on line 2210 Call stack: 1. img_caption_shortcode() wp-includes/shortcodes.php:355 2. do_shortcode_tag() 3. preg_replace_callback() wp-includes/shortcodes.php:227 4. do_shortcode() wp-content/plugins/relevanssi-premium/lib/utils.php:225 5. relevanssi_do_shortcode() wp-content/plugins/relevanssi-premium/lib/indexing.php:1507 6. relevanssi_index_content() wp-content/plugins/relevanssi-premium/lib/indexing.php:592 7. relevanssi_index_doc() wp-content/plugins/relevanssi-premium/lib/indexing.php:359 8. relevanssi_build_index() wp-content/plugins/relevanssi-premium/lib/admin-ajax.php:85 9. relevanssi_index_posts_ajax_wrapper() wp-includes/class-wp-hook.php:308 10. WP_Hook::apply_filters() wp-includes/class-wp-hook.php:332 11. WP_Hook::do_action() wp-includes/plugin.php:517 12. do_action() wp-admin/admin-ajax.php:188
I have this error on ajax call action :
relevanssi_index_posts
I tried to activate another theme, and with only relevanssi, the error still exists. (I have WP file Download but i try without and nothing). I read known conflitcs page ??
There’s the function on l2210 en media.php (inside the img_caption_shortcode function) :
if ( ! isset( $attr['caption'] ) ) { if ( preg_match( '#((?:<a [^>]+>\s*)?<img [^>]+>(?:\s*</a>)?)(.*)#is', $content, $matches ) ) { $content = $matches[1]; $attr['caption'] = trim( $matches[2] ); /**TRIGGER L2210**/ } } elseif ( strpos( $attr['caption'], '<' ) !== false ) { $attr['caption'] = wp_kses( $attr['caption'], 'post' ); }
I saw similar problem here https://www.ads-software.com/support/topic/php-fatal-error-when-expand-shortcodes-is-enabled/ but your quickfix is now include so i don’t know what to do !
Have a nice day, i hope you’ll find my error !
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Fatal error media.php’ is closed to new replies.