trying to view images generates error

Trouble during PacsOne Server installations
Post Reply
DDors
Posts:10
Joined:Fri Oct 24, 2003 5:59 am
trying to view images generates error

Post by DDors » Sat Nov 01, 2003 6:01 pm

I am almost there. When opening images with pacsone I recieve the following error message

Fatal error: Call to undefined function: imagick_readimage() in C:\Program Files\PacsOne\php\image.php on line 109

this line in image.php is

$src = imagick_readimage($path);

I think I have the wrong line in php.ini, Currently I have

session.save_path=/tmp
what is this valid directory where the images are; mysql/bin?

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: trying to view images generates error

Post by pacsone » Sun Nov 02, 2003 4:12 am

It's probably not a good idea to use "/tmp" as your PHP session save_path. Although it may be set to any valid directory path, like "C:\Temp", it's recommended to choose a directory with security attributes set so that only the built-in 'System' user account can read and write to that directory.

The message you got probably is unrelated to your PHP 'save_path' variable, since if your session save path is not valid, you won't even be able to get to the PacsOne main page.

One possible cause of the error is that you didn't add the 'php_imagick.dll' to the PHP extension list in PHP.INI. Please follow instructions in the README.TXT file that comes with the PacsOne package.

You can also find out if the 'imagick' PHP extension has been loaded or not by accessing the following URL from the browser:

http://{HOSTNAME}/pacsone/hello.php

You will see 'imagick' on the loaded PHP extension list if it's been loaded successfully by PHP.
DDors wrote:I am almost there. When opening images with pacsone I recieve the following error message

Fatal error: Call to undefined function: imagick_readimage() in C:\Program Files\PacsOne\php\image.php on line 109

this line in image.php is

$src = imagick_readimage($path);

I think I have the wrong line in php.ini, Currently I have

session.save_path=/tmp
what is this valid directory where the images are; mysql/bin?

DDors
Posts:10
Joined:Fri Oct 24, 2003 5:59 am

trying to open images

Post by DDors » Mon Nov 03, 2003 12:33 am

I am still not able to load the imagemagick module. (php hello fails to show module load)
Images load into ezDicom from directory but not from pacsone interface.
System: winXP home, apache 2.0.47, php 4.3.3, mysql 4.0.16, pacsone 1.0.0.8
Have you considered pacsone intergration with pre built wamp setups e.g. sokkit, foxserv and nusphere

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: trying to open images

Post by pacsone » Mon Nov 03, 2003 12:48 am

If you can't load 'Hello.php' then your PHP.INI is definitely the culprit. Follow the URL below about how to setup your PHP.INI file and make sure to save it in Windows format.

http://www.pacsone.net/faq.htm?#C4
DDors wrote:I am still not able to load the imagemagick module. (php hello fails to show module load)
Images load into ezDicom from directory but not from pacsone interface.
System: winXP home, apache 2.0.47, php 4.3.3, mysql 4.0.16, pacsone 1.0.0.8
Have you considered pacsone intergration with pre built wamp setups e.g. sokkit, foxserv and nusphere

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: trying to open images

Post by pacsone » Mon Nov 03, 2003 12:50 am

Also, did you copy the 'php_imagick.dll' to the 'extensions' sub-directory where PHP was installed?
DDors wrote:I am still not able to load the imagemagick module. (php hello fails to show module load)
Images load into ezDicom from directory but not from pacsone interface.
System: winXP home, apache 2.0.47, php 4.3.3, mysql 4.0.16, pacsone 1.0.0.8
Have you considered pacsone intergration with pre built wamp setups e.g. sokkit, foxserv and nusphere

DDors
Posts:10
Joined:Fri Oct 24, 2003 5:59 am

imagick module

Post by DDors » Mon Nov 03, 2003 1:46 am

php.hello displays the the default modules along with the usual php info but I cannot get the imaagick module to load. I have reloaded php with same error occurring. Could it be version issue with php 4.3.1 vs 4.3.3

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: imagick module

Post by pacsone » Mon Nov 03, 2003 3:58 am

In that case, it's because one of the two things below:

1. The entry: 'extension=php_imagick.dll' is missing from your PHP.INI file under your %SystemRoot% (usually \Windows or \Winnt) directory.

2. The file 'php_imagick.dll' does not exist under the 'extensions' sub-directory under your PHP installation path.
DDors wrote:php.hello displays the the default modules along with the usual php info but I cannot get the imaagick module to load. I have reloaded php with same error occurring. Could it be version issue with php 4.3.1 vs 4.3.3

DDors
Posts:10
Joined:Fri Oct 24, 2003 5:59 am

imagick problem

Post by DDors » Mon Nov 03, 2003 6:48 am

checked both of those, still unable to view images, same error on attempting to open images. Will try a fresh install on win XP sp1 with 1.0.0.9.

Post Reply