hellpunch
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] [bug] Remove picture from the product page doesn’t workYeah, it was a conflict with a snippet code with the new version of woo commerce although previously was working, here is the debug code:
Uncaught Error: Call to a member function get() on null in
*/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php:96 Stack trace: #0
*/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read() #1
*/wp-content/plugins/woocommerce/includes/class-wc-customer.php(116): WC_Data_Store->read() #2
*/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1227): WC_Customer->__construct() #3
*/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(209): WC_Checkout->get_value() #4
*/wp-content/plugins/code-snippets/php/snippet-ops.php(446) : eval()’d code(34): WC_Checkout->get_checkout_fields() #5
*/wp-includes/class-wp-hook.php(287): myprefix_woocommerce_confirm_password_checkout() #6
*/wp-includes/class-wp-hook.php(311): WP_Hook->app in
*/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php on line 96Forum: Plugins
In reply to: [WooCommerce] [bug] Remove picture from the product page doesn’t workHi, i have woocommerce 4.8
Forum: Reviews
In reply to: [Images to WebP] It doesn’t work for nginx server completlyWhat does that even mean, how is that gd and imagick show webp enabled when my server shouldn’t support it then?
Forum: Reviews
In reply to: [Images to WebP] It doesn’t work for nginx server completlyAgain, doesn’t work.
The code checks if CURLINFO_SIZE_DOWNLOAD is > 100 and then kills the plugin activation with wp_die if that condition is true. I print out $filesize and it shows me “435”.
- This reply was modified 5 years, 10 months ago by hellpunch.
Forum: Reviews
In reply to: [Images to WebP] It doesn’t work for nginx server completlyBut i copied exactly the code the instruction gave me. Just that you can’t add a location block directly to the nginx conf file.
so goes like
map $http_accept $webp_suffix {
…
}
server {
location ~* ^/wp-content/.+\.(png|gif|jpe?g)$ {
…..
}
}or in the server block inside the sub folder.
What does CURLINFO_SIZE_DOWNLOAD > 100 check exactly?
- This reply was modified 5 years, 10 months ago by hellpunch.
- This reply was modified 5 years, 10 months ago by hellpunch.
- This reply was modified 5 years, 10 months ago by hellpunch.
- This reply was modified 5 years, 10 months ago by hellpunch.
- This reply was modified 5 years, 10 months ago by hellpunch.
Forum: Reviews
In reply to: [Images to WebP] It doesn’t work for nginx server completlyWell… i am my developer. Just very very un experienced. I just disregarded the wp_die check control, removing the part of code there to show me the instructions and activated the plugin. it works but the image are still not loaded with webp format but the conversion through imagick is successful. Sigh. But that is not this plugin fault, it is this nginx configuration that doesn’t seem to work properly. I have tried many plugins without the cdn option but that would change webp locally according to http request but none seem to work. Thanks for the reply.
Don’t worry, i managed to install the webp module for imagick so now it correctly displays the option. Thanks!
Hello, thanks for the reply. I found out that webp extension wasn’t installed when i installed imagemagick from its source and that i have to configure it manually.
thanks, will it work on code snippet too?
Where do i apply this code to make the plugin generate webp files from retina 2X?