PHP Errors 2 Warnings: Attempt to read property
Gday dikiyforester,
I have a site running, Vantage 4 with your plugin Sponsored Posts, on PHP8 and I recently got these warnings with Query Monitor:
Warning1:
Warning Attempt to read property "options" on null
wp-content/plugins/dkf-sponsored-posts/inc/class-vantage4-support.php:60
DKF_SP_Vantage4_Support->upgrade_listing_link()
wp-content/plugins/dkf-sponsored-posts/inc/class-vantage4-support.php:49
DKF_SP_Vantage4_Support->single_template_header()
wp-includes/class-
wp-hook.php:308
do_action('va_single_template_header')
wp-content/themes/appthemes-vantage/parts/content-cover.php:51
load_template('
wp-content/themes/appthemes-vantage/parts/content-cover.php')
wp-includes/template.php:718
locate_template()
wp-includes/general-template.php:204
get_template_part('parts/content','cover')
wp-content/themes/appthemes-vantage/single.php:13
load_template('
wp-content/themes/appthemes-vantage/single.php')
wp-content/themes/appthemes-vantage/wrapper.php:49
And Warning 2:
Warning Attempt to read property "charge" on null
wp-content/plugins/dkf-sponsored-posts/inc/class-vantage4-support.php:60
DKF_SP_Vantage4_Support->upgrade_listing_link()
wp-content/plugins/dkf-sponsored-posts/inc/class-vantage4-support.php:49
DKF_SP_Vantage4_Support->single_template_header()
wp-includes/class-
wp-hook.php:308
do_action('va_single_template_header')
wp-content/themes/appthemes-vantage/parts/content-cover.php:51
load_template('
wp-content/themes/appthemes-vantage/parts/content-cover.php')
wp-includes/template.php:718
locate_template()
wp-includes/general-template.php:204
get_template_part('parts/content','cover')
wp-content/themes/appthemes-vantage/single.php:13
load_template('
wp-content/themes/appthemes-vantage/single.php')
wp-content/themes/appthemes-vantage/wrapper.php:49
Is there any way to fix this?
Cheers,
Ronald