ImageMagick Installation Problems

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

ImageMagick Installation Problems

Post by stuup »

Hi forum, I'm having problems getting the ImageMagick stuff to work, when I click on create thumbnails I get the following error -
no file for thumbnail creation exists
Can anyone help me, I'm using ImageMagick in Lasso and so therefore have the directory in a different place to the normal Unix installation, command line works fine. Below is what is in my conf.inc.php
$phpwcms["imagick"] = 1; //0 = GD, 1 = ImageMagick convert
$phpwcms["imagick_path"] = "/Applications/Lasso Professional 7/ImageMagick-5.5.7/bin/"; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 0; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 3; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "iso-8859-1"; //default charset 'iso-8859-1'
Permissions are set to 777. I've be racking my brains with this for about 3 months, anyone have any ideas?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: ImageMagick Installation Problems

Post by DeXXus »

stuup wrote:no file for thumbnail creation exists
This message has to do with not finding the "source image" ~not~ with Imagemagick path. Which thumbnail method causes this:

File->FTP takeover->create thumbnails too
-or-
File->Edit->create thumbnail

Or ~both~ ??
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

Thank you DeXXus for your reply.

File->FTP takeover->Create thumbnails gives me

Code: Select all

Warning: getimagesize(): Read error! in /sites/g-j/healthactionzone/include/inc_act/act_ftptakeover.php on line 268
\ (Error while writing file to storage (1).)

error while file take over
File->Edit->Create thumbnail gives me

Code: Select all

no thumbnail exists
Also, selecting 'active'
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

DeXXus your reply got me thinking. I created a new directory from scratch - I'm sure I did this a million times before :-(

Anyway, creating a new directory, resolved any errors I was getting while trying to create thumbnails, but now when I ask it to create thumbnails it sends the webpage into a loop and keeps creating images of the same size as the original until I leave that page, any ideas what is happening?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

I wouldn't hazard a guess, but you ~should~ check some important basic things to help isolate:

-Check your "php.ini" file for session.save_pathto make sure it refers to an valid folder path. Fore example:

Code: Select all

session.save_path=/tmp
-Also, turning notices back ~on~ in "php.ini" may -hint- at what's happening (even though Oliver is slowly enriching the code, there are still some typical harmless notices displayed that you can ignore):

Code: Select all

error_reporting=E_ALL
-Try thumbnail creation from both possible methods:
1. during FTP takeover->Create thumbnail
2. During File Edit->Create thumbnail
-Try "different" graphics formats
For example, I think I read somewhere that PHP 4.3.7 might have a bug with imageCreateFromGif
We're interested to know what you find out :idea:
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

DeXXus thank you again for your reply.

My session.save_path was OK and I turned on better error_reporting. There wasn't any more errors to give any clues as to what the problem is :-(

The file I'm trying to create thumbnails from is a JPG. Also, something else, when I submit changes to any thing in the Admin section (e.g. 'backend default text')I get a blank page as if a redirect isn't happening?

Any more help would be appreciated.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

.JPG files would not be a problem. If you have "Imagemagick_5.5.7.bin" I would assume you are installed on a local Windows machine, so "file permissions" shouldn't be an issue.

Possibly it's "path-related" , how about you post ~that~ part of "config.inc.php".
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

It's on a Mac, where would I find this file?
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

seems that you have to setup the document_root var first. What happens if you open http://www.myinstall.com/document_root.php? And try if image creation using GD functionality is working.

It has nothing to do with session_path or something like this.

If you think this is an ImageMagick path problem - try to open the terminal and put in this:

Code: Select all

convert -version
If it is working - do not fill in any path in conf.inc.php for ImageMagick location on your server.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

Hi Oliver, I've deleted the path to ImageMagick and it works the same. Looking at document_root.php I get

Code: Select all

1) your default $_SERVER['DOCUMENT_ROOT']: /sites/g-j/healthactionzone
2) real DOCUMENT_ROOT based on this file : /sites/g-j/healthactionzone
I believe ImageMagick is working it just ins't working properly?
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

What happens if you switch to GD in conf.inc.php?

What result do you get when inserting "convert -version" in the shell?

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

Hi Oliver I get an error using GD1. convert -version gives me 5.5.7
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

OK - then you know that something is wrong with your path settings and/or permissions. And you do not need to insert the ImageMagick path in conf.inc.php.

Maybe post your conf.inc.php here - without login/passwords.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
stuup
Posts: 19
Joined: Tue 9. Mar 2004, 11:55
Contact:

Post by stuup »

Thank you for your attention Oliver

Code: Select all

<?

// database values
$phpwcms["db_host"]           = "";
$phpwcms["db_user"]           = "";
$phpwcms["db_pass"]           = "";
$phpwcms["db_table"]          = "";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://dev.healthactionzone.co.uk/";
$phpwcms["admin_email"]       = "";

// paths
$phpwcms["root"]         		= "";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["file_tmp"]          = "phpwcms_tmp";     //default: "phpwcms_tmp"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["dir_thlist"]        = "thumb_list";   //default: "thumb_list"
$phpwcms["dir_preview"]       = "thumb_preview";  //default: "thumb_preview"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"]      = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"]    = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"]   = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 538; //max width of the large preview image
$phpwcms["img_prev_height"]   = 400; //max height of the large preview image
$phpwcms["max_time"]          = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"]     = 0; //if 1 = page compression, 0 = no compression

// debugging timer
$phpwcms["timer"]             = 0; //is for displaying a how long it needs to create

$phpwcms["imagick"]           = 1; //0 = GD,  1 = ImageMagick convert
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 0; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"]       = 0;  //whether URL should be rewritable
$phpwcms["wysiwyg_editor"]    = 3;  //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"]        = 1;  //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"]      = "en";  //default language
$phpwcms["charset"]           = "iso-8859-1";  //default charset 'iso-8859-1'

// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"]     = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"]      = '';  //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"]     = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'


?>
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Hm, everything seems to be OK. So check if browser upload is working. And that there is a folder like USER-ID (default: 1....10) in phpwcms_filestorage and that 1...10 is set to CHMOD 777 like folders in phpwcms_tmp, the folder phpwcms_ftp

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply