Notifications
Clear all

Fatal error: Uncaught Error: Non-static method advancediFrame

5 Posts
2 Users
0 Reactions
589 Views
Posts: 2
Topic starter
(@gunnarolaussen)
New Member
Joined: 2 years ago

Have a page with IFrame (ver.2022.5 - WP ver. 6.0.2, PHP ver. 8.0.24) coming up with the error message shown below.

Page: https://www.verdalssl.no/terminliste-filtrert/?gren=Alle&diciplin=0&district=Verdal_Ssl

The code entered on the page works on other WordPress installations as expected, and looks like this:

[advanced_iframe name="iframe"width="1200" height="1500" src="https://alpharegnews.azurewebsites.net/ShowTerminListe.aspx?gren={query-gren}&diciplin={query-diciplin}&district={query-district}"]

Feilmelding på siden:

Fatal error: Uncaught Error: Non-static method advancediFrame::param() cannot be called statically in /customers/6/e/b/verdalssl.no/httpd.www/wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-helper.php:178 Stack trace: #0 /customers/6/e/b/verdalssl.no/httpd.www/wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-helper.php(49): AdvancedIframeHelper::replace_query_data('https://alphare...') #1 /customers/6/e/b/verdalssl.no/httpd.www/wp-content/plugins/advanced-iframe/includes/advanced-iframe-main-prepare.php(505): AdvancedIframeHelper::ai_replace_placeholders('https://alphare...', true, NULL) #2 /customers/6/e/b/verdalssl.no/httpd.www/wp-content/plugins/advanced-iframe/advanced-iframe.php(676): include('/customers/6/e/...') #3 /customers/6/e/b/verdalssl.no/httpd.www/wp-includes/shortcodes.php(356): advancediFrame->do_iframe_script(Array, '', 'advanced_iframe') #4 [internal function]: do_shortcode_tag(Array) #5 /customers/6/e/b/verdalssl.no/httpd.www/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(advanc...', 'do_shortcode_ta...', '\n

Du kan g\xC3\xA5...') #6 /customers/6/e/b/verdalssl.no/httpd.www/wp-includes/class-wp-hook.php(307): do_shortcode('\n

Du kan g\xC3\xA5...') #7 /customers/6/e/b/verdalssl.no/httpd.www/wp-includes/plugin.php(191): WP_Hook->apply_filters('\n

Du kan g\xC3\xA5...', Array) #8 /customers/6/e/b/verdalssl.no/httpd.www/wp-includes/post-template.php(253): apply_filters('the_content', '

 

 

4 Replies
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

I will take a look tonight. Maybe this is related to php 8 where some things have changed. I will provide an update  asap if I know the reason.

Reply
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

I found the issue. The way I was calling me method is not supported in php 8 anymore. I will fix this in the next release

If you like to fix it by yourself.

replace

advancediFrame::param(

with 

AdvancedIframeHelper::param(

in this file. it actually appears 2 times there. Please replace both.

I will release a new version in the next days. I have a couple of new things in my new build I need to test first as well.

Best regards,

Michael

 

Reply
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

Hi,

2022.6 was released where this is fixed.

Please update.

Best regards,

Michael

Reply
1 Reply
(@gunnarolaussen)
Joined: 2 years ago

New Member
Posts: 2

@admin Thank You. 🙂

Reply