• Resolved w-prog

    (@w-prog)


    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

    (@mdempfle)

    Hi,

    which version do you use? In the version on www.ads-software.com 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

    (@w-prog)

    Hi,

    The last version.

    This line :

    $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/

    print_r($atts) =>

    Array ( [src] => 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

    (@mdempfle)

    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

    (@w-prog)

    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

    (@mdempfle)

    I will write to them and also will add a detection for shortcode attributes which are not mine.

    Best regards,

    Michael

    Plugin Author mdempfle

    (@mdempfle)

    Thread Starter w-prog

    (@w-prog)

    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

    (@mdempfle)

    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

    (@w-prog)

    Perfect, thanks for you efficiency.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘fatal error’ is closed to new replies.