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?
- “Object-cache.php” disables wp_cron and even disables my entire site, and keeps reappearing by itself again after I delete it
- Using wp_send_json to return HTML
- WordPress Infinite Scroll without using any plugin
- Add post class to the TinyMCE iframe?
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- How to add query vars with paginated URLs?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- How to Join two tables from separate databases within WordPress
- How to find objects by terms
- Bypass .htaccess when using download_url
- Anyone can register via backend
- How to get to a specific position in wp_query?
- Preferred Method of debugging a wordpress SQL calls?
- WordPress does not load page.php, return 404.php
- How to use my style.css file outside of wordpress subdomain?
- How do I start using an external API and PHP for a WordPress.org page?
- Unread Repeater field IMG alt not working
- How to add an arrow to menu items has submenus
- I want to load in a new class but only if the current page is single-movies.php
- wp query foreach deleting record returning only first or last item
- Customizer: Category Select Sanitize
- action theme mailchimp subscriber fields
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Skt full width basic slideshow problem
- RTL Stylesheet Confusion with WordPress
- How to determine from a different folder (outside wordpress) if a visitor is logged into WordPress
- Is a series of update_option calls safe, performance wise?
- How to call multiple functions from multiple files into a WordPress page template [closed]
- How to catch wordpress post ID when it’s published
- What is the best way to define constant options for a theme?
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- wp_localize_script() and JavaScript namespaces
- Class property seems to lose scope, attached to save_post action?
- get_template_part function and add images
- Anonymous functions usage
- WordPress – Get Posts with Category data
- Change Language Title Pagination on Subdomain non Multisite
- How to Create custom block for displaying information in content section which act like shortcode
- How to use Page link field with is_page()
- How can I pass php code as a content while publishing a post
- Trying to show the category of a post in the post display
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- How can i limit the number of posts to the most recent 6 in my query?
- Allow specific user to edit a specific page
- PHP error after theme update
- Access certain Entry in HTML-Table and pass the entry-data in WP not working [closed]
- is_user_logged_in() not working in homepage
- Custom Post type Ajax search results
- I want url from a file in media using title file
- Creating a custom register form
- Widget Logic – display on page and all child
- How to associate dynamic PHP page for chosen WordPress tag?
- Passed variable gets undefined variable error on insert on next page
- Why does WP_Query show only the same post even with different categories and endwhile?
- How to display different widgets on specific pages, hide from other pages
- echo php values in table – strange behaviour, not all values are shown
- Changing posts date
- php-page with db connection
- How to pull the current user’s email and insert into a script placeholder?
- if get_post_meta do something
- How to save a post to a Custom post type and copy the information to another Custom post type?
- Save_Post change Custom Post Type Post title to post id number
- Sidebars panel in customizer
- How to add input field value to Users in WordPress Dashboard