I'm using from several months wt-resize, a script to resize images on the fly. It works very well until now...
I've changed hosting provider. I'm using now Centos 6.3 (no control panel) + Litespeed (php 5.4.11) and i have following errors:
Warning: getimagesize() expects parameter 1 to be string, object given in /home/*****/***/
Warning: basename() expects parameter 1 to be string, object given in /home/
According source page where i see this error it seems that this script isn't able anymore to return the name of the file.
Do you have any workaround ?
I'm asking about this script because Wordpress doesn't resize images on the fly. If you add to functions.php a new size, for example
add_image_size( 'archivio', 250, 140, true );
you resize every single image you upload online to the size 250x140 and i'm interested only to resize what i want
Here's the error i have on the source page where i'm using this script
<b>Warning</b>: getimagesize() expects parameter 1 to be string, object given in <b>/home/***/public_html/wp-content/themes/***-v16/functions.php</b> on line <b>139</b><br />
<br />
<b>Warning</b>: basename() expects parameter 1 to be string, object given in
<b>/home/***/public_html/wp-content/themes/***-v16/functions.php</b> on line <b>140</b>
<br />
<img src="http://www.***.com/images/2013/02/" width="" height="" />
</a>
For reference: https://gist.github.com/seedprod/1367237/raw/acf4a2987ff07da6135ac2a91df5532b855ccb46/vt_resize.php
More details:
Previous server configuration was Centos 6.3 + Nginx + PHP 5.3.2.1. I can confirm this script was working well :(