Fatal error: Call to undefined function imagick_readimage()

Known bugs reported by PacsOne users
Post Reply
mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am
Fatal error: Call to undefined function imagick_readimage()

Post by mansoorhasani » Wed Jul 17, 2013 10:38 am

hi all
i had installed pacsone server Properly, when i went to http://127.0.0.1:8888/pacsone/login.php , i faced with an error right onther the " Enter Anti-Spam Code From Below: " . i have tried so much for fix it but i can't , please someone help me .

( ! ) Fatal error: Call to undefined function imagick_readimage() in C:\Program Files (x86)\PacsOne\php\login.php on line 28

Call Stack
# Time Memory Function Location
1 0.0016 772800 {main}( ) ..\login.php:0
2 0.0113 1260144 login( ) ..\login.php:187
3 0.0206 1261920 makeAntiSpamGraphics( ) ..\login.php:144[/img][/code][/url]

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

Post by pacsone » Wed Jul 17, 2013 5:39 pm

The error suggests the ImageMagick PHP extension was not loaded for some reason, so can you check the HTML output of the test page below and see if the ImageMagick PHP extension is loaded successfully?

http://localhost/pacsone/Hello.php

mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am

Post by mansoorhasani » Thu Jul 18, 2013 11:39 am

i add the php5.3_imagick.dll to the c:\php\ext folder and i add it in the php.ini but i don't know why it didn't work :(,
i use wamp and when i check the extension of php it isn'y there .
srry my English is so bad

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

Post by pacsone » Thu Jul 18, 2013 3:23 pm

There are 2 builds (VC 6 and VC9) of the php5.3_imagick.dll, and you need to copy the correct version which matches with the PHP build (VC6 or VC9) installed on your server.

You can find the PHP build information from the HTML output of the test page below:

http://localhost/pacsone/Hello.php

mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am

Post by mansoorhasani » Sat Jul 20, 2013 7:38 am

I changed my php to php 5.4 . so I just can use of VC9 but it dose not work yet.
my problem is Although I add php5.4_imagick.dll to my php but php can't load it.

mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am

Post by mansoorhasani » Sat Jul 20, 2013 7:39 am

the result of my http://127.0.0.1:8888/pacsone/Hello.php is :
System Windows NT MISCLIENT10 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64
Build Date Feb 25 2013 00:27:38
Compiler MSVC9 (Visual C++ 2008)
Architecture x64
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--without-dblib" "--without-pdo-dblib" "--without-pdo-mssql" "--with-pdo-oci=C:\php-sdk\php54dev\vc9\x64\deps\instantclient_10_2\sdk,shared" "--with-oci8=C:\php-sdk\php54dev\vc9\x64\deps\instantclient_10_2\sdk,shared" "--with-oci8-11g=C:\php-sdk\php54dev\vc9\x64\deps\instantclient_11_2\sdk,shared" "--disable-debug-pack" "--disable-static-analyze"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\wamp\bin\apache\apache2.4.4\bin\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,TS,VC9
PHP Extension Build API20100525,TS,VC9
Debug Build no
Thread Safety enabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*

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

Post by pacsone » Sat Jul 20, 2013 5:40 pm

The output of the test page indicates that you've installed the 64-bit (x64) build of WAMP server, which won't work with PacsOne Server which is a 32-bit application. So you should un-install the 64-bit version of WAMP and install the 32-bit version of the same WAMP Server instead.

mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am

new problem

Post by mansoorhasani » Sun Jul 21, 2013 7:34 am

tnx man it's work . U save a lot of my time , tnx again.
but when i go to http://127.0.0.1:8888/pacsone/home.php I face with new problem :
Error: PacsOne Server license is either missing or has expired!
what can I do now???
thank U,

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

Post by pacsone » Mon Jul 22, 2013 4:25 pm

Did you by any chance un-install PacsOne Server on your server? If so, the trial license will be removed but will NOT be created again even if you re-install PacsOne Server (to prevent "endless" trials).

In any case, can you check if you see the trial license file ("license.dat") under the directory where PacsOne Server is installed? If not, that would explain the missing trial license error and if that's the case, you can send the output text of the following command run from a local shell on your server to mailto:pacsone@pacsone.net to request for a new trial license:

Code: Select all

C:\>ipconfig /all > ipconfig.txt

mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am

Post by mansoorhasani » Tue Jul 23, 2013 5:54 am

tanks admin ,
when I got new license.dat , what should I do?
tanks,

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

Post by pacsone » Tue Jul 23, 2013 4:16 pm

After you've applied the new trial license, the error message will disappear and you'll be able to access the Login page from a web browser.

mansoorhasani
Posts:17
Joined:Wed Jul 17, 2013 10:28 am

Post by mansoorhasani » Wed Jul 24, 2013 5:35 am

thanks a lot

Post Reply