Page 1 of 1
"-dname= must be followed by a valid token" bug is back
Posted: 2016-06-01T10:10:09-07:00
by omegaphase
I'm running ImageMagick 6.9.0-0 Q16 x86_64 2016-05-05 on PHP Version 5.6.21.
Prior to the 5/5/16 update everything was fine. Now I get (using "scriptfile.php" as a substitute for my script file & path):
Code: Select all
PHP Fatal error: Uncaught exception 'ImagickException' with message 'PDFDelegateFailed `[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r150x150" -dFirstPage=1 -dLastPage=1 "-sOutputFile=/tmp/magick-15226q-ywFTZ78fvw%d" "-f/tmp/magick-15226_cHlE0bzLGiR" "-f/tmp/magick-15226zhqFo8xP875b"': -dname= must be followed by a valid token
@ error/pdf.c/InvokePDFDelegate/263' in scriptfile.php:156
Stack trace:
#0 scriptfile.php(156): Imagick->readimage('../pdfs/14.1137...')
#1 {main}
thrown in scriptfile.php on line 156
Any suggestions? Or am I SOL until my hosting company updates Imagick again?
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-01T10:52:13-07:00
by omegaphase
FYI it's on a GoDaddy shared server so I'm unable to make any changes with the installation.
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-01T11:35:46-07:00
by Bonzo
What was the "Prior to the 5/5/16 update"; a php Update?
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-02T02:40:21-07:00
by omegaphase
I'm referring to the date "2016-05-05" in the Imagick version when I run "convert -version".
Code: Select all
Version: ImageMagick 6.7.2-7 2016-05-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
It reads as though Imagick was updated to 6.7.2-7 on 2016-05-05. Is that correct?
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-02T02:54:20-07:00
by snibgo
That's the date IM was compiled. It was compiled from source code version 6.7.2-7, which is very old. Not, as your OP says, 6.9.0-0.
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-02T05:00:43-07:00
by Bonzo
Just for your referance omegaphase Imagick is not written or maintained by the people who maintain Imagemagick.
Imagick is a php API for Imagemagick which can cause some confusion.
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-03T09:29:38-07:00
by omegaphase
Ah ok, thanks for the clarification. So by your estimation, if my version is upgraded do you think it will resolve my problem?
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-03T09:45:23-07:00
by snibgo
You seem to have "updated" to a very old version, 6.7.2-7. What was your previous version?
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-03T11:13:45-07:00
by omegaphase
I didn't - my hosting provider did. I have no idea, except that my PDF conversions used to work
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-05T01:20:09-07:00
by omegaphase
OK, so the reason my OP says 6.9 is because that's what's being reported by phpinfo().
phpinfo():
ImageMagick 6.9.0-0 Q16 x86_64 2016-05-05
http://www.imagemagick.org
Copyright (C) 1999-2014 ImageMagick Studio LLC
PHP exec command:
ImageMagick 6.7.2-7 2016-05-10 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
It looks as though there are two installations in two different locations, unless there is a better explanation? And it could be why I'm getting the error.
Do you have any suggestions on how I can test against one or the other to find out which one works properly?
Thanks in advance.
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-21T17:32:32-07:00
by sabirali
I have got similar problem. Everything was going fine before the 05-05-2016 i.e before updating Imagemagick. Now, what to do? Is there any solution.
By the way I too have shared server, so I cannot change the version unless the hosting provider do so.
Please help
Re: "-dname= must be followed by a valid token" bug is back
Posted: 2016-06-21T18:19:21-07:00
by fmw42
Perhaps the host has installed two versions and you are now calling the old version. On Godaddy, for example, some servers have a very old version (6.2.
and some have old but not as old (6.5.4).
Check with your hosting provider to find out if they have more than one version of Imagemagick and which one is being called by Imagick on your specific server.