Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: failed to open stream: No such file o

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,
After installing Zenframe 2.4 and Ecospirit found this bug

Warning: imagecreatefromjpeg(\media\k2\items\cache\9caa2793658f3cc387f216157300b1ce_M.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in J:\home\cogr-local.com.ua\www\media\zengridframework\helpers\image.php on line 56

Both file and directory exist.

Maybe the issue is in media\zengridframework\helpers\image.php
line 31 looks like
$image = str_replace('\\'.'\\', '\\', str_replace('//', '/', str_replace('/', '\\', $image)));
In previous versions it was
$image = str_replace('\\'.'\\', '\\', str_replace('//', '/', $site_root.str_replace('/', '\\', $image)));
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
Last Edit: 11 years 5 months ago by jaillir.
The administrator has disabled public write access.
Hi,

Are you running the install locally in a windows environment?

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Yeah.
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
I think this was fixed in the latest release (2.4.2) which you can download here www.joomlabamboo.com/downloads/ecospirit-downloads

If that doesn't work can you please confirm your php version so I can try and replicate this.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
My version is <version>2.4.0</version>.

On the download page I only found the same version
JB_Ecospirit_J1.5_J2.5_v2.4.0
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
Last Edit: 11 years 5 months ago by jaillir.
The administrator has disabled public write access.
Yes, it's only currently ecospirit that runs on 2.4.2 so it's only on that page to avoid confusion with the other templates.

Let us know if it fixes the problem!
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
But I'm already with this template. I've compared both zip files.
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
Hi,

I'm not talking about the template, I'm talking about the framework plugin. The current download from that page is 2.4.2

plg_zengridframework2_Unified_v2.4.2.zip

You can check what you are running in the extensions manager under the manage tab.

If you are running 2.4.0 please upgrade to 2.4.2
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Hi,
I've checked, my version is 2.4.2

So what will we do? B)
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
Can you clear your cache and then inspect the missing image and paste the path to the image.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Hi,
I've cleared my cache but nothing have changed.
I still get this message:

Warning: imagecreatefromjpeg(\media\k2\items\cache\ada9a09acea936d776a6f55c82778c43_M.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in J:\home\cogr-local.com.ua\www\media\zengridframework\helpers\image.php on line 56

Both file and directory exist.
I wonder why you have changed line 31 in file media\zengridframework\helpers\image.php
as compared with previous version?
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
I've changed line 36 in file image.php
from

$image = str_replace('\\'.'\\', '\\', str_replace('//', '/', str_replace('/', '\\', $image)));

to

$image = str_replace('\\'.'\\', '\\', str_replace('//', '/', $site_root.str_replace('/', '\\', $image)));

and it works fine.
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
That might mean that the path to the image is now wrong and they are not being processed.

Is the path to the image now to the original rather than the cached version?

What version of php are you running?
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
The path to the image is to the cached now.

this is code generated from the page....

<div class="zenimage element2"><a target="_self" href="/index.php/ua/component/k2/item/4-1" data-behavior="content"><img data-original="/media/zengridframework/imagecache/2ff2ba0051687eef5ca0459cf942940c_M-6ed199feb88346c28acbc7ad7767da1e.jpg" src="/media/zengridframework/imagecache/2ff2ba0051687eef5ca0459cf942940c_M-6ed199feb88346c28acbc7ad7767da1e.jpg" alt="1" /></a></div>

My version of PHP/5.2.4
  • jaillir's Avatar
  • jaillir
  • 3 Month Basic
  • 8 posts
  • Karma: 0
The administrator has disabled public write access.
That sounds good, I'll try and check this locally!
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers