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

AMP issues with long name logic #5402

Open djixas opened 1 year ago

djixas commented 1 year ago

Hello,

When using longer yet not super long URLs, (randomly and only) sometimes AMP will throw error in error_log as it tries to include random "cookie css" data, despite not enabling cookie notice setting, i cannot reproduce the issue but i see it hundreds of times in error log

[25-Jan-2023 13:16:48 UTC] PHP Warning: file_put_contents(/home/XXXX/public_html/wp-content/uploads/ampforwp-cache/best-latest-greatest-cell-phones-europe/amp/],thor-cookies,div.cookie-alert,div.cookie-banner,div.cookie-consent,div.cookie-content,div.cookie-layer,div.cookie-notice,div.cookie-notification,div.cookie-overlay,div.cookieHolder,div.cookies-visible,div.gdpr,div.js-disclaimer,div.privacy-notice,div.with-cookie,.as-oil-content-overlay/index.html): failed to open stream: File name too long in /home/XXXX/public_html/wp-content/plugins/amp-cache/ampforwp-cache.php on line 375

akshaywali commented 1 year ago

@djixas Are you using any plugin for cookie management ?

akshaywali commented 1 year ago

@djixas Can you please send the list of plugins that you are using on your site .

djixas commented 1 year ago

@djixas Are you using any plugin for cookie management ?

I do not and have cookie or gdpr stuff and all of the gdpr/cookie stuff is disabled in AMP too

301 Redirects Pro Accelerated Mobile Pages Akismet Anti-Spam AMP Pro Extension Manager Classic Editor Classic Widgets Easy Affiliate Links iThemes Security kk Star Ratings JoomDev WP Pros & Cons Schema & Structured Data for WP & AMP Swifty Bar, sticky bar by WPGens W3 Total Cache WordPress Popular Posts Yoast SEO