You’re mis-using the caption shortcode here
<a href="http://example.com"><img src="https://example.com/example.jpg" /></a> test
You can fix it by adding a width option, which is required per the official documentation
<a href="http://example.com"><img src="https://example.com/example.jpg" /></a> test
In any case, this is also likely a bug in WordPress (misusing a shortcode shouldn’t result in a PHP Fatal Error). See the following bug report:
Related Posts:
- “Maximum function nesting level of ‘100’ reached” after adding a new filter
- apache cpu over 70% on localhost
- Fatal error: Call to undefined method WP_Error::get_item_quantity()
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- PHP code to call image Caption, Alternative Text, and Decription?
- Fatal Error relating to sessions.php
- wp_ob_end_flush_all and wp_suspend_cache_addition()
- fatal error call to undefined function get_header in index.php on line 1
- Getting error when using wp_insert_post()
- Way to add captions to gallery images by code
- Fatal Errors on pluggable.php
- Syntax error in a shortcode function
- Shortcode function doesnt work without caption
- Fatal errors to undefined function in theme 404.php file [closed]
- PHP Helper Class to create shortcodes
- wordpress admin part is not accesbile after server shifting
- Error while loading wordpress site “Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home
- Connecting to upstream failed
- Not able to remove caption shortcode from the content
- Fatal error: wp-settings.php on line 199
- Reduce Stock Based on Custom Variation Field Rather than Attribute (Working Script)
- Fatal Error cannot log into wordpress and website disappeared
- pages disable after wordpress update
- Importing demo data in Multisite
- WordPress error on my website
- Changed URl in General Settings now WordPress site doesnt work
- WordPress won’t display errors at all
- WP white screen of death after duping a site that works fine on same server
- Catchable fatal error in appcloud free theme by Tokokoo
- Front-end major break after upgrade PHP 8.0 [closed]
- kali php problem [closed]
- Divi – add title to mobile menu button
- WordPress critical error after trying to update to 6.2 – Fatal error: Allowed memory size of 268435456 bytes exhausted
- Adding caption to all images inside an article
- Error message not appearing in error email or in the error log
- Why PHP Parse unmachet after update to PHP8?
- Mega Menu Walker
- How to add a class to the attachment images
- How to export/import theme customizer settings?
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- Why can I not use setup_postdata($post) in the sidebar?
- Drop down+sort blog posts date added/most popular
- Get WooCommerce shipping methods programmatically
- How do I output a database option that is an array into a get_posts array?
- Passing jQuery value using Ajax to a page template
- Change logo based on incoming domain
- Why can’t I use “%s” format value in the WordPress function checked?
- max_input_vars: how many am I using?
- Multiple WordPress Menus that will only display all pages
- How to make drop down post title
- how to delete 30 day old data using PHP [closed]
- Remove meta description on certain pages
- Image media upload metabox
- esc_html_e() is not translating string in wordpress [closed]
- Limit 1 global comment per minute
- Sanitizing text fields in array
- Fatal Error in wp_get_current_user() Function
- How to combine 2 php functions into one function with a custom field
- How to redirect users based on role and content of redirect_to?
- How to add div blocks after certain set of post
- Making my first wordpress template
- Cinema site, retrive the movies that actor play in
- Create page template via functions.php?
- Short code template + ajax
- How insert a DIV at top of current theme? [closed]
- Removing custom sort order from admin page listing
- Azure WordPress site – URLs not showing on move from root to subdirectory
- Commas in Tag Cloud
- Query pulling a single post per month
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Show a specific post in wordpress with links
- Search by date in WordPress
- Trying to add some custom text into WordPress Post title via function.php
- wp_update_post gives 500 internal error
- Site cannot access external connection
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- How can I remember an action taken by a logged in user?
- Script to generate pages – taxonomies not loaded
- cant insert data in a custom table in phpmyadmin
- Invalid Argument foreach
- How to Link to category titles if it is in the single post content?
- wp_set_object_terms returns 500 error when called through AJAX function
- How do I send a POST request with params with WordPress REST API
- Create custom admin page with custom text fields
- Editable Student file associated with basic User ID
- List categories assigned to a post
- How to set the plugin load order when updating the active_plugins option?
- Display Year and Month from custom field + Age Calculator
- php string inside shortcode does not work
- No Authors for custom post type
- WordPress & PHP sessions
- How to pass username into form that sends data to database
- How to add pagination for wordpress home page
- which php or css file has generated an inline style in WordPress that overwrites my css
- Change body_class() PAGE to HOME
- How do I do so that people can register on my wordpress site?
- Custom taxonomy pagination shows 404
- duplicating page templates
- Upload multiple files via ajax from an HTML file input
- hide “Open in New Tab” checkbox in link field