All posts by PF

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

UPDATE wp_postmeta AS t1
INNER JOIN wp_postmeta AS 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

Fatal error (#200) – If posting to a group, requires app being installed in the group

Fatal error: Uncaught Facebook\Exceptions\FacebookAuthorizationException: (#200) If posting to a group, requires app being installed in the group, and \ either publish_to_groups permission with user token, or both manage_pages \ and publish_pages permission with page token; If posting to a page, \ requires both manage_pages and publish_pages as an admin with \ sufficient administrative permission in

https://developers.facebook.com/community/threads/243630770409028/
https://developers.facebook.com/support/bugs/279765279722466/