Page 1 of 1

Error: Phoca Gallery cannot save files on your server

Posted: 05 Jun 2011, 12:46
by hs1
Hello guys,

when I'm trying to create thumbnails, I'will get the following error:

Phoca Gallery cannot save files on your server

* Image (wrong type or broken image) - remove the image or upload new image via e.g. FTP
* GD Library (not correctly working GD library, not working GD functions) - install or reinstall GD library
* Permissions (no rights to write files or folders) - change the permissions of image/phocagallery folders on your server
,


I have uploaded the pictures via ftp. All folders (incl. phocagallery and thumbs) have the permission 777 (just for testing). GD Library is installed and working fine. Here is the GD part of the phpinfo()-output:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
GD is working correct. I have tested that with the following code:

Code: Select all

<?php
  header('Content-type: image/png');
  $image = @imagecreate(100, 50)
     or die('Kann keinen neuen GD-Bild-Stream erzeugen');
  $background_color = imagecolorallocate($image, 100, 100, 100);
  $text_color = imagecolorallocate($image, 255, 255, 255);
  imagestring($image, 1, 5, 5, "we:DevEdge", $text_color);
  imagepng($image);
?>
I have tried many different images and different configurations. Enabling JFile Thumbnail Creation doesn't have any effect.

What can be the reason that thumbnail creating don't works and gives me that error?

Re: Error: Phoca Gallery cannot save files on your server

Posted: 07 Jun 2011, 00:22
by Jan
Hmm, which file type is the image? Did you try to enable FTP layer?

Re: Error: Phoca Gallery cannot save files on your server

Posted: 08 Jun 2011, 20:28
by hs1
It's jpg. Yes, I enabled it. The layer runs fine when I install other plugins.

Re: Error: Phoca Gallery cannot save files on your server

Posted: 08 Jun 2011, 20:36
by Jan
Hmmm, not sure what can be the problem there :-( :-(

Re: Error: Phoca Gallery cannot save files on your server

Posted: 08 Jun 2011, 21:23
by hs1
How can I find out why it don't runs? I enabled the debug mode but there is no debug output in the thumbnail-creation window.

Edit: I tried joomgallery and the upload via ftp layer works fine. But I don't like joomgallery :D

Re: Error: Phoca Gallery cannot save files on your server

Posted: 09 Jun 2011, 16:28
by Jan
Maybe, there can be displaying of some php error which can help.

- So first, debug mode and php error displaying should be enabled, to be sure, there is no problem.
- the gd should be completely checked - see the info in administration of Phoca Gallery - if all gree, it should be OK
- then the permissions and ownership should be checked:
- enable/disable ftp layer in global configuration of joomla
- enable/disable JFile parameter in Phoca Gallery configuration (it writes thumbnails on server as script or as ftp - there is no other way, so some of it must work :-(

- if all checked, maybe reinstalling it all with default settings can be solution :-( :-(

Jan