php 8.1 fatal error on AMP

[ad_1]

Fatal error: Uncaught Error: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
in /../wp-content/plugins/mashshare-networks/includes/template-functions.php on line 79

Call stack:

  1. method_exists()
    wp-content/plugins/mashshare-networks/includes/template-functions.php:79
  2. mashnet_get_pinterest_image()
    wp-content/plugins/mashshare-networks/includes/template-functions.php:37
  3. mashnet_modify_arrNetworks()
    wp-includes/class-wp-hook.php:308
  4. WP_Hook::apply_filters()
    wp-includes/plugin.php:205
  5. apply_filters()
    wp-content/plugins/mashsharer/includes/template-functions.php:455
  6. arrNetworks()
    wp-content/plugins/mashsharer/includes/template-functions.php:566
  7. mashsb_getNetworks()
    wp-content/plugins/mashsharer/includes/template-functions.php:726
  8. mashshareShow()
    wp-content/plugins/mashsharer/includes/template-functions.php:1055
  9. mashshare_filter_content()
    wp-includes/class-wp-hook.php:308
  10. WP_Hook::apply_filters()
    wp-includes/plugin.php:205
  11. apply_filters()
    wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:54
  12. AMPforWP\AMPVendor\AMP_Content::transform()
    wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-content.php:26
  13. AMPforWP\AMPVendor\AMP_Content::__construct()
    wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.php:327
  14. AMPforWP\AMPVendor\AMP_Post_Template::build_post_content()
    wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/includes/class-amp-post-template.php:121
  15. AMPforWP\AMPVendor\AMP_Post_Template::__construct()
    wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp/amp.php:94
  16. AMPforWP\AMPVendor\amp_render()
    wp-includes/class-wp-hook.php:308
  17. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
  18. WP_Hook::do_action()
    wp-includes/plugin.php:517
  19. do_action()
    wp-includes/template-loader.php:13
  20. require_once()
    wp-blog-header.php:19
  21. require()
    index.php:17

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer