PHP error messages in gallery

5 years 10 months ago - 5 years 10 months ago #5260 by mmonclair
After installing and setting up a folder for my image gallery ("graphics_samples") in the images/stories folder, I added the syntax {gallery}graphics_samples{/gallery} to my article. Upon running the page, I get the following error for each image in the folder:
Warning: mkdir() [function.mkdir]: Permission denied in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 377

Warning: imagejpeg() [function.imagejpeg]: Unable to access D:\vhosts\monclair.net\httpdocs/images/stories/graphics_samples/wm/b2d124813d0d28e1d4f64be696ae1972.jpg in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 455

Warning: imagejpeg() [function.imagejpeg]: Invalid filename in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 455

Warning: mkdir() [function.mkdir]: Permission denied in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 497

Warning: getimagesize() [function.getimagesize]: Unable to access D:\vhosts\monclair.net\httpdocs/images/stories/graphics_samples/wm/b2d124813d0d28e1d4f64be696ae1972.jpg in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 543

Warning: getimagesize(D:\vhosts\monclair.net\httpdocs/images/stories/graphics_samples/wm/b2d124813d0d28e1d4f64be696ae1972.jpg) [function.getimagesize]: failed to open stream: Permission denied in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 543

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: Unable to access D:\vhosts\monclair.net\httpdocs/images/stories/graphics_samples/wm/b2d124813d0d28e1d4f64be696ae1972.jpg in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 649

Warning: imagecreatefromjpeg(D:\vhosts\monclair.net\httpdocs/images/stories/graphics_samples/wm/b2d124813d0d28e1d4f64be696ae1972.jpg) [function.imagecreatefromjpeg]: failed to open stream: Permission denied in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 649

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 680

Warning: imagejpeg() [function.imagejpeg]: Unable to access D:\vhosts\monclair.net\httpdocs/images/stories/graphics_samples/thumbs/b2d124813d0d28e1d4f64be696ae1972.jpg in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 685

Warning: imagejpeg() [function.imagejpeg]: Invalid filename in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 685

Warning: imagedestroy(): supplied argument is not a valid Image resource in D:\vhosts\monclair.net\httpdocs\plugins\content\sige.php on line 691

I noticed in the lines referencing the graphics_samples folder subfolders wm/ and thumbs/. Are these for the watermark and thumbnail? These folders don't appear in my directory. Adding them didn't seem to help.

I had figured there was an issue with the read/write permissions for the plugin and the image folder, but I checked my permissions and they are set to allow this. Is there anything I may have done wrong in the plugin settings?

5 years 10 months ago #5266 by Vitja
Hi mmonclair!

No, this is independent from the plugin settings. The script has no permissions to create new folders / files (e.g. "Warning: mkdir() [function.mkdir]: Permission denied" / "Warning: imagejpeg() [function.imagejpeg]: Unable to access").

Check your server configuration or contact your hosting company to solve this problem.

Regards

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
5 years 10 months ago #5290 by mmonclair
I was afraid that my problem was with my server. When I turned off the thumbnail and watermark settings, it works without errors. I'll follow up with my web host to find out why I cannot seem to assign permission to the script to create these folders.

Danke sehr!
5 years 10 months ago #5296 by Vitja
You are welcome. Have success with SIGE!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
Time to create page: 0.091 seconds