Title: fatal error
Last modified: February 20, 2024

---

# fatal error

 *  Resolved [w-prog](https://wordpress.org/support/users/w-prog/)
 * (@w-prog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/)
 * Hi,
 * On my website, I have problem on /wp-content/plugins/advanced-iframe/includes/
   advanced-iframe-main-read-config.php line 49
 * I fix it with this code:
 * `if (!is_object($value)){`
 * The bug is fix on front but not in BO.
 * Can you tell if it’s correct and report it in your next update please?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441132)
 * Hi,
 * which version do you use? In the version on wordpress.org line 49 is only a comment.
 * For me it would also be interesting to get a output of the $atts you have. Can
   you maybe make a print_r($atts) and send me the output?
 * Best regards, Michael
 *  Thread Starter [w-prog](https://wordpress.org/support/users/w-prog/)
 * (@w-prog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441703)
 * Hi,
 * The last version.
 * This line :
 *     ```wp-block-code
       $fix_value = str_replace($search, '', $value);
        $atts[$key] = trim($fix_value, " \n\r\t\v\0,");
       ```
   
 * you can read this message :
 * **Fatal error**: Uncaught TypeError: str_replace(): Argument #3 ($subject) must
   be of type array|string, stdClass given in /wp-content/plugins/advanced-iframe/
   includes/advanced-iframe-main-read-config.php:53
 * In this website: [https://staging.ville-draguignan.fr/mes-demarches/sante-handicap/qualite-de-lair-et-de-leau/](https://staging.ville-draguignan.fr/mes-demarches/sante-handicap/qualite-de-lair-et-de-leau/)
 * print_r($atts) =>
 * Array ( [src] => [https://www.atmosud.org/widget-mon-air/widget/commune/83050](https://www.atmosud.org/widget-mon-air/widget/commune/83050)[
   width] => 100% [height] => 373px [disRule] => all [displayRules] => Array ( [
   0] => stdClass Object ( [_key] => 0 [displayKey] => authentication [tpgb_authentication_value]
   => authenticated [tpgb_role_value] => administrator [tpgb_os_value] => iphone[
   tpgb_browser_value] => ie [assigOpr] => is [tpgb_startdate_value] => 2021-10-
   13 [tpgb_enddate_value] => 2021-10-15 [tpgb_time_value] => 12:00 [tpgb_day_value]
   => [] [tpgb_post_type_value] => [] [tpgb_page_value] => [] [tpgb_post_value] 
   => [] [tpgb_taxonomy_archive_value] => [] [tpgb_single_terms_value] => [] [tpgb_author_archive_value]
   => [] [tpgb_post_type_archive_value] => [] [tpgb_static_page_value] => home [
   tpgb_date_archive_value] => day [tpgb_search_results_value] => [tpgb_single_archive_value]
   => [] [tpgb_acf_text_name] => [] [tpgb_acf_text_value] => [tpgb_acf_select_name]
   => [] [tpgb_acf_select_value] => [tpgb_acf_button_group_name] => [] [tpgb_acf_button_group_value]
   => [tpgb_acf_boolean_name] => [] [tpgb_acf_boolean_value] => true [tpgb_acf_datetime_name]
   => [] [tpgb_acf_datetime_value] => ) ) [add_surrounding_p] => false [enable_lazy_load]
   => false [hide_content_until_iframe_color] => )
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441743)
 * Thanks for the feedback.
 * o.k. I got the issue. 
   [displayRules] contains an array – the problem is – this
   is not from advanced iframe. Seems the plugin tpgb ?? does add dynamically elements
   to my shortcode which are the problem.
 * can you tell me which plugin this is exactly? I will write to them so they stop
   doing this globally.
 * I think they use a hook where they add things to all shortcodes which is very
   bad imho.
 * I actually had this issue already with another pro user and added a check for
   arrays there already. I will also do roll out this then for the free version 
   as I know the issue now. Even better. Now I can simply filter them as they are
   not supposed to be there at all!
 * I will release a fixed version tonight as i have it already ready :).
 * Thanks for helping. 
   Michael
 *  Thread Starter [w-prog](https://wordpress.org/support/users/w-prog/)
 * (@w-prog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441807)
 * Hi, thanks for your quick answer. I found the plugin TPGB : **The Plus Addons**
 * I desactivate it and you iframe works fine. What is your plan?
 * Best regards
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441813)
 * I will write to them and also will add a detection for shortcode attributes which
   are not mine.
 * Best regards,
 * Michael
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441824)
 * is it the first one: [https://wordpress.org/plugins/search/The+Plus+Addons/](https://wordpress.org/plugins/search/The+Plus+Addons/)
 * ?
 *  Thread Starter [w-prog](https://wordpress.org/support/users/w-prog/)
 * (@w-prog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17441863)
 * [https://theplusblocks.com/](https://theplusblocks.com/)
 * I have the pro version but I test it also with the free version and the incompatibility
   is the same.
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17458630)
 * Fixed in the free and pro version. Issue was that theplusblocks plugin was modifying
   the attributes of advanced iframe and made them invalid.
 * I filter this now and also reported this issue to theplusblocks.
 *  Thread Starter [w-prog](https://wordpress.org/support/users/w-prog/)
 * (@w-prog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17458997)
 * Perfect, thanks for you efficiency.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘fatal error’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [w-prog](https://wordpress.org/support/users/w-prog/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4635/#post-17458997)
 * Status: resolved