ahmedkaludi / accelerated-mobile-pages

Automatically add Accelerated Mobile Pages (AMP Project) functionality on your WordPress.
http://ampforwp.com
Other
176 stars 96 forks source link

Fatal error: Uncaught Error: Call to a member function get_contents() on null #5032

Closed ghost closed 3 years ago

ghost commented 3 years ago

PHP Fatal error: Uncaught Error: Call to a member function get_contents() on null in /home/infantje/simplyraw.in/wp-content/plugins/accelerated-mobile-pages/components/components-core.php:398

Conflict with the Sassy Social Share plugin.

https://www.simplyraw.in/akira-kurosawa-a-great-storyteller-on-celluloid/amp/

issue recreated in the local.

PHP Fatal error: Uncaught Error: Call to a member function get_contents() on null in C:\xampp\htdocs\sravan\wp-content\plugins\accelerated-mobile-pages\components\components-core.php:398 Stack

steps to recreate :

  1. Activate: Sassy Social Share plugin

  2. Enable Optimize CSS (beta) option in AMP >> settings >> performance

  3. Then open the single post/single page

  4. error appears only we logged out the wp-admin.

  5. when we logged in, an error won't appear.

Please see this video the issue is shown: https://monosnap.com/file/TMNM3IQWTjPJC53Lq6vghIDcEH33IL

https://secure.helpscout.net/conversation/1519195023/197168/

MohammedKaludi commented 3 years ago

Pushed in 1.0.77.3