The reason my code was failing was due to it reaching a memory limit.
I was adding a filter to the_content, and was calling another plugin’s API (Custom Field Suite) to get some meta data that was of the WYSIWYG type. This type of field runs through the_content filter, so I was hitting an infinite loop.
I couldn’t find this out on WP Engine because they have very limited error logging.
I ended up testing the site on a MediaTemple server, which resulted in the correct error message being displayed.
To fix this, I removed the filter from the_content BEFORE I called the meta data getter, then added it back after.
Related Posts:
- Shortcode not passing variable to included file
- Shortcode to include PHP file, pass various parameters to include?
- Is there a way to parse shortcodes in PHP?
- Shortcode to insert
- Shortcode putting html such as
- Display sorting options dropdown when using WooCommerce product category shortcode
- Retrieve multiple values passed to a single attribute in a shortcode
- Using Echo in ShortCode – Stuck
- Multiple do_shortcode($content) within one shortcode
- Adding Image Count to Multigallery
- My shortcode is showing up twice
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- WordPress menu deletes when trying to add a hook
- How to find the output of contact form 7 shortcode? [closed]
- How do i get (unique) page name?
- integrating external php library into wordpress- the right way
- Can A Shortcode Get HTML/Text From Content And Return It Twice With Added HTML?
- Browser title script ignoring is_page /else conditional [closed]
- Nested shortCode functions in the functions.php file
- get_page_by_title with an apostrophe in variable
- Making Quote Plugin more efficient
- How to limit the content coming from wordpress shortcodes?
- How do I use the Simple HTML DOM Parser in plugin when other plugin already uses it?
- How can I get content inside one shortcode to another shortcode?
- Use WP_Query in shortcode
- Create shortcodes within foreach loop (using array)
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- How to display data from custom table in wordpress phpmyadmin
- Calculating a large number of MYSQL queries as customshort codes, slow
- How can I dynamically update the class in my shortcode?
- Creating own shortcode – echoeing php variable based on JS variable
- Settings API callback function inserts html quotes from nowhere
- How create a Shortcode with hover and complex options
- Remove from shortcode
- How to Reference/Echo Variable from Another PHP Function
- Replace shortcode in substring
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- Get URL from shortcode tag
- PHP include is only working in certain places in my custom WP theme
- Only first shortcode gets executed
- echo something inside a shortcode
- Shortcode from a function not working
- Is it possible to return content, and then also continue to do other things?
- What is the proper way to include a PHP framework into my theme?
- anyway to put inside a $outprint=sprintf()
- Creating WordPress Shortcode with Variable
- Catchable fatal error: Object of class stdClass could not be converted to string
- Could use some help with Shortcodes
- What’s the best way to include PHP code in pages?
- Line breaks inside shortcode variable
- Shortcode for Listing Users from Meta Value?
- Shortcode to log user into current URL
- Shortcodes showing in excerpt despite using strip_shortcodes
- Calling PHP Titles inside Javascript Markup
- How to get my [shortcode] rendered on the home page, other pages are fine
- Including Custom fields within the_content
- What is the difference between Null vs Empty (Zero Length) string?
- How do I call an external php non WordPress class into functions.php?
- MySQL Query Returns Array () In Shortcode
- Show Featured Image Dimensions and size frontend with shortcode
- How to work Woocommerce pagination inside shortcode?
- How to get woocommerce orders with get_posts method in a shortcode
- Counting number of posts in multiple (sub)categories using shortcode
- Display Visual Composer shortcode if a post belongs in specific categories
- is it possible for a URL to filter by tag
- Trying to create a shortcode to display categories with a specific product tag
- How to pass parameters in wordpress shortcode?
- How can I prevent a shortcode div from extending beyond its boundaries?
- Adding variable in WordPress shortcode
- Display a custom name when the user has no name settle in his account
- Execute Shortcode in Textfile
- Echo short code syntax
- custom taxonomies not working
- How to return html as a string from php for WordPress
- Changing Date Format on Custom Meta Data w/shortcode call
- Before & After Content – After Content directly below Before Content when using require_once
- Add the shortcodes from the enfold theme to the other theme
- How to output values from a loop into a javascript array
- Offset with ajax load more posts duplicates
- What is the proper way to call a function (from functions.php) on a link click?
- Short code into PHP
- How can i iterate through this shortcode array?
- Shortcode in a $output statement
- Need help with PHP functions
- When using shortcode, content stops generating after the_content
- PHP Shortcode – 500 error
- Run PHP Results inside WP Shortcode
- Shortcode At top of Page – PHP 5.5 vs 5.4 – ob_start();
- On selecting shortcode generate selected shortcode table inside page editor worrdpress
- Include a php file that is above WP installation hierarchically?
- Using the same shortcode to show any table from the database
- Shortcoding with Divs
- My title is showing after the shortcode
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- Is there a better way to output HTML as a shortcode?
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- HTTP 500 Error after Creating Shortcode
- How call WordPress shortcode inside function file
- How to execute a shortcode within a custom field?