Khang Minh
Forum Replies Created
-
@wingers574 thanks for reporting. Was there any change you made to your site yesterday, such as installing new plugins?
I’m not able to reproduce using Contact Form 7 version 4.4. Would you mind contacting me via http://betterwp.net/contact/ ?
Glad you got it working. Would you mind sharing your solution?
Forum: Plugins
In reply to: [Better WordPress Minify] Problem with cache directorySorry I meant the WordPress document root found under Minify library settings.
Forum: Plugins
In reply to: [Better WordPress Minify] Trouble with managing enqueued CSS filesYou can follow these steps:
1. Download and save Google font css as a local file on your web server, for example
google-font.css.2. Use https://developer.wordpress.org/reference/functions/wp_enqueue_style/ function to enqueue that file. There are examples on the function’s page that you can follow.
I’m not sure if it’s worth all the troubles though, because Google font css is small and should load fast on its own.
You can debug the post module file (
bwp-google-xml-sitemaps/src/modules/post.php) to determine exactly what is causing the timeout. It is heavily commented so hopefully it won’t be difficult for you to find the way around that file.Since the post module uses SQL cycling, the actual query can only be found in
get_resultsfunction inbwp-google-xml-sitemaps/src/class-bwp-gxs-module.phpfile, which is the base sitemap module.Do you set a custom Minify path or Minify document root in your localhost? Did you import your localhost’s database into your live server?
Forum: Plugins
In reply to: [Better WordPress Minify] Problem with cache directoryWhat is the Minify document root on your staging site? What did you set Minify document root to on the live site?
Hello,
That query could be a BWP query, but I’m not certain because it is too generic.
Do you happen to enable the Google Image Sitemap extension? What is your current “Split limit”?
Judging from wp_postmeta’s size, I suspect that it hanged when trying to fetch data from that table. You can check your mysql log for slow queries, but if there’s none it could be that PHP timed out when processing the data fetched from mysql instead.
Forum: Plugins
In reply to: [Better WordPress Minify] Trouble with managing enqueued CSS filesAssuming that you’re loading Google Fonts via their CDN, that CSS file will be ignored by BWP Minify because it is an external one (i.e. can not be located on your site).
You can download that CSS file and enqueue it normally and it will be combined and minified. Please take a look at this similar topic if you haven’t already: https://wordpress.org/support/topic/google-fonts-26?replies=2
Forum: Plugins
In reply to: [Better WordPress Minify] Problem with cache directoryHi Sandra,
Is your previous site (on which BWP Minify was installed successfully) also on WPEngine?
Are Minify path and Minify document root still having their default values?
Glad you got it working.
Are you using multisite? You should not have this issue if you simply have one single blog.
Also, had W3TC been activated before you installed BWP Sitemaps?
Can you try removing these two lines:
sitemap(_index|[0-9]+)?\.xml sitemapindex?\.xml(\.gz)?
from W3TC’s “prevent caching exception list”?
I don’t remember to ever recommend doing that in the FAQ.
One last thing to try if you haven’t done so already: http://betterwp.net/wordpress-plugins/google-xml-sitemaps/faq/#rewrite-rules-error
When you tried to generate a sitemap, what kind of 404 error page did you see (a screenshot might help)?
There are other libraries that we can use to minify javascript, but they are untested. I will try them and let you know. An option to select the minification library is useful as well.