Forum Replies Created

Viewing 15 replies - 1 through 15 (of 46 total)
  • Thread Starter SHiRKiT

    (@shirkit)

    Hello @diegoversiani,

    What about CheckoutWC? It seems that something is not quite right there and I can’t pinpoint what it is.

    Thank you!

    Thread Starter SHiRKiT

    (@shirkit)

    Thing is, part of the videos work normally, but the other part doesn’t

    https://temp.orquidariobahia.com.br/workshop/

    The last video never loads the title

    Not working on my end either: https://imgur.com/a/Ka8orgt

    It just populates the ZIP Code. I know Google Places return funky values for their API, sometimes it works, sometimes it doesn’t. For instance, on this request, this is the Places Response

    /**/_xdc_._hegq57 && _xdc_._hegq57( {
       "html_attributions" : [],
       "result" : {
          "address_components" : [
             {
                "long_name" : "1290",
                "short_name" : "1290",
                "types" : [ "street_number" ]
             },
             {
                "long_name" : "Rua Jandiroba",
                "short_name" : "R. Jandiroba",
                "types" : [ "route" ]
             },
             {
                "long_name" : "Patamares",
                "short_name" : "Patamares",
                "types" : [ "sublocality_level_1", "sublocality", "political" ]
             },
             {
                "long_name" : "Salvador",
                "short_name" : "Salvador",
                "types" : [ "administrative_area_level_2", "political" ]
             },
             {
                "long_name" : "Bahia",
                "short_name" : "BA",
                "types" : [ "administrative_area_level_1", "political" ]
             },
             {
                "long_name" : "Brasil",
                "short_name" : "BR",
                "types" : [ "country", "political" ]
             },
             {
                "long_name" : "41680-040",
                "short_name" : "41680-040",
                "types" : [ "postal_code" ]
             }
          ],
          "formatted_address" : "R. Jandiroba, 1290 - Patamares, Salvador - BA, 41680-040, Brasil",
          "geometry" : {
             "location" : {
                "lat" : -12.9532368,
                "lng" : -38.4066948
             },
             "viewport" : {
                "northeast" : {
                   "lat" : -12.9519433697085,
                   "lng" : -38.4053713697085
                },
                "southwest" : {
                   "lat" : -12.9546413302915,
                   "lng" : -38.4080693302915
                }
             }
          }
       },
       "status" : "OK"
    }
     )

    It’s not a trivial task, but if you allow each developer to input their data for their location, maybe in time you can build something that works? I have no ideia how Shopify manages to get it right every damn time.

    Thread Starter SHiRKiT

    (@shirkit)

    Perfect! Thank you very much Frank! That solved it all!

    Thread Starter SHiRKiT

    (@shirkit)

    Thank you very much Frank! That solved it! I’ve successfully compressed all my files into one JS, respecting their proper order.

    Now I have one pesky letover CSS file that just won’t merge into the main CSS file. I have Aggregate CSS-files? and Also aggregate inline CSS? turn on, and my exclusion list only contains admin-bar.min.css, dashicons.min.css, wp-content/cache/ but still there’s one extra file remaining

    https://i.imgur.com/OkMhtz9.png

    Any suggestions on how to get it to merge? I think it’s a WooCommerce file.

    • This reply was modified 3 years, 10 months ago by SHiRKiT.
    Thread Starter SHiRKiT

    (@shirkit)

    Yes, applying the patch did fix it. Thanks for your support! Love your Autoptimize, it’s just the best!

    Thanks!

    Thread Starter SHiRKiT

    (@shirkit)

    Interesting I think it’s returning false, since function_exists('mime_content_type') === false is returning 1, but function_exists('mime_content_type') === true isn’t returning anything.

    Thread Starter SHiRKiT

    (@shirkit)

    Ok, I found out that mime_content_type() quietly shuts down without any warning or error being thrown, on line 95.

    Running PHP 7.2.18 on NGinx 1.17.0

    Thread Starter SHiRKiT

    (@shirkit)

    That was because I cleared the cache. How can we check if LyteThumbs is fetching the right file locally? Or maybe the request is screwing this somehow, with the special characters?

    Thread Starter SHiRKiT

    (@shirkit)

    [11:20][[email protected] cache]# ls -l
    total 4
    drwxrws--- 4 nginx nginx 62 Mar 28 20:06 autoptimize
    -rw-r--r-- 1 nginx nginx 47 Jan 24 10:38 cache-enabler-advcache-curso.orquidariobahia.com.br.json
    drwxr-sr-x 2 nginx nginx 24 May 28 11:19 lyteThumbs
    drwxrws--- 2 nginx nginx  6 Nov 19  2018 supercache
    [11:20][[email protected] cache]# cd lyteThumbs/
    [11:20][[email protected] lyteThumbs]# ls -l
    total 4
    -rw-r--r-- 1 nginx nginx 197 May 27 18:25 index.html
    [11:20][[email protected] lyteThumbs]# ls -l
    total 300
    -rw-r--r-- 1 nginx nginx  13949 May 28 11:20 3e1d305402634def44a4fa0d9448c829.jpg
    -rw-r--r-- 1 nginx nginx  17225 May 28 11:20 7ae9dc43438ea79a78ff879eba4c7c80.jpg
    -rw-r--r-- 1 nginx nginx  25123 May 28 11:20 80dbfb68efd67bcc37757c80a94b1d29.jpg
    -rw-r--r-- 1 nginx nginx   9693 May 28 11:20 a89e4384bdef732a9f204c1d3e7ce192.jpg
    -rw-r--r-- 1 nginx nginx  14423 May 28 11:20 aaa92a4487579d596c856146fafcc4dc.jpg
    -rw-r--r-- 1 nginx nginx  18246 May 28 11:20 cadebfae36b9247068d31c2855969a0c.jpg
    -rw-r--r-- 1 nginx nginx  18899 May 28 11:20 d216bdb962c1344c59aedb7c50538841.jpg
    -rw-r--r-- 1 nginx nginx  19003 May 28 11:20 eaa4e29137055a5fb6c3014ea31864b0.jpg
    -rw-r--r-- 1 nginx nginx 145175 May 28 11:20 f3c9a9377df4193c9d4f612bcd74c414.jpg
    -rw-r--r-- 1 nginx nginx    197 May 27 18:25 index.html
    [11:20][[email protected] lyteThumbs]#
    
    Thread Starter SHiRKiT

    (@shirkit)

    The files are there, as expected, and it does have permissions, and creating the files with regular permissions.

    When I delete the files, the first time I reload the images, they are loaded. When I refresh the page, error 500 is thrown without any logging.

    Thread Starter SHiRKiT

    (@shirkit)

    Nope, the best I have is this, after enabling debug logging. No errors thrown at WordPress, Nginx or PHP-FPM level I could find.

    2019/05/28 10:46:58 [notice] 2219#2219: *14 "(\?add-to-cart=|/cart/|/my-account/|/checkout/|/shop/checkout/|/store/checkout/|/customer-dashboard/|/addons/|/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)" matches "/wp-content/plugins/wp-youtube-lyte/lyteThumbs.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FREsDbKZ17kU%2Fhqdefault.jpg", client: 177.98.231.120, server: curso.orquidariobahia.com.br, request: "GET /wp-content/plugins/wp-youtube-lyte/lyteThumbs.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FREsDbKZ17kU%2Fhqdefault.jpg HTTP/2.0", host: "curso.orquidariobahia.com.br"
    2019/05/28 10:46:58 [notice] 2219#2219: *14 "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in|edd_items_in_cart|woocommerce_items_in_cart|woocommerce_cart_hash|woocommerce_recently_viewed|wc_session_cookie_HASH|wp_woocommerce_session_|wptouch_switch_toogle" does not match "__tawkuuid=e::curso.orquidariobahia.com.br::BVERLtZk/qIb3Lvfu18eE3e8NDFacgs8AmWUs1xwmtz6rSo21XlypsDu/i6y/r4G::2; TawkConnectionTime=0", client: 177.98.231.120, server: curso.orquidariobahia.com.br, request: "GET /wp-content/plugins/wp-youtube-lyte/lyteThumbs.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FREsDbKZ17kU%2Fhqdefault.jpg HTTP/2.0", host: "curso.orquidariobahia.com.br"
    2019/05/28 10:46:58 [notice] 2219#2219: *14 "image/webp" does not match "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", client: 177.98.231.120, server: curso.orquidariobahia.com.br, request: "GET /wp-content/plugins/wp-youtube-lyte/lyteThumbs.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FREsDbKZ17kU%2Fhqdefault.jpg HTTP/2.0", host: "curso.orquidariobahia.com.br"
    2019/05/28 10:46:58 [notice] 2219#2219: *14 "(\?add-to-cart=|/cart/|/my-account/|/checkout/|/shop/checkout/|/store/checkout/|/customer-dashboard/|/addons/|/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)" does not match "/favicon.ico", client: 177.98.231.120, server: curso.orquidariobahia.com.br, request: "GET /favicon.ico HTTP/2.0", host: "curso.orquidariobahia.com.br"
    2019/05/28 10:46:58 [notice] 2219#2219: *14 "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in|edd_items_in_cart|woocommerce_items_in_cart|woocommerce_cart_hash|woocommerce_recently_viewed|wc_session_cookie_HASH|wp_woocommerce_session_|wptouch_switch_toogle" does not match "__tawkuuid=e::curso.orquidariobahia.com.br::BVERLtZk/qIb3Lvfu18eE3e8NDFacgs8AmWUs1xwmtz6rSo21XlypsDu/i6y/r4G::2; TawkConnectionTime=0", client: 177.98.231.120, server: curso.orquidariobahia.com.br, request: "GET /favicon.ico HTTP/2.0", host: "curso.orquidariobahia.com.br"
    2019/05/28 10:46:58 [notice] 2219#2219: *14 "image/webp" matches "image/webp,*/*", client: 177.98.231.120, server: curso.orquidariobahia.com.br, request: "GET /favicon.ico HTTP/2.0", host: "curso.orquidariobahia.com.br"
    Thread Starter SHiRKiT

    (@shirkit)

    Also, as an additional quesiton, can I disable the Google Fonts usage?

    I’m bundling all my fonts in a single file with base64 encoding, which is proving to be faster due to 3G connections having huge RRT times here. I could just put Roboto there as well.

    Thread Starter SHiRKiT

    (@shirkit)

    I’m sorry for bothering you, yesterday I did go into the Chrome Inspector’s responsive mode, disabled the caching and hit Ctrl + Shift + F5 3 times and it did not load the scaled down images. Then I ran the tests and got confused. Indeed the Google’s test is just unreliable, I tend to just ignore it at all, since GTMetrix presents everything better and more detailed.

    Thanks again!

    Thread Starter SHiRKiT

    (@shirkit)

    Dear Takis,

    So I’m launching a new website, and the new design has brought attention to a issue: it does not take into account CSS background-image. It does not scale those, is that correct? I thought it would grab any HTTP request, whether it’s inside a IMG tag or not.

    Do you know if I’m doing something wrong again?

    Website in question: https://www.estudioelementus.com/

    Reports:
    https://gtmetrix.com/reports/www.estudioelementus.com/yt7lBUkW
    https://developers.google.com/speed/pagespeed/insights/?hl=pt-BR&utm_source=wmx&utm_campaign=wmx_otherlinks&url=https%3A%2F%2Fwww.estudioelementus.com%2F&tab=mobile
    http://www.webpagetest.org/result/170503_5D_4VM/

Viewing 15 replies - 1 through 15 (of 46 total)