server {
(...)
client_max_body_size 64M;
You attempted to load file with unsupported compression (application/zip). Either support for it is not implemented or disabled by your configuration.

yum install php-zip
service php-fpm restart
WooCommerce Elementor 2 products per line on mobile
@media(max-width:767px){
.elementor-element.elementor-products-grid.elementor-products-columns-mobile-1 ul.products {
grid-template-columns: repeat(2,1fr);
}
}
ERROR 1005 (HY000) at line 6032: Can’t create table ‘cms.product_id’ (errno: 150)
On the import sql or code, add
SET FOREIGN_KEY_CHECKS=0;
For more readings MySQL – FOREIGN KEY Constraints Documentation
PHP Warning: touch(): Utime failed: Permission denied in
You might be having some troubles with file permissions!
I’m setting a new small vps for some tests and I got this…
/var/log/php-fpm/www-error.log
PHP Warning: touch(): Unable to create file ./cache/index.html because Permission denied in
Centos 7
nginx
PHP 7.3.3 PHP-FPM
My PHP-FPM running under apache user instead of nginx on /etc/php-fpm.d/www.conf

Não é possível carregar corretamente o Google Maps nesta página.
Social Media Images Sizes
Facebook image
1200×1200
Facebook cover
1702 x 630 px
Facebook link
1200 x 627 px
Facebook story
1080 x 1920 px
Instagram post
1080 x 1080 px
Instagram story
1080 x 1920 px
Twitter post
1024 x 512 px
Twitter header
1500 x 500 px
Email header
600 x 300 px
LinkedIn post
1200 x 627 px
YouTube profile image
800 x 800 px
YouTube channel cover photo
2560 x 1440 px
WordPress Elementor Popup issue with WPML translations
I came across with a issue on a WordPress theme, with Elementor and WPML.
The theme is using a POPUP for the some menus.
We have a PT and EN version with WPML.
We have created the translation to EN but it isn’t being printed by WP in the EN version of the site, just the PT version.
So, to use translated POPUPs, you might need to translate them under the default language of the WP.

store-mega-menu-en needs to be created under PT language…

To change instance – for the menu to be written on (the entire site)) this is how to change it

PHP message: PHP Warning: file_get_contents(): SSL operation failed – SSL routines:ssl3_get_server_certificate:certificate verify failed
FastCGI sent in stderr: “PHP message: PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
$options=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false
),
);
$url_request = 'https://www.something.com/else.php';
$html = file_get_contents($url_request, false, stream_context_create($options));;
SQL – Update regular prices on WooCommerce
BACKUP DATABASE BEFORE EXECUTE THE QUERIES
UPDATEwp_postmetaAS t1 INNER JOINwp_postmetaAS t2 ON t2.post_id = t1.post_id AND t2.meta_key = '_regular_price' SET t1.meta_value = t2.meta_value WHERE t1.meta_key = '_price'; DELETE FROM wp_postmeta WHERE meta_key = '_sale_price'; DELETE FROM wp_postmeta WHERE meta_key = '_sale_price_dates_to'; DELETE FROM wp_postmeta WHERE meta_key = '_sale_price_dates_from';
as seen on https://www.webdesign101.net/remove-woocommerce-sale-prices/ by LEONID BEILIS
