Adding a watermark

bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Tue, 2010-08-31 11:53

Hi everybody,
I'm new user of GALLERY and really enjoy it.
I've tried to add a watermark to my albums but I always get an error message.
Can somebody tell me how to do that ?

thank's for help
Fred

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-31 12:07
 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Tue, 2010-08-31 12:16

Gallery version = 2.2.2 noyau 1.2.0.4
PHP version = 5.1.6 cgi-fcgi
Serveur Web = Apache/2.2.3 (Red Hat)
Base de données = mysql 5.0.77, lock.system=flock
Boîtes à outils = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Accélération = none, none
Système d'exploitation = Linux dns4.french-connexion.com 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64
Thème par défaut = carbon
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)
Lignes dans la table GalleryAccessMap = 32
Lignes dans la table GalleryAccessSubscriberMap = 47
Lignes dans la table GalleryUser = 2
Lignes dans la table GalleryItem = 38
Lignes dans la table GalleryAlbumItem = 8
Lignes dans la table GalleryCacheMap = 0

here is the error message I get when trying to upload watermark

Platform Error
An error has occurred while interacting with the platform.

The exact nature of the platform error is unknown. A common cause are insufficient file system permissions. This can happen if you or your webhost changed something in the file system, e.g. by restoring data from a backup.
Back to the Gallery

Error Detail -
Error (ERROR_PLATFORM_FAILURE)
in modules/watermark/classes/WatermarkImage.class at line 288 (GalleryCoreApi::error)
in modules/watermark/classes/WatermarkHelper.class at line 451 (WatermarkImage::create)
in modules/watermark/WatermarkSiteAdmin.inc at line 42 (WatermarkHelper::createWatermarkImage)
in main.php at line 231 (WatermarkSiteAdminController::handleRequest)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.2
PHP version 5.1.6 cgi-fcgi
Webserver Apache/2.2.3 (Red Hat)
Database mysql 5.0.77
Toolkits Thumbnail, Gd
Operating system Linux dns4.french-connexion.com 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42 EDT 2010 x86_64
Browser Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)

thank's for help.
fred

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-31 12:51
Quote:
Boîtes à outils = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd

Do you have access to a better graphics toolkit than GD?
Have you tried ImageMagick or netpbm?

Quote:
Gallery version = 2.2.2

That is very old, there have been many security and bug fixes since 2.2
Current version is 2.3.1
FAQ: How can I get the latest version of Gallery2?
FAQ: How to upgrade Gallery2?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Tue, 2010-08-31 16:15

Thank's for reply.
No, I can't change the graphic tool as my web hoster doesn't have Imagemagick.
He also only provide Gallery 2.2 and I didn't succeed to upgrade to 2.3.1 or 3... :(
following error message :
Warning: Unknown: open(/var/lib/php/session/sess_e1324993a976603f6b95c5028ac738d9, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-31 17:05
Quote:
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

Ask your host about this error.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Tue, 2010-08-31 21:01

Ok but I don't understand where is this /var/lib/php directory ??
can't find it .
may be I should put all permissions to 777 ?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-31 21:09

/var/lib/php is out of your reach(unless you have root privileges on your server.
Ask your host if session.save_path is correct (/var/lib/php/session)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Wed, 2010-09-01 20:52

Well; my Host has corrected the problem but I still have problem with upgrade as I allways have the 2.2 installed after upgrade ??

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-09-01 21:14
 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Wed, 2010-09-01 21:41

Thank's,
I read and read again this FAQ's and I'm using pre installer but it doesn't download any file at all...
I'm trying now to download the tz file manually, to put it in the directory and to try again the pre installer as I can"t unzip directly in my web server.

I hope I'll keep my existing database...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-09-01 21:50
Quote:
I hope I'll keep my existing database...

Of course, this is a simple upgrade.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Wed, 2010-09-01 21:59

well,
pre installer is for 2.2 version and doesn"t extract 2.3.1...
How could I extrac tar.gz archive by myself on my server ?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-09-01 22:11

extract on your local machine, and ftp the files to the server, overwriting the current 2.2 files.
7zip is a free zip tool that can handle just about any format.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Thu, 2010-09-02 00:35

Super !

Success in upgrading, but can't run cleanup ....

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-09-02 01:30
Quote:
but can't run cleanup

Are you referring to old outdated files? No worries, they are harmless.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Fri, 2010-09-03 06:30

I suppose they are harmless but they keep space on the server.
is it still possible to delete them ?
Thank's for help and I really enjoy now the 2.3.1 version, although watermarks still doesn't work ;)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-09-03 11:31

Still getting Error (ERROR_PLATFORM_FAILURE)?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Fri, 2010-09-03 12:34

Yes, exactly the same message.

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Fri, 2010-09-03 12:36

Yes, exactly the same message.
Do you think it's better to use version 3 ?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-09-03 13:30

Well, its either a directory permissions issue where the watermark module is trying to write to g2data/plugins_data/modules/watermark and cannot
Or
Its your GD image toolkit failing.

Quote:
Do you think it's better to use version 3 ?

Yes, eventually. It's still in development and I'm unsure of the watermark capabilities of G3
Also you will still be stuck with GD as your image processing toolkit.

I would check your storage directory permissions first.
FAQ: How can I fix the problem with the Storage Directory Permissions reported by the Upgrade Wizard?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Fri, 2010-09-03 13:40

May be the problem is here : there is NO Watermark directory in g2data/plugins_data/modules ??

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-09-03 13:45
 
bulbissime

Joined: 2010-08-31
Posts: 13
Posted: Fri, 2010-09-03 14:51

well,

now it work's !
I can add a watermark but... not apply it !! :(
I can"t choose the place where to put it on the step 2 but the watermak if registred.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-09-03 15:03

I'm heading out the door for a long drive and holiday weekend.

check the module page http://codex.gallery2.org/Gallery2:Modules:watermark
and I'll point Dave your way.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2010-09-03 19:49

bulbissime,
please send your login info with URL so I can see the behaivior. (write to author)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team