Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Error I'm getting: Warning: imagejpeg() [function.imagejpeg]: Unable to open

  • hexydes
  • hexydes's Avatar Topic Author
  • Offline
  • New Member
More
16 years 9 months ago #12169 by hexydes
Hey support team,

I'm getting this error message:

Warning: imagejpeg() [function.imagejpeg]: Unable to open '..path/temp/97b81bc8ad8f2ba6bf0662da7ac784a2.jpg' for writing: Permission denied in /..path/sigpro_engine.php on line 40

Now, before you say it is a permission error or anything, keep this in mind: SIG is working PERFECTLY on this server. All other images work just fine, with no errors. What happened was, in the path for SIG to use for the story, I used a "\" rather than a "/". I know, stupid, but it happened (sorry, it was early in the morning). Anyway, when I published the story, the images weren't there (obviously), and I had the above warning. I fixed the path in the story, but still the error and no images. I deleted the story, started a new one (with fixed path), and re-published, but still the same problem.

I then went in and actually CREATED the images manually in my temp folder. Now, the images show up, but I still get the annoying error messages at the top of the page. Can you guys help me out, let me know how to get rid of those messages!

Thanks!

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 9 months ago #12170 by JoomlaWorks Support Team
Hi my friend!

Hmmm... Can you give me a direct link to the gallery if it's possible?

Try to use some other name for the temporary folder ( temp2 ). I know it sound stupid, but could be works...

Your server is on Linux or on ISS?

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #12171 by Tomelloso
Hi, my server is Linux and have the same error. Tried change permissions, change name to temporary folder,... but with no luck.
My link: www.inmogroup-ruidera.com/galeria-fotografica/lagunas-de-ruidera/lagunas-2007050718/

Could you help me?
Thanks.

Diseño web Ciudad Real

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 8 months ago #12172 by JoomlaWorks Support Team
Hi my friend!

Strange this server message?
It inform us that it couldn't be able to open to write the thumbs
but as I can see the thumbs are created...!!!

well, at the sigpro_engine.php file lets mute or remove some code
if ($this->save_to_file) {
   touch($filename);
   $res = ImageJPEG($im,$filename,$this->quality);
}
From this code just mute the ImageJPEG function
$res = @ImageJPEG($im,$filename,$this->quality);
or try to remove the "touch($filename);" line

Tell me if this is ok for you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #12173 by Tomelloso
Thanks man,
I don't have the line:
touch($filename);
in my sigpro_engine.php file.

I have this:
      case 2:
        if ($this->save_to_file) {
          $res = ImageJPEG($im,$filename,$this->quality);
        }
        else {
          header("Content-type: image/jpeg");
          $res = ImageJPEG($im,'',$this->quality);
        }
        break;

I tried to remove:
if ($this->save_to_file) {
          $res = ImageJPEG($im,$filename,$this->quality);
        }

But error persist.
Some more help please.

Thanks.
Regards.

Diseño web Ciudad Real

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 8 months ago #12174 by JoomlaWorks Support Team
Hi my friend!

Try to mute the error with that
$res = @ImageJPEG($im,$filename,$this->quality);

and clean the cache to check out it!

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #12175 by Tomelloso
Ok man, now work fine.

Thanks a lot.
Regards.

Diseño web Ciudad Real

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum