Can you access your PHP error log? Or can you enable WP_DEBUG in your wp-config.php? If there are errors we need to know what they are.
Also, what plugins do you have active?
Note that the page is not empty, though it is blank. There are a couple scripts in the page source, one for comScore and another for Quantcast.
I set these two in wp-config.php:
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
I tried running the amp pages again. No debug.log appears in wp-content folder.
Activated Plugins:
– Ad Inserter
– AddToAny Share Buttons
– AMP
– Classic Editor
– Display Posts Shortcode
– Glue for Yoast SEO & AMP
– Google Analytics for WordPress by MOnsterInsights
– Jetpack by WordPress.com
– SG Optimizer
– WordPress Importer
– WPB Accordion Menu or Category
– Yoast SEO
Try deactivating plugins one by one until you see the AMP page render properly again. Start with SG Optimizer.
This issue is only with 4 posts though not all 300+ posts. I would think a conflict with other plugins would break the majority of the posts?
So I deactivated SG Optimizer.
There’s an error message that shows now:
Warning: require(/public_html/wp-content/plugins/amp/third_party/fasterimage/ExifParser.php): failed to open stream: Too many open files in /public_html/wp-content/plugins/amp/includes/class-amp-autoloader.php on line 135
Fatal error: require(): Failed opening required ‘/public_html/wp-content/plugins/amp/third_party/fasterimage/ExifParser.php’ (include_path=’.:/usr/local/php56/pear’) in /public_html/wp-content/plugins/amp/includes/class-amp-autoloader.php on line 135
Do the posts that have the problem all have many images on them?
Yes, they are long articles so lots of images.
OK, I can see you opened a support topic for this specific issue in October: https://wordpress.org/support/topic/fatal-error-require-failed-opening-required-file/
I don’t have a fix for you, other than to disable AMP for those specific posts that have the many images. You can do so via “AMP Enabled” toggle in the publish metabox for those posts.
Yes, I did have that issue before. After you told me to reduce the images, it was fine for more than 2 months until 2 days ago when it started to break again. The first being the blank screen which we learned is the SG Optimizer. But the second being the fact that the issue came back after being OK for more than 2 months.
Jetpack 6.9 is out now! Does it solve your problems?
-
This reply was modified 7 years, 4 months ago by
The-Dude.
@the-dude-1 what does Jetpack have to do with this?