![scriptcase refresh detail form scriptcase refresh detail form](https://www.scriptcase.net/features/img2/formularios/componentes-jquery.png)
The following change to the core function get_the_content() eliminates the Here's the call stack for a post with no content at all and no excerpt either. require(\wp-blog-header.php) \index.php:17 1.
![scriptcase refresh detail form scriptcase refresh detail form](https://miro.medium.com/max/1400/1*di3ZG1wwCgz8vEgB06fQKg.jpeg)
require_once(\wp-includes\template-loader.php) \wp-blog-header.php:19 1.include(\wp-content\themes\twentyseventeen\single.php) \wp-includes\template-loader.php:74 1.
![scriptcase refresh detail form scriptcase refresh detail form](https://i.ytimg.com/vi/Wk4Nrv1nvyg/maxresdefault.jpg)
![scriptcase refresh detail form scriptcase refresh detail form](https://www.scriptcase.net/lp/scriptcase-93/images/scriptcase-93/filter.png)
do_action(array) \wp-includes\plugin.php:453 1.apply_filters(unsupported,array) \wp-includes\class-wp-hook.php:310 2.jetpack_og_tags() \wp-includes\class-wp-hook.php:286 1.apply_filters(jetpack_open_graph_tags,array,array) \wp-content\plugins\jetpack\:216 3.apply_filters(array,array) \wp-includes\plugin.php:203 2.twitter_cards_tags(array) \wp-includes\class-wp-hook.php:288 1.apply_filters(get_the_excerpt,) \wp-content\plugins\jetpack_inc\lib\:314 2.apply_filters(,array) \wp-includes\plugin.php:203 2.wp_trim_excerpt() \wp-includes\class-wp-hook.php:286 1.get_the_content() \wp-includes\formatting.php:3308 1.bw_trace_error_handler(2,count(): Parameter must be an array or an object that implements Countable,\wp-includes\post-template.php,284,array) \wp-includes\post-template.php:284 5.bw_backtrace \wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php:276 0.bw_lazy_backtrace \wp-content\plugins\oik-bwtrace\libs\bwtrace.php:108 0.I'm using the Twenty Seventeen theme with Jetpack 5.7 The message is produced when viewing an Attachment that has no caption, i.e. Var progressIndicator = document.getElementById("progressIndicator") ĭ is the call stack when I get the problem. Var messageEvent = eventMethod = "attachEvent" ? "onmessage" : "message" Īlert("Received following message: " + e.data) Var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent" If you have control of both domains, this should work for you. However, I am no security expert, so I would ask for further advice in the Web Security forum. This is basically what Paul is doing, but you don’t really need to use jQuery for this.Īs Francky correctly says, it is bad practice to embed an iframe with content served over HTTPS within a page served over plain HTTP (or mix content). I would use HTML5’s Window.postMessage API which allows you to send messages from parent to iframe and the other way round. In addition to the fine solutions you have received thus far, here’s what I would do: Protocols, domains, and ports must match. Uncaught SecurityError: Blocked a frame with origin "" from accessing a frame with origin "". You can see this if you look in the error console when you click the try it button. Paul is correct that your first attempt causes an error as it tries to access an iframe on a different domain.