Frederic Pilon
Forum Replies Created
-
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Shortcode just showing upFixed it by creating my own custom module where it used do_shortcode instead of using the WP shortcode module.
Forum: Plugins
In reply to: [Performance Lab] Possibility to convert to webp images that already exist?Yeah, I was trying out the plugin as an alternative to Smushit that does WebP generation but needs a pretty precise server setup. (And doesnt do the primary color thing, that I find interesting too)
Might I ask: Is that functionality, to repass all existing images to add the Webp version when it doesnt exist, or add the primary color, etc. Is that a functionality that is in the pipeline for later?
In fact, this is fixed in the current version of the code canyon version of the plugin.
Just hit the same problem.
In a clean install of WP (idk if it changed recently) its IRI.php (All caps.)
Same with another file called. Its IDNAEncoder.
The plugin calls the wrong file and crashes if above PHP 5.9.
My quick dirty fix was to comment the first half of the IF on /wp-content/plugins/real-media-library/vendor/devowl-wp/utils/src/Assets.php Line 898
public function getAsciiUrl($url) { global $wp_version; /*if (\version_compare($wp_version, '5.9.0', '>=') || \strpos($wp_version, '5.9-alpha') === 0) { if (!\class_exists(\WpOrg\Requests\Iri::class)) { require_once ABSPATH . WPINC . '/Requests/Iri.php'; } if (!\class_exists(\WpOrg\Requests\IdnaEncoder::class)) { require_once ABSPATH . WPINC . '/Requests/IdnaEncoder.php'; } $iri = new \WpOrg\Requests\Iri($url); $iri->host = \WpOrg\Requests\IdnaEncoder::encode($iri->host); return $iri->uri; } else {*/ if (!\class_exists('Requests_IRI')) { require_once ABSPATH . WPINC . '/Requests/IRI.php'; } if (!\class_exists('Requests_IDNAEncoder')) { require_once ABSPATH . WPINC . '/Requests/IDNAEncoder.php'; } $iri = new \Requests_IRI($url); $iri->host = \Requests_IDNAEncoder::encode($iri->host); return $iri->uri; //} }That is pretty much the problem @mikes41720. I follow exactly the code that is on that page and it just… doesnt work. (The Change a graph pieces’ data piece)
Git doesnt want to help. Here neither, and I’m not gonna jump into the fun of analysing the whole plugin code to figure out how to make it work.
Its annoying as hell.
…but the github repo support sent me here.
So, where should I ask things about code?
Forum: Plugins
In reply to: [LiteSpeed Cache] Function to get the Webp related to an imageYeah right now thats what I do.
I fumble around with a file exist, try to find if the image does exist.
If it does, I save that responding url in a transient (no expiration). If I can’t find it, I save false in the transient for 24h (in case the LSCWP is still in the process of creating the webps.)
It’s just a very ‘duct tape’ solution to my liking. (A duct tape solution is a solution that works, but is definitely not a solid fix that should stay as is.)
Forum: Plugins
In reply to: [LiteSpeed Cache] Function to get the Webp related to an imageHunh ok.
IDK what I did wrong because Litespeed doesn’t seem to pickup my images and replace them to a webp. Thats why I’m trying to put in a <picture> tag that contains both the Webp and JPG/PNG.
If you are a member of the Litespeed team, could I request such a function be added?
Forum: Plugins
In reply to: [LiteSpeed Cache] How to ‘gather image data’ again?Go into the next tab and put on the ‘auto trigger gather images’ or something like that.
It will automatically go through all your images (by basically clicking the button when its ready for more) and you can go do something else meanwhile.
Forum: Plugins
In reply to: [Uji Countdown] New Style doen´t work – old one fine!Just encountered the same bug. I have this as an error in Firebug:
TypeError: r.html(…).toggleClass is not a function