Error: Phoca Gallery cannot save files on your server

Phoca Gallery - image gallery extension
hs1
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Jun 2011, 12:37

Error: Phoca Gallery cannot save files on your server

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hmm, which file type is the image? Did you try to enable FTP layer?
If you find Phoca extensions useful, please support the project
hs1
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Jun 2011, 12:37

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

Post by hs1 »

It's jpg. Yes, I enabled it. The layer runs fine when I install other plugins.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hmmm, not sure what can be the problem there :-( :-(
If you find Phoca extensions useful, please support the project
hs1
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Jun 2011, 12:37

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Post Reply