Hi Buddy, Any news on this area?
Thanks.
Diego
Hi and thanks for your inquiry! The latest version of tcS3, version 1.7, has this feature addition. Enjoy!
Hi and thanks for your inquiry! The latest version of tcS3, version 1.7, has this feature addition. Enjoy!
Hi Again TC, I’ve updated the wordpress to 4.4 and the plugin to 1.7, and I’m getting this errors from the plugin:
Notice: Undefined index: src in /var/www/wordpress/mysite/wp-content/plugins/tcs3/tcS3.php on line 130
Notice: Undefined offset: 1 in /var/www/wordpress/mysite/wp-content/plugins/tcs3/tcS3.php on line 565
Warning: Missing argument 2 for tcS3::calculate_image_srcset() in /var/www/wordpress/mysite/wp-content/plugins/tcs3/tcS3.php on line 134
Warning: Missing argument 3 for tcS3::calculate_image_srcset() in /var/www/wordpress/mysite/wp-content/plugins/tcs3/tcS3.php on line 134
Warning: Missing argument 4 for tcS3::calculate_image_srcset() in /var/www/wordpress/mysite/wp-content/plugins/tcs3/tcS3.php on line 134
Warning: Missing argument 5 for tcS3::calculate_image_srcset() in /var/www/wordpress/mysite/wp-content/plugins/tcs3/tcS3.php on line 134
Do you have the same issue? Do you know what can be?
Thanks in advance.
Diego
Just fixed it manually. In line 130:
changed
$image["src"] = $this->build_attachment_url($image["src"]);
to
$image["src"] = $this->build_attachment_url($image["0"]);
(the array received in the function doesn’t contain keys)
for line 134:
function calculate_image_srcset had too many parameters (5 in total).
public function calculate_image_srcset($sources, $size_array, $image_src, $image_meta, $attachment_id){
I left the one that is actually in use, like this:
public function calculate_image_srcset($sources){
hope this helps!
Thanks cbonastre!
TC, do you think is possible to add this to the plugin to avoid warnings?
Thanks.
Diego
Thanks cbonastre for jumping in! I’m sorry I missed these things — I have sent version 1.7.1 to the repo. Hopefully you all will be prompted for the update shortly!