I've this environment: Windows Web Server 2008 R2, IIS 7.5, PHP 5.3.10 NTS, Wordpress 3.3.1.
Our website is done on Wordpress. It use YAPB to create thumbnail pictures from larger size image. YAPB create the thumbnail in a cache folder, and the website use this image from the cache to display it in the browser.
The problem that we have is that it is able to CREATE the file in the cache, but it has 0 byte!
I thought it was a problem with lack of permission to write in that cache directory, but it has all the rights!
In IIS this web site is running on its own application pool. I've created a specific user for that pool, and gave it all the rights. Just in case it wouldn't be enough, i've given the rights to IUSR and IIS_IUSRS also.
PHP is properly installed, here's how i've setuped the PHP.ini
open_basedir=D:\OurWebSitesFolder
cgi.fix_pathinfo=1
cgi.force_redirect=0
fastcgi.impersonate=1
fastcgi.logging=0
extension_dir="C:\PHP5.3.10\ext"
[PHP_GD2]
extension=php_gd2.dll
If someone got any idea to solve this problem, i would appreciate. Thanks!
I thought it was a problem with lack of permission to write in that cache directory, but it has all the rights!
If it's the permission issue, the file in the cache folder should not be created. Anyway, I suggest you use the administrator account as the application pool identity, just use to test. If it still doesn't solve your problem. This may result from your source
code creating thumbnail pictures has some unware error. Please have a check carefully.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
i've already tried the user Administrator for the application pool, and also gave to group "EVERYONE" with full rights on that directory. It just make no sense. I think there's a bug in GD2, or maybe YAPB. But we have tested our web site on a Linux server with
Apache/PHP, and everything work just fine. If the problem was in YAPB, it would probably occur on Linux too. GD2 is a DLL, compiled especially for Windows... so the problem is probably there.
Now I want to suggest you to create the simplest web application which creates an image/thumbnail into the cache folder. If this web application can create image successfully, the problem just as you guessed is relative to GD2.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
ChristianDeb
2 Posts
YAPB unable to create a thumbnail properly on Wordpress, file size has 0 byte
Apr 10, 2012 03:43 PM|LINK
I've this environment: Windows Web Server 2008 R2, IIS 7.5, PHP 5.3.10 NTS, Wordpress 3.3.1.
Our website is done on Wordpress. It use YAPB to create thumbnail pictures from larger size image. YAPB create the thumbnail in a cache folder, and the website use this image from the cache to display it in the browser.
The problem that we have is that it is able to CREATE the file in the cache, but it has 0 byte!
I thought it was a problem with lack of permission to write in that cache directory, but it has all the rights!
In IIS this web site is running on its own application pool. I've created a specific user for that pool, and gave it all the rights. Just in case it wouldn't be enough, i've given the rights to IUSR and IIS_IUSRS also.
PHP is properly installed, here's how i've setuped the PHP.ini
If someone got any idea to solve this problem, i would appreciate. Thanks!
Mamba Dai - ...
651 Posts
Microsoft
Re: YAPB unable to create a thumbnail properly on Wordpress, file size has 0 byte
Apr 12, 2012 11:21 AM|LINK
Hi,
If it's the permission issue, the file in the cache folder should not be created. Anyway, I suggest you use the administrator account as the application pool identity, just use to test. If it still doesn't solve your problem. This may result from your source code creating thumbnail pictures has some unware error. Please have a check carefully.
Feedback to us
Develop and promote your apps in Windows Store
ChristianDeb
2 Posts
Re: YAPB unable to create a thumbnail properly on Wordpress, file size has 0 byte
Apr 12, 2012 12:40 PM|LINK
Mamba Dai - ...
651 Posts
Microsoft
Re: YAPB unable to create a thumbnail properly on Wordpress, file size has 0 byte
Apr 13, 2012 05:30 AM|LINK
Now I want to suggest you to create the simplest web application which creates an image/thumbnail into the cache folder. If this web application can create image successfully, the problem just as you guessed is relative to GD2.
Feedback to us
Develop and promote your apps in Windows Store
luftikus143
1 Post
Re: YAPB unable to create a thumbnail properly on Wordpress, file size has 0 byte
Nov 22, 2012 02:05 PM|LINK
Hi there,
I have the same issue. What did you do to solve it?
I just checked, installed a fresh wordpress and then the yapb plugin - same thing. The cache file is only 0 bytes.
I would greatly appreciate your help!