"-dname= must be followed by a valid token" bug is back

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
omegaphase
Posts: 6
Joined: 2016-06-01T10:02:29-07:00
Authentication code: 1151

"-dname= must be followed by a valid token" bug is back

Post 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?
omegaphase
Posts: 6
Joined: 2016-06-01T10:02:29-07:00
Authentication code: 1151

Re: "-dname= must be followed by a valid token" bug is back

Post by omegaphase »

FYI it's on a GoDaddy shared server so I'm unable to make any changes with the installation.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: "-dname= must be followed by a valid token" bug is back

Post by Bonzo »

What was the "Prior to the 5/5/16 update"; a php Update?
omegaphase
Posts: 6
Joined: 2016-06-01T10:02:29-07:00
Authentication code: 1151

Re: "-dname= must be followed by a valid token" bug is back

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: "-dname= must be followed by a valid token" bug is back

Post 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.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: "-dname= must be followed by a valid token" bug is back

Post 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.
omegaphase
Posts: 6
Joined: 2016-06-01T10:02:29-07:00
Authentication code: 1151

Re: "-dname= must be followed by a valid token" bug is back

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: "-dname= must be followed by a valid token" bug is back

Post by snibgo »

You seem to have "updated" to a very old version, 6.7.2-7. What was your previous version?
snibgo's IM pages: im.snibgo.com
omegaphase
Posts: 6
Joined: 2016-06-01T10:02:29-07:00
Authentication code: 1151

Re: "-dname= must be followed by a valid token" bug is back

Post by omegaphase »

I didn't - my hosting provider did. I have no idea, except that my PDF conversions used to work :-(
omegaphase
Posts: 6
Joined: 2016-06-01T10:02:29-07:00
Authentication code: 1151

Re: "-dname= must be followed by a valid token" bug is back

Post 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.
sabirali
Posts: 1
Joined: 2016-06-21T17:27:49-07:00
Authentication code: 1151

Re: "-dname= must be followed by a valid token" bug is back

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: "-dname= must be followed by a valid token" bug is back

Post 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.8) 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.
Post Reply