Hi,
I’ve been developing the Easy Form Builder plugin and faced some challenges related to page caching. To resolve these issues, we implemented the following function to manage page caching plugins alongside Easy Form Builder:
public function cache_cleaner_Efb($page_id,$plugins){
$page_id = intval($page_id);
$cache_plugins = json_decode($plugins);
foreach($cache_plugins as $plugin){
switch($plugin->slug){
case 'litespeed-cache':
if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )) do_action( 'litespeed_purge_post', $page_id );
break;
case 'wp-rocket':
if (function_exists('rocket_clean_post')) $r = rocket_clean_post($page_id);
break;
.
.
.
}
}
}
However, we’re seeking a more integrated solution. Specifically, we’re looking for a structure or method similar to what other plugins use to manage caching effectively.
Thank you in advance for your help and insights!
Best regards
]]>Hello,
On PageSpeed Ninja v1.4.0, I am seeing the following error in my admin dashboard:
I can confirm that the file in question, incompatible_plugins.txt
, does not exist – nor is it available in a fresh copy of PageSpeed Ninja. Do I need to take additional steps to fetch this file?
In the meantime, it seems that replacing the file reference with a blank array allows the plugin to continue working.
Thank you.
]]>I noticed when you first install the plugin (Free version) that it merges the CSS files in the header. However, once you make a change after that in the Ninja settings and clear cache the merging of CSS files fails to run. Do you only get one chance to merge CSS once with free version? I’m not sure why it would not continue merging CSS files after making additional tweaks to the PageSpeed Ninja settings.
]]>Hello!
From time to time my website breaks. It’s showing a white page with only the text without any design then. It seems like the CSS isn’t being loaded.
As an admin I don’t see the problem (Plugin not enabled for logged users). But normal visitors see the broken page.
Clearing the cache helps for the moment. But I need a permanent solution. Can you help?
Thank you!
Peter
Hi,
I have got several videos hosted on my servor. The videos are put in the WP medias library and I use the code: [video]……[/video] to display them on the pages of my site.
When Speed Ninja is activated, the videos don’t play…after a few seconds there is a message:”Media error: Format(s) not supported or source(s) not found”
I precise it is not a problem of format because the videos are playing when Speed Ninja is desactivated.
Last but not least: if I am connected to my WordPress backoffice, videos play, even if Speed Ninja is activated !
Can you help ?
]]>Good Day,
Since installing Pagespeed Ninja Pro, my website has been down regularly with the site displaying
This page isn’t working
fortheloveofgolf.co.za didn’t send any data.
ERR_EMPTY_RESPONSE
Looking at the latest error logs on the server side, these are listed:
[Sat Mar 16 06:04:12.729464 2024] [lsapi:error] [pid 945291] [client 74.125.208.47:49399] [host fortheloveofgolf.co.za] Backend fatal error: PHP Fatal error: gd-webp cannot get webp info in /home/forthel1/public_html/wp-content/plugins/psn-pagespeed-ninja/ress/classes/imghandler/gd.php on line 484\n
[Sat Mar 16 05:22:29.235811 2024] [authz_core:error] [pid 925441] [client 121.46.71.53:32974] AH01630: client denied by server configuration: /home/forthel1/public_html/xmlrpc.php
What do I disable first, if not the whole plugin?
]]>I have a wordpress/woocommerce site running in an autoscaler/load balancer with cloudfront as a reverse proxy.
The servers all mount the same EFS filesystem that contains wordpress.
Database is on RDS.
At any time there are 2 to 10 instances running but they all share the same DB and filesystem.
I am looking for a plugin to handle things like minifying and combining and maybe selective inclusion (like critical CSS) I wouldn’t be enabling page cache.
Have you tested your plugin in this type of scenario or can you think of any reason it wouldn’t work?
BTW- I can’t email you with Gmail.
Client host [209.85.218.41] blocked using?zen.spamhaus.org; Error: open resolver;?https://check.spamhaus.org/returnc/pub/146.190.35.125/
]]>Dear PageSpeed Ninja:
A recent scan identified PageSpeed Ninja as potentially having malware.
File appears to be malicious or unsafe: …/public_html/wp-content/uploads/psn-pagespeed-ninja/cache/ea/ea1873f78f8bcacc55fdaff5c253e7e2887e81c7_js
File appears to be malicious or unsafe: …/public_html/wp-content/uploads/psn-pagespeed-ninja/cache/63/632e31382f3f75f0918622e2acf4109e05adbda4_js
Please advise. Thank you.
]]>Hi
I’m trying to enable the brotli compression for the static files (css, js) but I can’t figure out how to do it, I have checked under /s directory and I only see .js .css and .css.gz .js.gz files.
In the plugin Advanced config page I see:
>Enable text compression (ON)
Gzip Compression (ON)
Gzip Compression in .htaccess (OFF)
Reorder Attributes (ON)
Brotli is not mentioned anywhere.
My server is a ubuntu 22, nginx/1.25.3 with brotli support, PHP-FPM 8.1, The PHP module php-ext-brotli is installed and activated, (PHP can produce .br files, I have checked with another WP plugin)
Thank you for your help
]]>After updating to v1.0.rc.3 my website was giving a 500 HTTP response code. The frontend page seemed to load OK, even though it wasn’t giving the proper 200 response code. Digging into server logs this was the error I was seeing.
2023/10/04 14:43:03 [error] 98140#98140: *22134 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function symlink() in /public/wp-content/plugins/psn-pagespeed-ninja/ress/classes/filesystem/native.php:226
Stack trace:
#0 /public/wp-content/plugins/psn-pagespeed-ninja/ress/classes/imgoptimizer.php(252): Ressio_Filesystem_Native->symlink('/www/...', '/www/...')
#1 /public/wp-content/plugins/psn-pagespeed-ninja/ress/classes/htmloptimizer/base.php(330): Ressio_ImgOptimizer->convert('/www/...', 'webp')
#2 /public/wp-content/plugins/psn-pagespeed-ninja/ress/classes/htmloptimizer/stream.php(370): Ressio_HtmlOptimizer_Base->imgSrcOptimize('https://elevate...')
#3 /public/wp-content/plugins/psn-pagespeed-ninja/ress/classes/htmloptimizer/stream.php(85): Ressio_HtmlOptimizer_Stream->htmlIterate('<!doctype html>...')
#4 /public/wp-content/plugins/psn-pagespeed-ninja/ress/ressio.php(289): Ressio_HtmlOptimizer_St" while reading response header from upstream, client: 74.125.209.39, server: elevatedcommercialroofing.com, request: "GET /?pagespeedninja=0.8706628294296372 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.1-fpm-yeladeqi.sock:", host: "elevatedcommercialroofing.com:37308"
After turning off and on the plugin the errors seem to go away. Not sure if it was a server caching issue or what. Just wanted to mention incase there is a bug that needs fixed or if anyone else notices these errors.
]]>Hello,
after updating to 1.0.rc.2 my website is dead.
I was able to disable the damaged plugin only by Recovery Mode.
Below is a list of errors.
Don’t you test your plugins before publishing?
WordPress w wersji 6.3.1
Aktualny motyw: Natalie Child (wersja 7.0) Aktualna wtyczka: PageSpeed Ninja (wersja 1.0.rc.2) Wersja PHP: 7.2.34
Szczegó?y b??du
===================
B??d typu E_ERROR zosta? spowodowany w linii 50 pliku /home/xxx/xxx2/blog/wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja.php. Komunikat b??du: Uncaught Error: Call to undefined method PagespeedNinja_Activator::activate() in /home/xxx/xxx2/blog/wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja.php:50
Stack trace:
#0 /home/xxx/xxx2/blog/wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja.php(171): PagespeedNinja->activate()
#1 /home/xxx/xxx2/blog/wp-content/plugins/psn-pagespeed-ninja/includes/class-pagespeedninja.php(97): PagespeedNinja->update_config()
#2 /home/xxx/xxx2/blog/wp-includes/class-wp-hook.php(310): PagespeedNinja->upgrader_process_complete(Object(Plugin_Upgrader), Array)
#3 /home/xxx/xxx2/blog/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#4 /home/xxx/xxx2/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /home/xxx/xxx2/blog/wp-admin/includes/class-plugin-upgrader.php(385): do_action('upgrader_proces...', Object(Plugin_Upgrader), Array)
#6 /home/xxx/xxx2/blog/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade(Array)
#7 {
]]>
FYI: With version 5.7 of LiteSpeed LScache plugin PageSpeed Ninja plugin will be blacklisted due to its “bad bahavior”.
]]>When I installed the PageSpeed Ninja plug-in, I disconnected WP Cache. Do I still need an additional cache plug-in with the PageSpeed Ninja?
]]>Hello. Pagespeed ninja has optimized the web to an incredible level, but I have problems on the web. It has deconfigured the mobile button of my theme, which is Orbital theme, which hides and appears when it wants. And on the other hand, my page is a dream interpretation dictionary, and the first two entries of each letter, the featured image does not appear, for example in the letter N, the image of turnip does not appear, nor does it appear of birth. For this reason, I wanted to know what parameter I should touch to make it work correctly. I hope I have explained myself well, thank you.
]]>Hello, no matter how I configure the plugin, even with all options deactivated, the cart contents are not updated correctly. Somehow the cart is cached and never up to date. Only deactivating the plugin solves this issue. Im a fan of this plugin and configured it to the max but currently something is wrong.
]]>Привет!
Что можно изменить в коде плагина, что бы после установки и активации он сразу работал с выбранными настройками (optimal). Без перехода в настройки без применении изменений и т.п.
This is a great add-on. When do you think a new version might be released that addresses those libxml related errors?
]]>If I use css minification some of my styles (-webkit-background-clip, -webkit-text-fill-color) are deleting. In admin mode minification not using and styles are showing.
]]>PageSpeed ninja blocks ads from adsense on my site. On laptops, ads are shown with a delay, and on mobiles, ads are not shown. after deleting it, the advertisement began to display normally. maybe somehow differently it was possible to solve the problem?
]]>When I enable Pagespeed Ninja, the menus and other content in my header and footer basically disappear. I can’t leave it enabled for you to see because then my business website is broken, but I am very disappointed as otherwise it was offering very fast loading. I am currently using WP Fastest Cache but the results are not nearly as good.
]]>This plugin needs to be updated with current version of WORDPRESS, There warning notice, file path: “/plugin/rescale/rescale.php on line 138”
I would request you please upgrade this plugin and please test with current version of WORDPRESS.
]]>Hello.
When I disable the plugin “PageSpeed Ninja” ( bug analysis by other plugins), it destroys the style on the complete page. What is going on there? Is there any solution?
Thanks and greetings
]]>Hello!
FYI I currently have PSN Disabled on this website. When this plugin is enabled, the different image variants of all of my products are not working properly on MOBILE device only. The original product image displays normally but none of the variants appear (unless you tap to zoom, and then the zoomed image magically appears).
I have tried turning ALL of the general settings off while leaving the plugin enabled, but the issue still persists. The only way I have been able to get the issue to go away is to entirely disable the plug in.
Please help. Thank you.
]]>I use PSN Pagespeed Ninja on my site “https://dhruvrathod.com” and somehow Wordfence seems to notify every single day as showns below;
Filename: wp-content/plugins/psn-pagespeed-ninja/cache/73/734dcfb8b0d2d91accebbee525715df3be71d800.zz
File Type: Not a core, theme, or plugin file from www.remarpro.com.
Details: This file appears to be installed or modified by a hacker to perform malicious activity. If you know about this file you can choose to ignore it to exclude it from future scans. The matched text in this file is: \xed}}w?\xf2\xf0\xdfp\xce\xfd\x0e\xbe\xde\x03\xb4\x17
The issue type is: IOC:BIN/hiding.cache.10143
Description: Suspicious binary files
Can you please suggest, what are the steps I can take? Do I need to worry about this?
]]>I am trying to change the distribute method, but it doesn’t seem to have any effect, as it always serve static files with URL /s/f.php?xxxxx.js
From my understanding, it should only do that under distribute mode “PHP”
I have tried “Direct” and “Apache mod_rewrite+mod_headers” to no effect.
Currently it’s at “Apache mod_rewrite+mod_headers”.
What am I missing ?
]]>Hi,
After the WP update and update of my theme the logo on transparent header are invisible. When i use the inspect tool i can see the logo, but when i set te opcaity to 1 it show the logo from the logo with background.
I can see if i deactive the plugin the logo will show. But i want to use the plugin. Are there some settings that i need to change?
Other who have the same issue.
WP version: 5.7.1
Theme: Enfold, 4.8.2 (atest version)
Hi there.
Today I started using Pagespeed Ninja.
After the first settings, moderate, I have the best score, from everything I’ve tested so far.
Now, I want to exclude cart, my-account and checkout, but I do not understand how to proceed with this plugin. Also, should something else be excluded for woocommerce here,… like “mfunc” …? If so, what and how.
We did not find any specific information for woocommerce.
Thank you.
Dear All,
I found out this plugin is still using myIsam Database Storage Engine while my backend is using MariaDb 10.5 Galera Clustering. This is not such a good idea because Galera is not supporting the myIsam Storage Engine.
With phpMyAdmin I was able to convert both tables [psninja_amdd and psninja_amdd_cache] to InnoDb without any issues. So the problem is solved for now.
Maybe an idea to start using InnoDb instead of myIsam in the future ??
Thank you in advance,
Tom Dings
https://Start.YourBlog.Today/
In Yandex Webmaster, site pages quite often fly out of the search due to the error “The document does not contain text.” I contacted Yandex support and received the answer:
We checked that from time to time when the robot accesses the pages of your site, the server returns documents with a size of 0 bytes, so they cannot be indexed and are excluded from the search. If this situation arises, please contact the administrator of the site or server on which it is located. For example, an error occurred when accessing the page https://huaweihelp.ru/obzor-honor-magicwatch-2-nedelya-s-umnymi-chasami/ 2021-04-12 at 06:27:04 UTC. When the pages become available, they will be able to return to the search as the robot crawls the site with subsequent updates to the search base.
Then I contacted hosting support:
Yes, we see this request: 5.255.253.91 - - [12 / Apr / 2021: 09: 27: 04 +0300] huaweihelp.ru GET / obzor-honor-magicwatch-2-nedelya-s-umnymi-chasami / HTTP / 1.1 200 0 "-" " Mozilla / 5.0 (compatible; YandexBot / 3.0; + http: //yandex.com/bots) "" - "0.510-0.510 The site scripts actually generated an empty response to it. We checked the error logs at this moment, no entries were found. Judging by the fact that an empty response was returned with a response code of 200, the site scripts generated the page without errors, but for some unknown reason did not contain data. In this case, we recommend checking the parameters of the caching extension, perhaps there is a problem with it, try clearing the CMS cache, for more information, we recommend that you contact the specialized specialists in the development of sites on CMS WordPress.
Can you please tell me what could be the problem?
]]>Hola me pasa que en la página de “contacto” no puedo desplegar el menú en móvil (en las otras páginas si funciona), esto sucede cuando en la opción MinifyJavascript cuando activo Optimize integrations (Facebook. Google Plus, etc.), me sube bastante el nivel de Pagespped Insights (Móvil 61 y ordenador 93) pero como te menciono tengo ese problema con el menú. Cuando desactivo la opción de Optimize integrations funciona todo bien pero el nivel baja a 9 en móvil y 56 en ordenador. Utilizo el tema oceanwp por favor espero alguna ayuda.
]]>