Hello, found small issue in your plugin code:
//include plugin for tinyMCE to show sirv gallery shortcode in visual mode
add_filter('mce_external_plugins', 'sirv_tinyMCE_plugin_shortcode_view');
function sirv_tinyMCE_plugin_shortcode_view(){
return array('sirvgallery' => SIRV_PLUGIN_SUBDIR_URL_PATH . 'js/wp-sirv-shortcode-view.js');
}
Your function replaces all existing TinyMCE plugins added before sirv plugin initialization. Instead, you should write it something like this:
//include plugin for tinyMCE to show sirv gallery shortcode in visual mode
add_filter('mce_external_plugins', 'sirv_tinyMCE_plugin_shortcode_view');
function sirv_tinyMCE_plugin_shortcode_view($plugins){
$plugins['sirvgallery'] = SIRV_PLUGIN_SUBDIR_URL_PATH . 'js/wp-sirv-shortcode-view.js';
return $plugins;
}
So after this change your plugin will not delete all TinyMCE plugins included before your plugin.
]]>We updated your plugin to the most up to date version (not this one put out 5 days ago but the one before) but all the imagery served by the plugin did not show up. After we reverted to the previous version of the plugin it was fine. I wanted to see what you changed in the most up to date plugin to see if it would have fixed the issue but I cannot find an active Change Log. Can you please let me know?
]]>Warning: Undefined array key “”
if( ($file_current_mtime && ($file_current_mtime == $stored_mtime_timestamp)) || $image[‘img_path’] == $paths[”] ){
The latest version has introduced this issue. Could you please investigate and address it as soon as possible?
]]>Hi there,
let me report my findings debugging our page after the variation switches stopped working. I downgraded all the plugins that could have impacted our variation switches, but i got no version to work.
I switched to storefront theme, which did not help either.
What was noticable, all pictures and 3D spinners loaded fine, when I configured the plugin to load all product data. But if only the current variation should be shown, clicking the variation switches did not change the pictures.
It turned out there is a little bug (sirv 6.8.3) in the wp-sirv-woo.js:
function filterByGroups(id = ”) {
if (!!!$instance) return;
if (!!id && inArray(id, existingIds)) {
id = id + ”;
$instance.switchGroup(id);
} else {
…
Move the bold marked part above the enclosing if statement. The type casting is simply after it should appear:
function filterByGroups(id = ”) {
if (!!!$instance) return;
id = id + ”;
if (!!id && inArray(id, existingIds)) {
$instance.switchGroup(id);
} else {
…
Hope this solves issues for some people…
]]>Hi,
Unable to find v6.8.0 on wpackagist, can you please update?
]]>when Sirv sync’s my website images, this happens all the time.
]]>On PHP 8.0 with Sirv plugin 6.6.1 we get:
Deprecated: Required parameter $notice_id follows optional parameter $notice_type in […]/plugins/sirv/sirv.php on line 718
]]>Does SIRV remove Image titles & captions?
also, I am facing Image Resizing not working on my website…
]]>Hello,
If i enable lazylaod, it works nice for all iamages except the features images of posts, in which add this “?q=1&w=10&colorize.color=efefef” to the end of url and they don’t diplay correctly .
This happens on thumbnails and on post view too.
Why this happens and how to fix?
]]>It’s not working very well and it’s slowing down my loading and showing me this error message.
Here is the Error message:
Failed to load plugin url: https://www.visibility.cz/wp-content/plugins/sirv/sirv/js/wp-sirv-shortcode-view.js
Hello,
Do you have to create a compote to be able to use this plugin?
Best Regards
]]>I��m using the WordPress plugin synced with my Sirv account. On the product page (Woocommerce), the Add Sirv Button and Add Online Video button does nothing when I click it. I��m not seeing any JS errors either. Any idea what��s going on here?
]]>Hello !
I just installed your plugin and having some trouble making it work .
I’m running a Nginx + Php-FM + Redis stack + Nginx FastCGI cache .
After installing Sirv I can see the images are synced to my folders but still, even after purging all caches, doesn’t seem like they are getting loaded and I still see the original urls .
This is a woocommerce store with 2 domains and languages but I don’t think that matters, it should at least still load the images for the main domain .
I am using CDN mode and serving Sirv js on all pages .
Any insights in what might be wrong ?
Thanks
]]>I’m using the WordPress plugin synced with my Sirv account. On the product page (Woocommerce), the Add Sirv Button and Add Online Video button does nothing when I click it. I’m not seeing any JS errors either. Any idea what’s going on here?
]]>Hello, I just gave you guys 5 star review. To make this plugin even more perfect would be if I can also use its lazy loading feature.
In order for that to happen it should not change the images in a slider for example. Just load them from your cdn as they are by default.
I’ve tried the pre-loaded profiles and my own “test” profile but nothing I do results in what I want.
]]>
Hi there,
I’m trying to sync my images but at the 50% mark I’m seeing an ‘Error during ajax request’ notice.
Any idea what I need to do to fix the issue?
Also, is there a way to change the colour (or completely hide) the dark grey box that is briefly displayed before images are loaded on the website?
Ideally I’d change it to white or clear.
Thank you for your help!
]]>Hi. I have an issue with a site using Sirv. The upgrade from v3.7.5 to v4.0 has generated a fatal error. WP id’s the error as in the Sirv plugin after update.
I have reverted back to a backup with v3.7.5, and tried to update again and get the same result – the fatal error and a dead site.
Error is below:
An error of type E_ERROR was caused in line 165 of the file /zzzzzz.co.uk/httpd.www/wp-content/plugins/sirv/sirv.php. Error message: Uncaught Error: Call to undefined function dbDelta() in /zzzzzz.co.uk/httpd.www/wp-content/plugins/sirv/sirv.php:165 Stack trace: #0 /zzzzzz.co.uk/httpd.www/wp-content/plugins/sirv/sirv.php(109): fix_db() #1 /zzzzzz.co.uk/httpd.www/wp-includes/class-wp-hook.php(288): sirv_upgrade_plugin('') #2 /zzzzzz.co.uk/httpd.www/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #3 /zzzzzz.co.uk/httpd.www/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /zzzzzz.co.uk/httpd.www/wp-settings.php(392): do_action('plugins_loaded') #5 /zzzzzz.co.uk/httpd.www/wp-config.php(103): require_once('/zzzz../...') #6 /zzzzzz.co.uk/httpd.www/wp-load.php(37): require_once('/zzzz../...') #7 /zzzzzz.co.uk/httpd.www/wp-login.php(12): require('/zzzz../...') #8 {main} thrown
WordPress version 5.3
Current theme: Neve (version 2.5.2 )
Current plugin: Sirv (version 4.0)
PHP version 7.3.12
Any help appreciated. -Colin
]]>Wouldn’t it be great when brotli is supported?
]]>While it’s a cool feature I’m not using, and don’t need it loading everything in relation to it.
How do I disable it?
Can you pls explain why I’m getting this score, why these particular images aren’t served by Sirv, when other are?
What can I do to improve this?
]]>We are seeing sirv-addmedia-block-editor-css and it’s dependency wp-edit-blocks getting enqueued on the frontend within the sirv_addmedia_block() function. This causes some clashes with frontend CSS styles. It would appear these particular stylesheets should not be enqueued on the frontend.
]]>Looks fine in Chrome, in Firefox Dev it’s stretched all the way down page.
Under 681 px it gets even higher.
]]>I’m having some trouble placing images into posts using the Sirv media block.
For example, to add a Sirv media block, I edit a post, click the add block button, then choose “Sirv Media”.
My goal is to add a responsive, lazy-loaded image that is narrower than the post width, is centered, and has a caption.
Currently, the image I add is stretched/distorted to the full post width, is left aligned and has no caption (the caption appears in the alt attribute, but is not visible on the page).
On the Sirv media | “Add new media” tab, there is a setting for responsive or static images. I would like the images to be responsive. I see that once the static option is selected, there is a Width option. Is there a way to set a width and max-width option for the responsive image setting? For example, the width of my posts is 1000px. For a particular image, I would like its width to be set to 600px and max-width should be 100%.
I have set the Align option to Center. I see a class of data-align attribute with a value of aligncenter is added, but there seems to be no effect. The image is left aligned.
Please let me know if there is a way that I can get the images placed as desired.
]]>I’m on the WordPress admin, Sirv settings screen, Synchronization tab.
My goal is to copy all of our existing blog images to the Sirv CDN.
When I click the “Sync Images” button, I get a red error message on the screen:
100 Some images couldn’t be synced. Please check if it exists and has read access.
I clicked the “Show List” button to view the list of images whose sync failed. The images are viewable and are supposed to have read access. Here is an example image:
https://madcapblogstore.blob.core.windows.net/blogcontainer/2019/03/enhanced-collaboration-contribution-review-cloud-based-editor-madcap-central_1200.png
Also, just wanted to mention that the “Test Connection” button on the WordPress admin Sirv Settings screen gives a message of: “Connection: OK”
Is there anything else I need to do to get the sync working?
]]>It doesn’t work with Divi. There’s no way to add a Sirv image from the visual builder. What a waste of time!
]]>Considering using this on an old site that already has 35,000 images.
I would be ok with them not being sync’d at first.
Is there a way to set it up to do that?
Also I am new to this type of caching, can you explain the image upload process?
Mainly, will I still use the WP media library when making a post to upload my images too?
Or will I have to upload to Sirv servers? If I do that, then I won’t have a copy in my WP install will I? I don’t quite understand how this works.
Thanks for any insight.
]]>Hello, I did deactivate Sir plugin but the plugin still showing in my ajax search plugin when I search on the website
moreover, It just shows clear photo, and there is no photo at all.
How Can I deactivate it completely and load my images from my WordPress media?
]]>Hello,
I run the latest version of WordPress/WooCommerce and have the latest Sirv plugin installed. I have inputted my account details correctly, but when I click on “Add Sirv Media” it displays the loading ring and then shows a blank page.
I tried with different browsers, but the problem persists – please advise.
Thank you.
]]>Hi there!
Your plugin sounds promising and it’s probably the best one available at this time to host images via CDN.
If you don’t mind, before we install and use it, we have several questions:
(1) Does your plugin conflict with Cloudflare?
(2) Does your plugin conflict with any other image optimization plugins? (e.g., reSmushit, EWWW, etc.)
(3) Once your plugin is installed, will we have full control of our images? (e.g., delete, upload, resize, etc.)
(4) If we decide that Sirv is not working for us, and we delete the plugin, will our images be restored to their original state?
Thank you! We look forward to your reply.
]]>When I enable Sirv, Autoptimize stops working. I will disable Sirv until this is resolved.
]]>