short-pixel-optimizer / enable-media-replace Goto Github PK
View Code? Open in Web Editor NEWEnable Media Replace WordPress plugin
License: GNU General Public License v2.0
Enable Media Replace WordPress plugin
License: GNU General Public License v2.0
Someone else posted about this here: https://wordpress.org/support/topic/file-type-does-not-meet-security-guidelines-try-another-3/
Same issue- trying to enable the ability to replace .xlsm files (which upload successfully) but don't work with the Media Replace. I thought this was fixed in the latest version after looking at that other persons post, but perhaps not?
Hi, thanks for the great plugin!!!
I found it's really useful and I'm using it as a utility library 😀
I found that when calling the EnableMediaReplace\Replacer#replaceWith
method:
https://github.com/short-pixel-optimizer/enable-media-replace/blob/master/classes/replacer.php#L95
will fail if the$file
is not a uploaded file(means is_uploaded_file($file)
returns false
).
Can we just use the rename()
instead of the move_uploaded_file()
here?
PHP8, Im using also Tabify Edit Screen plugin which is broken with Enable Media Replace
Error Attempt to read property "post_author" on null
_public function add_meta_boxes($post_type, $post)
{
if (! $this->checkImagePermission($post->post_author, $post->ID))
{ return; }
add_meta_box('emr-replace-box', __('Replace Media', 'enable-media-replace'), array($this, 'replace_meta_box'), 'attachment', 'side', 'low');
if (isset($_GET['emr_replaced']) && intval($_GET['emr_replaced'] == 1))_
Hi,
I found a problem with EnableMediaReplace and Elementor. When i replace the media in wp-admin i got no error and the replacement work inside Media.
But if i choose "Replace with the new filename" its does not replace link inside Elementor module.
The data is not store the same way as other postmeta. Like that
http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/09\/thermal-2019-banner.jpg
[{"id":"14b1247","elType":"section","settings":{"content_width":{"unit":"px","size":1400,"sizes":[]},"gap":"no","custom_height":{"unit":"px","size":0,"sizes":[]},"overflow":"hidden","structure":"20","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"032babb","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"#000000"},"elements":[{"id":"ae73786","elType":"column","settings":{"_column_size":50,"_inline_size":42.982,"content_position":"center","space_between_widgets":10,"background_background":"classic","background_color":"#1c1c1c","margin":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"padding":{"unit":"px","top":"60","right":"60","bottom":"60","left":"60","isLinked":true},"padding_tablet":{"unit":"px","top":"40","right":"40","bottom":"40","left":"40","isLinked":true}},"elements":[{"id":"8a28efa","elType":"widget","settings":{"title":"Une marque","align":"center","title_color":"#ffffff","motion_fx_motion_fx_scrolling":"yes","motion_fx_opacity_effect":"yes","motion_fx_opacity_direction":"in-out","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":60,"end":80}},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"9d65d69","elType":"widget","settings":{"title":"Professionnelle","align":"center","title_color":"#ffffff","typography_typography":"custom","typography_font_family":"Just Another Hand","typography_font_size":{"unit":"px","size":113,"sizes":[]},"typography_font_weight":"100","_margin":{"unit":"px","top":"20","right":"0","bottom":"0","left":"0","isLinked":false},"motion_fx_motion_fx_scrolling":"yes","motion_fx_opacity_effect":"yes","motion_fx_opacity_direction":"in-out","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":60,"end":80}},"motion_fx_devices":["desktop","tablet"],"tooltip_content":"I am a tooltip","typography_font_size_tablet":{"unit":"px","size":75,"sizes":[]}},"elements":[],"widgetType":"heading"},{"id":"007384a","elType":"widget","settings":{"editor":"<p>Pour des soins personnalis\u00e9s, des produits d\u2019expertise et des r\u00e9sultats visibles<\/p>","align":"center","text_color":"#ffffff","typography_typography":"custom","typography_font_size":{"unit":"px","size":22,"sizes":[]},"motion_fx_motion_fx_scrolling":"yes","motion_fx_opacity_effect":"yes","motion_fx_opacity_direction":"in-out","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":60,"end":80}},"tooltip_content":"I am a tooltip","typography_line_height":{"unit":"em","size":1.3,"sizes":[]}},"elements":[],"widgetType":"text-editor"},{"id":"6f807c3","elType":"widget","settings":{"text":"D\u00c9COUVREZ NOS PRODUITS","align":"center","button_text_color":"#000000","background_color":"#ffeded","button_background_hover_color":"#ffffff","border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"32","bottom":"8","left":"32","isLinked":false},"motion_fx_motion_fx_scrolling":"yes","motion_fx_opacity_effect":"yes","motion_fx_opacity_direction":"in-out","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":60,"end":80}},"tooltip_content":"I am a tooltip","_margin":{"unit":"px","top":"30","right":"0","bottom":"0","left":"0","isLinked":false},"link":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/09\/thermal-2019-banner.jpg","is_external":"","nofollow":""}},"elements":[],"widgetType":"button"}],"isInner":false},{"id":"cd6424d","elType":"column","settings":{"_column_size":50,"_inline_size":57.018},"elements":[{"id":"101dbf5","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/04\/36596-Serum-Correcteur-Performance-Performance-Correcting-Serum-HD.png","id":937},"align":"left","width":{"unit":"vw","size":19,"sizes":[]},"motion_fx_motion_fx_scrolling":"yes","motion_fx_opacity_effect":"yes","motion_fx_opacity_direction":"in-out","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":50,"end":100}},"motion_fx_scale_effect":"yes","motion_fx_scale_speed":{"unit":"px","size":-1,"sizes":[]},"motion_fx_scale_range":{"unit":"%","size":"","sizes":{"start":40,"end":80}},"_element_width":"initial","_position":"absolute","_offset_x":{"size":4.26,"unit":"vw"},"_offset_y":{"size":18.763,"unit":"vw"},"image_size":"medium","width_tablet":{"unit":"%","size":56,"sizes":[]},"width_mobile":{"unit":"%","size":54,"sizes":[]},"_offset_x_tablet":{"unit":"px","size":55,"sizes":[]},"_offset_x_mobile":{"unit":"px","size":11,"sizes":[]},"_offset_y_tablet":{"unit":"px","size":330,"sizes":[]},"_offset_y_mobile":{"unit":"px","size":308,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"image"},{"id":"c18216a","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/06\/femme-matis-1.jpg","id":1873},"width":{"unit":"vw","size":30,"sizes":[]},"motion_fx_translateY_effect":"yes","motion_fx_translateY_direction":"negative","image_size":"medium_large","width_tablet":{"unit":"%","size":79,"sizes":[]},"width_mobile":{"unit":"%","size":82,"sizes":[]},"_margin_tablet":{"unit":"px","top":"60","right":"0","bottom":"0","left":"0","isLinked":false},"_padding_mobile":{"unit":"px","top":"0","right":"0","bottom":"80","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"image"}],"isInner":false}],"isInner":false},{"id":"8a7c4e9","elType":"section","settings":{"structure":"40","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"a3d6331","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"padding":{"unit":"px","top":"90","right":"90","bottom":"90","left":"90","isLinked":true},"content_width":{"unit":"px","size":1400,"sizes":[]},"padding_tablet":{"unit":"px","top":"40","right":"40","bottom":"40","left":"40","isLinked":true}},"elements":[{"id":"6ed4e99","elType":"column","settings":{"_column_size":25,"_inline_size":null,"space_between_widgets":10},"elements":[{"id":"8584011","elType":"widget","settings":{"title":"PROFITEZ DE LA LIVRAISON GRATUITE","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"typography_text_transform":"uppercase","align":"center","typography_font_weight":"400","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"d4630ac","elType":"widget","settings":{"editor":"avec toute commande de 50 $ et plus, avant taxes","align":"center","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"a319bdd","elType":"widget","settings":{"text":"Magasinez","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_font_weight":"400","typography_text_transform":"uppercase","typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"button_text_color":"#000000","background_color":"rgba(0,0,0,0)","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_color":"#000000","border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"bb67c10\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22post%22%2C%22post_id%22%3A%22710%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":false},{"id":"ef560bf","elType":"column","settings":{"_column_size":25,"_inline_size":null,"space_between_widgets":10,"align":"center","background_color":"rgba(0,0,0,0)","border_width":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"border_color":"#000000","border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true}},"elements":[{"id":"9a8a0b8","elType":"widget","settings":{"title":"D\u00e9couvrez nos offres","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"typography_text_transform":"uppercase","align":"center","typography_font_weight":"400","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"f550870","elType":"widget","settings":{"editor":"Promotions exclusives \u00e0 ne pas manquer","align":"center","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"8186fc9","elType":"widget","settings":{"text":"Profitez-en","link":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/promotions\/","is_external":"","nofollow":""},"align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_font_weight":"400","typography_text_transform":"uppercase","typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"button_text_color":"#000000","background_color":"rgba(0,0,0,0)","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_color":"#000000","border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"047db4f\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22post%22%2C%22post_id%22%3A%222012%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":false},{"id":"963731f","elType":"column","settings":{"_column_size":25,"_inline_size":null,"space_between_widgets":10},"elements":[{"id":"cac00b8","elType":"widget","settings":{"title":"Choisissez vos doses d'essai","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"typography_text_transform":"uppercase","align":"center","typography_font_weight":"400","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"a7b7a5f","elType":"widget","settings":{"editor":"<p>Selon vos achats<\/p>","align":"center","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"caa7e33","elType":"widget","settings":{"text":"Magasinez","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_font_weight":"400","typography_text_transform":"uppercase","typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"button_text_color":"#000000","background_color":"rgba(0,0,0,0)","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_color":"#000000","border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"c8ecfc0\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22post%22%2C%22post_id%22%3A%22710%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":false},{"id":"fc7afa0","elType":"column","settings":{"_column_size":25,"_inline_size":null,"space_between_widgets":10},"elements":[{"id":"f3afd6a","elType":"widget","settings":{"title":"Vous avez une question ?","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"typography_text_transform":"uppercase","align":"center","typography_font_weight":"400","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"5af490a","elType":"widget","settings":{"editor":"<p>On peut vous aider !<\/p>","align":"center","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"ddbe092","elType":"widget","settings":{"text":"Contactez-nous","link":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/nous-joindre\/","is_external":"","nofollow":""},"align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_font_weight":"400","typography_text_transform":"uppercase","typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"button_text_color":"#000000","background_color":"rgba(0,0,0,0)","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_color":"#000000","border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"1f3c59b\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22post%22%2C%22post_id%22%3A%2241%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":false}],"isInner":false},{"id":"76a5baf","elType":"section","settings":{"height":"min-height","custom_height":{"unit":"px","size":"","sizes":[]},"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"5275e6c","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"#ffeded"},"elements":[{"id":"6036cf0","elType":"column","settings":{"_column_size":100},"elements":[{"id":"a32d357","elType":"section","settings":{"content_width":{"unit":"px","size":800,"sizes":[]},"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"e85becf","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"margin":{"unit":"px","top":"-38","right":0,"bottom":"0","left":0,"isLinked":false},"background_background":"classic","padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"margin_tablet":{"unit":"px","top":"-38","right":0,"bottom":"0","left":0,"isLinked":false}},"elements":[{"id":"208e96d","elType":"column","settings":{"_column_size":100,"_inline_size":null},"elements":[{"id":"2e06be7","elType":"widget","settings":{"title":"R\u00c9V\u00c9LEZ <span class=\"typotitle\">VOTRE<\/span> BEAUT\u00c9","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":40,"sizes":[]},"typography_text_transform":"uppercase","typography_line_height":{"unit":"px","size":"","sizes":[]},"typography_letter_spacing":{"unit":"px","size":1.5,"sizes":[]},"_padding":{"unit":"px","top":"0","right":"0","bottom":"30","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"3350c0f","elType":"widget","settings":{"editor":"<p>Une marque professionnelle pour des soins et produits d'expertise.<\/p>","align":"center","text_color":"#000000","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"typography_font_weight":"200","_padding":{"unit":"px","top":"0","right":"0","bottom":"30","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"e417509","elType":"widget","settings":{"text":"d\u00e9couvrez nos produits","align":"center","button_text_color":"#000000","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"400","typography_text_transform":"uppercase","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_color":"#000000","tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"710cd8d\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22post%22%2C%22post_id%22%3A%22710%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":true}],"isInner":true}],"isInner":false}],"isInner":false},{"id":"67761a5","elType":"section","settings":{"content_width":{"unit":"px","size":1400,"sizes":[]},"height":"min-height","custom_height":{"unit":"px","size":"","sizes":[]},"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"5275e6c","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"gradient","background_color":"#ffeded","background_color_stop":{"unit":"%","size":50.2,"sizes":[]},"background_color_b":"rgba(255,239,247,0)","background_color_b_stop":{"unit":"%","size":50.2,"sizes":[]},"margin":{"unit":"px","top":"0","right":0,"bottom":"90","left":0,"isLinked":false},"padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false}},"elements":[{"id":"f78ff37","elType":"column","settings":{"_column_size":100},"elements":[{"id":"6393bc3","elType":"widget","settings":{"presets":"preset-3","columns":"4","equal_height_cols":"true","number":8,"sale_badge_text":"Promo","show_excerpt":"","show_cat":"","show_tag":"","show_rating":"","button_use_ajax_style":"yes","carousel_enabled":"yes","slides_min_height":0,"column_padding":{"unit":"px","top":"20","right":"20","bottom":"20","left":"20","isLinked":true},"thumb_margin":{"unit":"px","top":"30","right":"30","bottom":"30","left":"30","isLinked":true},"title_typography_typography":"custom","title_typography_font_size":{"unit":"px","size":22,"sizes":[]},"title_typography_font_weight":"300","title_color":"#000000","button_typography_typography":"custom","button_typography_font_size":{"unit":"px","size":13,"sizes":[]},"button_typography_font_weight":"300","button_padding":{"unit":"px","top":"8","right":"16","bottom":"8","left":"16","isLinked":false},"arrows_style_popover_toggle":"custom","arrows_style_box_font_size":{"unit":"px","size":30,"sizes":[]},"button_typography_text_transform":"uppercase","button_typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"button_hover_bg_color":"#ff6f61","button_hover_color":"#000000","badge_on_sale_background_background":"classic","badge_on_sale_background_color":"#ff6f61","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"jet-woo-products"}],"isInner":false}],"isInner":false},{"id":"8a66cc2","elType":"section","settings":{"content_width":{"unit":"px","size":1400,"sizes":[]},"structure":"20","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"2146ccf","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_position":"center left","background_repeat":"no-repeat","padding":{"unit":"px","top":"90","right":"0","bottom":"90","left":"0","isLinked":false},"padding_tablet":{"unit":"px","top":"0","right":"0","bottom":"0","left":"40","isLinked":false},"padding_mobile":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"hide_desktop":"hidden-desktop","hide_tablet":"hidden-tablet","hide_mobile":"hidden-phone"},"elements":[{"id":"d084c05","elType":"column","settings":{"_column_size":50,"_inline_size":33.643,"padding":{"unit":"px","top":"60","right":"60","bottom":"60","left":"0","isLinked":false},"padding_tablet":{"unit":"px","top":"20","right":"20","bottom":"20","left":"0","isLinked":false},"padding_mobile":{"unit":"px","top":"10","right":"10","bottom":"10","left":"10","isLinked":true}},"elements":[{"id":"d1d76d2","elType":"widget","settings":{"title":"Des jambes plus douces, plus longtemps","typography_typography":"custom","typography_font_size":{"unit":"px","size":40,"sizes":[]},"_z_index":2,"typography_font_weight":"100","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"b49445d","elType":"widget","settings":{"icon":"fa fa-angle-right","align":"left","primary_color":"#ff6f61","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"icon"},{"id":"034e5fb","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/04\/MATIS-TEXTURES-reponse-intensive.jpg","id":230},"align":"right","width":{"unit":"%","size":55,"sizes":[]},"_margin_mobile":{"unit":"px","top":"-65","right":"0","bottom":"0","left":"0","isLinked":false},"_padding_mobile":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"image"}],"isInner":false},{"id":"3830593","elType":"column","settings":{"_column_size":50,"_inline_size":66.357,"content_position":"center","background_background":"gradient","background_color":"#243f58","background_color_b":"#162739","background_gradient_type":"radial","padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"background_overlay_background":"classic","background_overlay_image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/04\/jambe-73348165_ok.png","id":227},"background_overlay_position":"center left","background_overlay_repeat":"no-repeat","background_overlay_size":"initial","background_overlay_bg_width":{"unit":"%","size":90,"sizes":[]},"background_overlay_opacity":{"unit":"px","size":1,"sizes":[]}},"elements":[{"id":"3a0500f","elType":"section","settings":{"gap":"wider","structure":"20","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"21f855b","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}]},"elements":[{"id":"e14365f","elType":"column","settings":{"_column_size":50,"_inline_size":null},"elements":[{"id":"a04e840","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/04\/35636-Emulsion-Hydratante-Essentielle-Essential-Moisturizing-Body-Lotion-2.png","id":173},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"image"}],"isInner":true},{"id":"95e8c2a","elType":"column","settings":{"_column_size":50,"_inline_size":null,"space_between_widgets":10},"elements":[{"id":"c0bf616","elType":"widget","settings":{"title":"Douceur","align":"center","title_color":"#e5fffc","typography_typography":"custom","typography_font_family":"Just Another Hand","typography_font_size":{"unit":"px","size":60,"sizes":[]},"typography_font_weight":"100","typography_text_decoration":"none","typography_line_height":{"unit":"px","size":60,"sizes":[]},"_margin":{"unit":"px","top":"0","right":"0","bottom":"-20","left":"0","isLinked":false},"_element_custom_width":{"unit":"px","size":158,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"197f004","elType":"widget","settings":{"title":"\u00c9mulsion Hydratante Essentielle","align":"center","title_color":"#ffffff","_margin":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"8d8b00e","elType":"widget","settings":{"editor":"<p>Cr\u00e8me onctueuse enveloppant le corps d\u2019un cocon de douceur.<\/p>","align":"center","text_color":"#ffffff","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"effd800","elType":"widget","settings":{"text":"En savoir plus","align":"center","button_text_color":"#ffffff","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"300","border_color":"#ffffff","typography_text_transform":"uppercase","tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"dad43fa\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22taxonomy%22%2C%22taxonomy_id%22%3A%22142%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":true}],"isInner":true}],"isInner":false}],"isInner":false},{"id":"18cf693","elType":"section","settings":{"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"fabc5b3","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"margin_tablet":{"unit":"px","top":"60","right":0,"bottom":"0","left":0,"isLinked":false}},"elements":[{"id":"c0d6f63","elType":"column","settings":{"_column_size":100},"elements":[{"id":"b5b24ed","elType":"widget","settings":{"title":"mieux <span class=\"typotitle\">comprendre <\/span> sa peau","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":40,"sizes":[]},"typography_text_transform":"uppercase","typography_line_height":{"unit":"px","size":"","sizes":[]},"typography_letter_spacing":{"unit":"px","size":1.5,"sizes":[]},"_padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"}],"isInner":false}],"isInner":false},{"id":"bef5022","elType":"section","settings":{"content_width":{"unit":"px","size":1400,"sizes":[]},"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"cab97d6","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"padding":{"unit":"px","top":"30","right":"90","bottom":"90","left":"90","isLinked":false},"padding_tablet":{"unit":"px","top":"30","right":"0","bottom":"0","left":"0","isLinked":false}},"elements":[{"id":"c66bcba","elType":"column","settings":{"_column_size":100,"_inline_size_mobile":100},"elements":[{"id":"37d6629","elType":"widget","settings":{"tabs":[{"item_label":"Hydratation","_id":"fe9026d","item_active":"yes","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"137","item_editor_content":"Tab Item Content"},{"item_label":"Anti-\u00e2ge et ridules","_id":"d26f92e","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"189","item_editor_content":"Tab Item Content"},{"item_label":"Anti-cernes et anti-poches","_id":"dddc255","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"192","item_editor_content":"Tab Item Content"},{"item_label":"Imperfection et uniformit\u00e9","_id":"f52227e","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"193","item_editor_content":"Tab Item Content"},{"item_label":"Brillance et pores","_id":"2c3ab20","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"194","item_editor_content":"Tab Item Content"},{"item_label":"Fermet\u00e9","_id":"83b2fab","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"195","item_editor_content":"Tab Item Content"},{"item_label":"Nutrition","_id":"733814f","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"196","item_editor_content":"Tab Item Content"},{"item_label":"Sensibilit\u00e9","_id":"f112f76","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"197","item_editor_content":"Tab Item Content"},{"item_label":"\u00c9clat et \u00e9nergie","_id":"fd0b584","item_active":"","item_use_image":"","item_icon":"fa fa-angle-right","item_image":{"url":"","id":""},"content_type":"template","item_template_id":"198","item_editor_content":"Tab Item Content"}],"auto_switch":"yes","tabs_position":"left","tabs_control_wrapper_width":{"unit":"px","size":300,"sizes":[]},"tabs_control_wrapper_width_mobile":{"unit":"px","size":150,"sizes":[]},"tabs_container_border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"tabs_content_wrapper_background_background":"classic","tabs_content_wrapper_background_color":"#f4f4f4","tabs_control_wrapper_padding":{"unit":"px","top":"20","right":"0","bottom":"20","left":"20","isLinked":false},"tabs_control_wrapper_margin":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"tabs_control_wrapper_border_border":"solid","tabs_control_wrapper_border_width":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"tabs_control_wrapper_border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"tabs_control_label_typography_typography":"custom","tabs_control_label_typography_font_size":{"unit":"px","size":16,"sizes":[]},"tabs_control_label_typography_font_weight":"300","tabs_control_icon_size":{"unit":"px","size":0,"sizes":[]},"tabs_control_icon_size_hover":{"unit":"px","size":0,"sizes":[]},"tabs_control_icon_size_active":{"unit":"px","size":12,"sizes":[]},"tabs_control_background_active_background":"classic","tabs_control_background_active_color":"#ffffff","tabs_content_padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"20","isLinked":false},"tabs_content_border_border":"solid","tabs_content_border_width":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"tabs_content_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"show_effect":"zoom-out","auto_switch_delay":5000,"tabs_control_icon_margin":{"unit":"px","top":"0","right":"15","bottom":"0","left":"0","isLinked":false},"tabs_control_label_typography_font_family":"Rubik","tabs_control_icon_color":"#ff6f61","tabs_control_icon_color_active":"#ff6f61","tabs_position_mobile":"left","tabs_control_wrapper_padding_tablet":{"unit":"px","top":"5","right":"0","bottom":"5","left":"5","isLinked":false},"tabs_control_wrapper_padding_mobile":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"jet-tabs"}],"isInner":false}],"isInner":false},{"id":"7c102a8","elType":"section","settings":{"content_width":{"unit":"px","size":1100,"sizes":[]},"gap":"no","structure":"20","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"7baacf6","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"margin":{"unit":"px","top":"30","right":0,"bottom":"0","left":0,"isLinked":false},"margin_tablet":{"unit":"px","top":"60","right":0,"bottom":"0","left":0,"isLinked":false},"padding_tablet":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false}},"elements":[{"id":"b4a7b89","elType":"column","settings":{"_column_size":50,"_inline_size":null,"padding":{"unit":"px","top":"0","right":"0","bottom":"030","left":"0","isLinked":false},"_inline_size_tablet":100},"elements":[{"id":"1784caf","elType":"widget","settings":{"title":"Trouvez <span class=\"typotitle\">votre<\/span> Matis","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":40,"sizes":[]},"typography_text_transform":"uppercase","typography_line_height":{"unit":"px","size":"","sizes":[]},"typography_letter_spacing":{"unit":"px","size":1.5,"sizes":[]},"_padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"tooltip_content":"I am a tooltip","_z_index":999999},"elements":[],"widgetType":"heading"}],"isInner":false},{"id":"50266aa","elType":"column","settings":{"_column_size":50,"_inline_size":null,"_inline_size_tablet":100},"elements":[],"isInner":false}],"isInner":false},{"id":"80974f3","elType":"section","settings":{"content_width":{"unit":"px","size":1100,"sizes":[]},"gap":"no","structure":"20","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"a437bfd","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"#ffeded","margin":{"unit":"px","top":"0","right":0,"bottom":"0","left":0,"isLinked":false},"margin_tablet":{"unit":"px","top":"-60","right":0,"bottom":"0","left":0,"isLinked":false}},"elements":[{"id":"d300ecc","elType":"column","settings":{"_column_size":50,"_inline_size":50.857,"padding":{"unit":"px","top":"60","right":"60","bottom":"60","left":"60","isLinked":true}},"elements":[{"id":"0098f5c","elType":"widget","settings":{"editor":"Dans nos Instituts Matis : \u00e0 chaque Femme, un Soin, un Rituel, une R\u00e9ponse. D\u00e9couvrez les Instituts Matis d\u00e9di\u00e9s \u00e0 la beaut\u00e9 et au bien-\u00eatre pr\u00e8s de chez vous.","align":"center","text_color":"#000000","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"0940c61","elType":"widget","settings":{"text":"Nos points de vente","align":"center","button_text_color":"#000000","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"400","typography_text_transform":"uppercase","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_color":"#000000","tooltip_content":"I am a tooltip","__dynamic__":{"link":"[elementor-tag id=\"9587f57\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22post%22%2C%22post_id%22%3A%2237%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":false},{"id":"caf0cbd","elType":"column","settings":{"_column_size":50,"_inline_size":49.143,"margin":{"unit":"px","top":"-90","right":"0","bottom":"0","left":"0","isLinked":false},"content_position":"center","margin_tablet":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true}},"elements":[{"id":"14974a6","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/05\/face-treatment-com.jpg","id":979},"image_size":"custom","image_custom_dimension":{"width":"1024","height":"666"},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"image"}],"isInner":false}],"isInner":false},{"id":"ba3cc31","elType":"section","settings":{"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"fabc5b3","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"margin":{"unit":"px","top":"90","right":0,"bottom":"0","left":0,"isLinked":false},"margin_tablet":{"unit":"px","top":"60","right":0,"bottom":"0","left":0,"isLinked":false}},"elements":[{"id":"dca0567","elType":"column","settings":{"_column_size":100},"elements":[{"id":"c464736","elType":"widget","settings":{"title":"d\u00e9couvrez <span class=\"typotitle\">nos<\/span> r\u00e9ponses du moment","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":40,"sizes":[]},"typography_text_transform":"uppercase","typography_line_height":{"unit":"px","size":"","sizes":[]},"typography_letter_spacing":{"unit":"px","size":1.5,"sizes":[]},"_padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"}],"isInner":false}],"isInner":false},{"id":"6913467","elType":"section","settings":{"content_width":{"unit":"px","size":1400,"sizes":[]},"structure":"30","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"9478e91","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false}},"elements":[{"id":"1e48ffc","elType":"column","settings":{"_column_size":33,"_inline_size":null,"motion_fx_translateX_speed":{"unit":"px","size":2,"sizes":[]},"_inline_size_tablet":50},"elements":[{"id":"dc456ae","elType":"section","settings":{"height_inner":"min-height","custom_height_inner":{"unit":"px","size":500,"sizes":[]},"overflow":"hidden","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"50ac6be","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"#ffe5e5","background_xpos":{"unit":"%","size":48,"sizes":[]},"background_ypos":{"unit":"%","size":125,"sizes":[]},"background_size":"contain","background_bg_width":{"unit":"%","size":125,"sizes":[]},"background_motion_fx_scale_effect":"yes","background_motion_fx_mouseTrack_effect":"yes","content_position":"middle","background_hover_background":"classic","background_hover_color":"#ffd3d3"},"elements":[{"id":"2235f15","elType":"column","settings":{"_column_size":100,"_inline_size":null,"background_position":"top center","background_size":"contain","background_background":"classic","space_between_widgets":10,"padding":{"unit":"px","top":"30","right":"30","bottom":"30","left":"30","isLinked":true}},"elements":[{"id":"96722fb","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/05\/reponse-delicate-mockup.png","id":1746},"image_size":"medium_large","width":{"unit":"%","size":60,"sizes":[]},"_padding":{"unit":"px","top":"30","right":"0","bottom":"0","left":"0","isLinked":false},"motion_fx_motion_fx_scrolling":"yes","motion_fx_scale_effect":"yes","motion_fx_scale_speed":{"unit":"px","size":2,"sizes":[]},"width_tablet":{"unit":"%","size":76,"sizes":[]},"motion_fx_translateY_effect":"yes","motion_fx_translateY_direction":"negative","motion_fx_translateY_affectedRange":{"unit":"%","size":"","sizes":{"start":25,"end":50}},"motion_fx_opacity_effect":"yes","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":0,"end":28}},"motion_fx_transform_origin_y":"bottom","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"image"},{"id":"4067edf","elType":"widget","settings":{"title":"R\u00e9ponse D\u00e9licate","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":20,"sizes":[]},"typography_font_weight":"400","typography_font_family":"Rubik","typography_text_transform":"uppercase","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"1ac968a","elType":"widget","settings":{"editor":"<p>Une r\u00e9ponse con\u00e7ue pour redonner confort et souplesse \u00e0 la peau.<\/p>","align":"center","text_color":"#000000","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"141ee6c","elType":"widget","settings":{"text":"En savoir plus","align":"center","button_text_color":"#000000","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"400","typography_text_transform":"uppercase","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_color":"#000000","tooltip_content":"I am a tooltip","link":{"url":"\/reponses\/reponse-delicate\/","is_external":"","nofollow":""}},"elements":[],"widgetType":"button"}],"isInner":true}],"isInner":true}],"isInner":false},{"id":"9e36020","elType":"column","settings":{"_column_size":33,"_inline_size":null,"_inline_size_tablet":50},"elements":[{"id":"d25e403","elType":"section","settings":{"height_inner":"min-height","custom_height_inner":{"unit":"px","size":240,"sizes":[]},"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"50ac6be","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"rgba(186,206,185,0.35)","content_position":"middle","structure":"20","background_hover_background":"classic","background_hover_color":"rgba(186,206,185,0.68)","reverse_order_tablet":"reverse-tablet","reverse_order_mobile":"reverse-mobile"},"elements":[{"id":"86703d7","elType":"column","settings":{"_column_size":50,"_inline_size":50,"space_between_widgets":10,"_inline_size_tablet":100,"padding_tablet":{"unit":"px","top":"0","right":"0","bottom":"50","left":"0","isLinked":false}},"elements":[{"id":"bacc947","elType":"widget","settings":{"title":"R\u00e9ponse Puret\u00e9","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":20,"sizes":[]},"typography_font_weight":"400","typography_font_family":"Rubik","typography_text_transform":"uppercase","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"506ac17","elType":"widget","settings":{"editor":"Une r\u00e9ponse parfaite pour redonner fra\u00eecheur et beaut\u00e9 aux peaux mixtes \u00e0 grasses.","align":"center","text_color":"#000000","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"47ad7cf","elType":"widget","settings":{"text":"En savoir plus","align":"center","button_text_color":"#000000","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"400","typography_text_transform":"uppercase","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_color":"#000000","tooltip_content":"I am a tooltip","link":{"url":"\/reponses\/reponse-purete\/","is_external":"","nofollow":""}},"elements":[],"widgetType":"button"}],"isInner":true},{"id":"e4bd0f3","elType":"column","settings":{"_column_size":50,"_inline_size":52.756,"background_background":"classic","background_image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/05\/reponse-purete-mockup-V1.png","id":1631},"background_position":"center center","background_repeat":"no-repeat","background_size":"initial","_inline_size_tablet":100,"margin_tablet":{"unit":"px","top":"40","right":"40","bottom":"40","left":"40","isLinked":true}},"elements":[{"id":"364728d","elType":"widget","settings":{"space_tablet":{"unit":"px","size":127,"sizes":[]},"tooltip_content":"I am a tooltip","space":{"unit":"px","size":131,"sizes":[]}},"elements":[],"widgetType":"spacer"}],"isInner":true}],"isInner":true},{"id":"ade74cb","elType":"section","settings":{"height_inner":"min-height","custom_height_inner":{"unit":"px","size":240,"sizes":[]},"content_position":"middle","structure":"20","jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"50ac6be","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"rgba(198,227,247,0.52)","background_position":"center center","background_size":"cover","background_hover_background":"classic","background_hover_color":"#c6e3f7","margin":{"unit":"px","top":"20","right":0,"bottom":"0","left":0,"isLinked":false},"margin_mobile":{"unit":"px","top":"","right":0,"bottom":"","left":0,"isLinked":true}},"elements":[{"id":"2a01594","elType":"column","settings":{"_column_size":50,"_inline_size":49.924,"content_position":"center","background_background":"classic","background_image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/04\/reponse-corps-mockup-V1-4.png","id":2379},"background_position":"center center","background_size":"initial","background_bg_width":{"unit":"%","size":120,"sizes":[]},"background_hover_color":"#23a455","background_repeat":"no-repeat","_inline_size_tablet":100},"elements":[{"id":"a81e8dc","elType":"widget","settings":{"space_tablet":{"unit":"px","size":308,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"spacer"}],"isInner":true},{"id":"cd60a87","elType":"column","settings":{"_column_size":50,"_inline_size":50,"space_between_widgets":10,"_inline_size_tablet":100},"elements":[{"id":"cece60a","elType":"widget","settings":{"title":"R\u00e9ponse Corps","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":20,"sizes":[]},"typography_font_weight":"400","typography_font_family":"Rubik","typography_text_transform":"uppercase","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"fad4dff","elType":"widget","settings":{"editor":"Une r\u00e9ponse douce et velout\u00e9e qui donne envie de prendre soin de son corps.","align":"center","text_color":"#000000","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"683e1cd","elType":"widget","settings":{"text":"En savoir plus","align":"center","button_text_color":"#000000","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"400","typography_text_transform":"uppercase","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_color":"#000000","_padding_tablet":{"unit":"px","top":"0","right":"0","bottom":"40","left":"0","isLinked":false},"tooltip_content":"I am a tooltip","link":{"url":"\/reponses\/reponse-corps\/","is_external":"","nofollow":""}},"elements":[],"widgetType":"button"}],"isInner":true}],"isInner":true}],"isInner":false},{"id":"7b20d41","elType":"column","settings":{"_column_size":33,"_inline_size":null,"_inline_size_tablet":50,"margin_tablet":{"unit":"px","top":"-337","right":"0","bottom":"0","left":"0","isLinked":false}},"elements":[{"id":"2279cec","elType":"section","settings":{"height_inner":"min-height","custom_height_inner":{"unit":"px","size":500,"sizes":[]},"jet_parallax_layout_list":[{"jet_parallax_layout_image":{"url":""},"_id":"50ac6be","jet_parallax_layout_image_tablet":{"url":"","id":""},"jet_parallax_layout_image_mobile":{"url":"","id":""},"jet_parallax_layout_speed":{"unit":"%","size":50,"sizes":[]},"jet_parallax_layout_type":"scroll","jet_parallax_layout_z_index":"","jet_parallax_layout_bg_x":50,"jet_parallax_layout_bg_y":50,"jet_parallax_layout_bg_size":"auto","jet_parallax_layout_animation_prop":"transform","jet_parallax_layout_on":["desktop","tablet"]}],"background_background":"classic","background_color":"rgba(61,35,122,0.16)","content_position":"middle","overflow":"hidden","background_hover_background":"classic","background_hover_color":"rgba(61,35,122,0.36)","margin_tablet":{"unit":"px","top":"-55","right":0,"bottom":"0","left":0,"isLinked":false},"margin_mobile":{"unit":"px","top":"335","right":0,"bottom":"0","left":0,"isLinked":false},"background_overlay_hover_background":"classic","css_filters_hover_css_filter":"custom"},"elements":[{"id":"cd58b38","elType":"column","settings":{"_column_size":100,"_inline_size":null,"background_position":"top center","background_size":"contain","background_background":"classic","space_between_widgets":10,"padding":{"unit":"px","top":"30","right":"30","bottom":"30","left":"30","isLinked":true},"background_overlay_background":"classic","background_overlay_hover_background":"classic"},"elements":[{"id":"8c1270f","elType":"widget","settings":{"image":{"url":"http:\/\/matis.devstack.fhfournier.activ.is\/wp-content\/uploads\/2019\/07\/reponse-jeunesse-mockup-V1.png","id":2423},"image_size":"medium_large","width":{"unit":"%","size":88,"sizes":[]},"_padding":{"unit":"px","top":"30","right":"0","bottom":"0","left":"0","isLinked":false},"motion_fx_motion_fx_scrolling":"yes","motion_fx_scale_effect":"yes","motion_fx_scale_speed":{"unit":"px","size":2,"sizes":[]},"width_tablet":{"unit":"%","size":80,"sizes":[]},"motion_fx_translateY_effect":"yes","motion_fx_translateY_direction":"negative","motion_fx_translateY_affectedRange":{"unit":"%","size":"","sizes":{"start":25,"end":50}},"motion_fx_opacity_effect":"yes","motion_fx_opacity_range":{"unit":"%","size":"","sizes":{"start":0,"end":28}},"motion_fx_transform_origin_y":"bottom","tooltip_content":"I am a tooltip","_background_background":"classic"},"elements":[],"widgetType":"image"},{"id":"269cb4c","elType":"widget","settings":{"title":"R\u00e9ponse Jeunesse","align":"center","typography_typography":"custom","typography_font_size":{"unit":"px","size":20,"sizes":[]},"typography_font_weight":"400","typography_font_family":"Rubik","typography_text_transform":"uppercase","tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"heading"},{"id":"faf66e2","elType":"widget","settings":{"editor":"<p>Une r\u00e9ponse adapt\u00e9e pour pr\u00e9server et entretenir le capital jeunesse de la peau.<\/p>","align":"center","text_color":"#000000","typography_typography":"custom","typography_font_size":{"unit":"px","size":14,"sizes":[]},"tooltip_content":"I am a tooltip"},"elements":[],"widgetType":"text-editor"},{"id":"2f5bd70","elType":"widget","settings":{"text":"En savoir plus","align":"center","button_text_color":"#000000","background_color":"rgba(0,0,0,0)","border_border":"solid","border_width":{"unit":"px","top":"1","right":"1","bottom":"1","left":"1","isLinked":true},"border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"text_padding":{"unit":"px","top":"8","right":"24","bottom":"8","left":"24","isLinked":false},"typography_font_size":{"unit":"px","size":13,"sizes":[]},"typography_letter_spacing":{"unit":"px","size":0.8,"sizes":[]},"typography_typography":"custom","typography_font_weight":"400","typography_text_transform":"uppercase","hover_color":"#ffffff","button_background_hover_color":"#000000","button_hover_border_color":"#000000","border_color":"#000000","tooltip_content":"I am a tooltip","link":{"url":"\/reponses\/reponse-homme\/","is_external":"","nofollow":""},"__dynamic__":{"link":"[elementor-tag id=\"f7d1d34\" name=\"internal-url\" settings=\"%7B%22type%22%3A%22taxonomy%22%2C%22taxonomy_id%22%3A%2286%22%7D\"]"}},"elements":[],"widgetType":"button"}],"isInner":true}],"isInner":true}],"isInner":false}],"isInner":false}]
So maybe look for wp-cli function
Normal replace : wp search-replace 'http://old.com' 'http://new.com' --all-tables
Elementor replace : wp elementor replace_urls 'http://old.com' 'http://new.com'
I raised an issue for the earlier project about the plugin not working with stream wrappers. I proposed a solution, but I'd like an opinion on how you'd want to see this fixed before I raise a PR.
Thanks
This CSS fixes the page display - the images had bad aspect ratio, were too big, and all the content was pushing the upload button too down, that I always had to scroll page to see the upload button!! Then I made this css fix for you! I hope you take it!
`.wrap.emr_upload_form #message { float: left; margin: 20px; }
.emr_upload_form h1 { line-height:1 !important; }
.emr_upload_form .replace_type.wrapper { flex:auto!important; width:80%!important}
.emr_upload_form .options.wrapper { flex:auto!important; width:20%!important}
.emr_upload_form .image_chooser.wrapper .emr_drop_area { float: left; }
.emr_upload_form .image_chooser.wrapper .image_placeholder.is_image { width: auto!important; height:400px!important; }
.emr_upload_form .image_chooser.wrapper .image_previews .image_placeholder.is_image img { width: auto!important; height:400px!important; }
.emr_upload_form .image_chooser.wrapper .image_previews { margin:0 !important; }
.emr_upload_form .image_chooser.wrapper .image_previews .image_placeholder { height: 400px !important;}
.upsell-wrapper { display:none}`
The plugin is not translatable from https://translate.wordpress.org/projects/wp-plugins/enable-media-replace
This is an easy fix, we need to configure the load_plugin_textdomain()
function.
Currently the plugin forces the usage of PO/MO files from the /languages/
folder, it's an old method and a bad practice because updating translation strings requires you to release a new version with updated PO/MO files.
The new method it is switching to translations using https://translate.wordpress.org, the plugins PO/MO files will be stored in /wp-content/languages/plugins/
and they will be updated whenever a new string is added . It is done using the WordPress auto-update system.
How is it done you ask? WordPress cron checks every 12 hours for new core version, new plugin/theme versions and new translations strings. If translations strings where updated WordPress will downloads them automatically.
I'm the Hebrew language General Translation Editor and I often translate plugin strings and see them in all my sites without updating the plugin itself.
Enable Media Replace should also use this feature. This way the community will translate the plugin for you.
When I go to edit a comment on one of my sites, it is throwing an exception due to a change in WordPress 6.1.
Function map_meta_cap was called <strong>incorrectly</strong>. When checking for the <code>edit_post</code> capability, you must always check it against a specific post. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.1.0.)
It appears to be due to:
if (current_user_can('edit_post', $post_id) === true) {
found on line 317
in classes/emr-plugin.php
where $post_id
is returning null
.
We had a number of files that were triggering a "Replacement file is not the same filetype. This might cause unexpected issues" error. After some deep head scratching I realized all the images causing the issue had a trailing space after the filename extension. It seems like it might be a good idea to trim() file extensions prior to checking them.
If nothing else it would be helpful to add some clarity to the error thrown. "File type does not meet security guidelines." doesn't help debug the issue.
Bringing this over from the plugin pager now that we have round the repo. We're not PHP pro's so may not be able to contribute much, but I wanted to note it here in the event that any contributor can work on it.
Original: https://wordpress.org/support/topic/replacing-media-paths-in-serialized-wpmeta-data/#post-12146774
We utilize WooCommerce and a WooCommerce plugin called Product Documents (https://woocommerce.com/products/product-documents/) to associate PDF media files with products in my online store.
Our client uses this plugin (Enable Media Replace) to swap out media files when a new version of a PDF is released. We want all of the product document links to be updated as well.
This works fine if we allow the plugin to rename the new file to match the old file name. However, if we request that the plugin change old links to match the new file name, it only works within the product content itself, not within the links for the product documents. In fact, it wipes out the product document link data COMPLETELY.
It took some time for us to figure out the culprit, but we finally did, and I’d like to see if you can help us resolve it.
The Product Documents plugin allows us to link any number of documents to a WooCommerce plugin, and it stores the information in a meta record along with the document such as the sample that follows this post. The plugin uses a WP standard serialization method to serialize the document data into something such as this (single document):
{s:5:”label”;s:19:”WAW-2322 Spec Sheet”;s:13:”file_location”;s:75:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2018/01/WAW-2322.pdf”;}
The “Enable Media Replace” plugin, when we ask it to replace one media file with another (with a different name), DOES change the file name (in the example above, from WAW-2322.pdf to ABCD.pdf, would be an example). However, it does not update the “s:75” section of the serialized object that represents the length of the string to follow. Since the length of the file changed (reduced by 4 characters), WP can no longer deserialize the string into an object and our data is list.
Our request is that “Enable Media Replace” take into account object serialization in WPMeta fields and not only update the file name, but also the string length in the serialized object. Other search/replace plugins (such as “Better Search and Replace” https://wordpress.org/plugins/search-and-replace/) properly care for this replacement, but the UI of “Enable Media Replace” is much better for our client to use (and MUCH less dangerous!)
We would appreciate your feedback and assistance to this issue.
Full Sample data below. The plugin will replace the file name, but does not change the string length of the file name accordingly.
a:1:{i:0;a:3:{s:4:”name”;s:0:””;s:7:”default”;b:1;s:9:”documents”;a:7:{i:0;a:2:{s:5:”label”;s:19:”WAW-2322 Spec Sheet”;s:13:”file_location”;s:75:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2018/01/WAW-2322.pdf”;}i:1;a:2:{s:5:”label”;s:32:”WORD formatted CSI specification”;s:13:”file_location”;s:99:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2017/09/224233_Willoughby_Washfountains.docx”;}i:2;a:2:{s:5:”label”;s:16:”AutoCAD DWG file”;s:13:”file_location”;s:75:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2017/09/Aquasurf.dwg”;}i:3;a:2:{s:5:”label”;s:16:”DXF drawing file”;s:13:”file_location”;s:83:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2018/01/DWG_DXF/Aquasurf.dxf”;}i:4;a:2:{s:5:”label”;s:37:”Install and maintenance documentation”;s:13:”file_location”;s:86:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2018/01/WAW-2322-Series-IOM.pdf”;}i:5;a:2:{s:5:”label”;s:22:”AquaSurf® color chart”;s:13:”file_location”;s:88:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2017/05/Aqua-Surf-Color-Table.pdf”;}i:6;a:2:{s:5:”label”;s:11:”REVIT files”;s:13:”file_location”;s:114:”https://dc2willoughbyc.wpengine.com/wp-content/uploads/2018/01/AquaWave-Lavatory-2_Station-Willoughby-WAW-2322.rfa”;}}}}
The redirect back to upload.php
in case of an error is incorrect:
enable-media-replace/upload.php
Lines 383 to 387 in 1e61c86
admin_url
already includes wp-admin
.
Should there be a check in place for the two calls to the thumbnailUpdater to make sure the file being managed is an actual image?
https://github.com/short-pixel-optimizer/enable-media-replace/blob/master/upload.php#L234
https://github.com/short-pixel-optimizer/enable-media-replace/blob/master/upload.php#L387
Here are the notice warnings I got when replacing a PDF file:
[29-Mar-2019 13:49:13 UTC] PHP Stack trace:
[29-Mar-2019 13:49:13 UTC] PHP 1. {main}() /var/www/public_html/wp/wp-login.php:0
[29-Mar-2019 13:54:13 UTC] PHP Notice: Undefined index: file in /var/www/public_html/wp-content/plugins/enable-media-replace/thumbnail_updater.php on line 44
[29-Mar-2019 13:54:13 UTC] PHP Stack trace:
[29-Mar-2019 13:54:13 UTC] PHP 1. {main}() /var/www/public_html/wp/wp-admin/upload.php:0
[29-Mar-2019 13:54:13 UTC] PHP 2. require_once() /var/www/public_html/wp/wp-admin/upload.php:10
[29-Mar-2019 13:54:13 UTC] PHP 3. do_action() /var/www/public_html/wp/wp-admin/admin.php:224
[29-Mar-2019 13:54:13 UTC] PHP 4. WP_Hook->do_action() /var/www/public_html/wp/wp-includes/plugin.php:453
[29-Mar-2019 13:54:13 UTC] PHP 5. WP_Hook->apply_filters() /var/www/public_html/wp/wp-includes/class-wp-hook.php:310
[29-Mar-2019 13:54:13 UTC] PHP 6. emr_options() /var/www/public_html/wp/wp-includes/class-wp-hook.php:286
[29-Mar-2019 13:54:13 UTC] PHP 7. require_once() /var/www/public_html/wp-content/plugins/enable-media-replace/enable-media-replace.php:113
[29-Mar-2019 13:54:13 UTC] PHP 8. ThumbnailUpdater->setNewMetadata() /var/www/public_html/wp-content/plugins/enable-media-replace/upload.php:387
[29-Mar-2019 13:54:13 UTC] PHP Notice: Undefined index: file in /var/www/public_html/wp-content/plugins/enable-media-replace/thumbnail_updater.php on line 45
[29-Mar-2019 13:54:13 UTC] PHP Stack trace:
[29-Mar-2019 13:54:13 UTC] PHP 1. {main}() /var/www/public_html/wp/wp-admin/upload.php:0
[29-Mar-2019 13:54:13 UTC] PHP 2. require_once() /var/www/public_html/wp/wp-admin/upload.php:10
[29-Mar-2019 13:54:13 UTC] PHP 3. do_action() /var/www/public_html/wp/wp-admin/admin.php:224
[29-Mar-2019 13:54:13 UTC] PHP 4. WP_Hook->do_action() /var/www/public_html/wp/wp-includes/plugin.php:453
[29-Mar-2019 13:54:13 UTC] PHP 5. WP_Hook->apply_filters() /var/www/public_html/wp/wp-includes/class-wp-hook.php:310
[29-Mar-2019 13:54:13 UTC] PHP 6. emr_options() /var/www/public_html/wp/wp-includes/class-wp-hook.php:286
[29-Mar-2019 13:54:13 UTC] PHP 7. require_once() /var/www/public_html/wp-content/plugins/enable-media-replace/enable-media-replace.php:113
[29-Mar-2019 13:54:13 UTC] PHP 8. ThumbnailUpdater->setNewMetadata() /var/www/public_html/wp-content/plugins/enable-media-replace/upload.php:387
Hello there!
I would restructure your plugin to be clean OOP + 1 main plugin file.
Would you review and merge it?
I don't know if this is a WordPress problem or if it's related only to the plugin. The fact is that, most of the times, the preview still shows the old version of the image, despite the replacement being successful.
My version of WordPress is 5.9.
The page where I usually get the problem is the "edit media" page, that is https://[website-domain]/wp-admin/post.php?post=[media-id]&action=edit]
.
Is there a reason why the search and replace is only being done on the post_content and not also on the meta_value? Using custom fields, the data is typically stored in the postmeta table and doesn't get updated.
There was another version of this plugin that isn't being updated anymore and seems to have had this functionality in it:
https://github.com/mansj/enable-media-replace/blob/master/upload.php#L307
The wp_handle_upload
hook here is not passing the $context
parameter and will cause an error when someone hooks into wp_handle_upload
and is expecting a 2nd parameter.
https://developer.wordpress.org/reference/hooks/wp_handle_upload/
If the action is defined as replace_and_search
, the action wp_handle_upload
does not fire, as it's commented out:
https://github.com/short-pixel-optimizer/enable-media-replace/blob/master/upload.php#L299-L302
Is this an oversight or is there a reason to disable it in this action?
Hello,
When you're on the full Media editor you find both a Replace Media and a Replace Image option;
The full Media editor is in this format of URL;
https://website.com/wp-admin/post.php?post=XXXX&action=edit
Only one of these is really needed.
Thanks
Using v4.0.3
When replacing an asset with a larger asset, the meta data is not updated within Wordpress. I have verified that the new asset is being uploaded and parsed, as the thumbnails are correctly regenerated, and by copying the File URL into a new tab, it does show the new asset at the larger dimensions, but the original image metadata is not updated.
This can also be seen when looking at the attachment metadata after uploading.
array (
'width' => 1280,
'height' => 700,
'file' => '2016/05/grey-felt-screen-with-circles-cut-out-suspended-in-lounge-area-scaled.jpg',
'filesize' => 727732,
'sizes' =>
array( ... ),
'image_meta' =>
array (
'aperture' => '0',
'credit' => '',
'camera' => '',
'caption' => '',
'created_timestamp' => '0',
'copyright' => '',
'focal_length' => '0',
'iso' => '0',
'shutter_speed' => '0',
'title' => '',
'orientation' => '0',
'keywords' =>
array (
),
),
'original_image' => 'grey-felt-screen-with-circles-cut-out-suspended-in-lounge-area.jpg',
)
It's still showing the original image data, not the new image data, which should be:
'width' => 3000,
'height' => 2086,
'file' => '2016/05/grey-felt-screen-with-circles-cut-out-suspended-in-lounge-area-scaled.jpg',
'filesize' => 2704020,
Hi is there a way to trigger image replacement directly from PHP function?
Eg.
function do_the_image_replacement() {
// prepare the replacement data here
// define image path, all config data
// trigger the replacement similar to:
$controller = \EnableMediaReplace\ViewController\UploadViewController::getInstance();
$controller->load();
// etc.
}
Hi,
I get this error when using with open_basedir restriction:
ErrorException thrown with message "is_dir(): open_basedir restriction in effect. File(/app/uploads/2021/11/Kennisagenda) is not within the allowed path(s): (/srv/www/:/tmp)"
Stacktrace:
#9 ErrorException in /srv/www/mydomain.com/current/web/app/plugins/enable-media-replace/classes/replacer.php:470
#8 is_dir in /srv/www/mydomain.com/current/web/app/plugins/enable-media-replace/classes/replacer.php:470
#7 EnableMediaReplace\Replacer:doSearchReplace in /srv/www/mydomain.com/current/web/app/plugins/enable-media-replace/classes/replacer.php:230
#6 EnableMediaReplace\Replacer:replaceWith in /srv/www/mydomain.com/current/web/app/plugins/enable-media-replace/views/upload.php:159
#5 require_once in /srv/www/mydomain.com/current/web/app/plugins/enable-media-replace/classes/emr-plugin.php:158
#4 EnableMediaReplace\EnableMediaReplacePlugin:route in /srv/www/mydomain.com/current/web/wp/wp-includes/class-wp-hook.php:303
#3 WP_Hook:apply_filters in /srv/www/mydomain.com/current/web/wp/wp-includes/class-wp-hook.php:327
#2 WP_Hook:do_action in /srv/www/mydomain.com/current/web/wp/wp-includes/plugin.php:470
#1 do_action in /srv/www/mydomain.com/current/web/wp/wp-admin/admin.php:259
#0 require_once in /srv/www/mydomain.com/current/web/wp/wp-admin/upload.php:10
I am running into a consistent problem where images can't be swapped when using a CDN (Cloudflare) and Shortpixel. Basically what I believe is happening is the new image is uploaded, and when ShortPixel attempts to optimize the newly uploaded image, it's grabbing the old version from the CDN, effectively making it so the image never swaps.
I wonder if ShortPixel could be configured to optimize the image using an ever-changing url parameter, essentially guaranteeing that ShortPixel won't grab the old version from the CDN?
it seems that some fields like name
are missing in the composer.json which leads to exceptions while trying to install this plugin via composer
Reading composer.json of https://github.com/short-pixel-optimizer/enable-media-replace.git (master)
Skipped branch master, Undefined index: name
Reading composer.json of https://github.com/short-pixel-optimizer/enable-media-replace.git (updates)
Skipped branch updates, Undefined index: name
[Composer\Repository\InvalidRepositoryException]
No valid composer.json was found in any branch or tag of https://github.com/short-pixel-optimizer/enable-media-replace.git, could not load a package from it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.