EXIF extension installed FAIL

423 views
Skip to first unread message

mdb

unread,
Jul 29, 2009, 1:30:01 PM7/29/09
to ResourceSpace
I ran the Installation Check this morning and I see this listed

EXIF extension installed FAIL

I have that extension uncommented in the PHP.ini file.

Anything else I should be looking at to get that turned on?

Thanks!

Tom Gleason

unread,
Jul 29, 2009, 1:31:28 PM7/29/09
to resour...@googlegroups.com
if you can install exiftool, it's far superior to relying on php's exif extension.

mdb

unread,
Jul 29, 2009, 2:04:19 PM7/29/09
to ResourceSpace
Right O

I will get that a try.

I also got a server error

---------------------------
php-win.exe - Unable To Locate Component
---------------------------
This application has failed to start because php_mbstring.dll was not
found. Re-installing the application may fix this problem.
---------------------------

Curious, as I read somewhere that you need mbstring to load before
exif will work.

In any case I will exiftool a try.

Thanks!

mdb

unread,
Jul 29, 2009, 2:22:03 PM7/29/09
to ResourceSpace
OK Better.

The check still lists the EXIF extension installed FAIL

But I have exiftool installed correctly. Also when I try to send and
image into RS it does not hang anymore BUT...I am still not getting a
preview.

Any ideas on this?

mdb

unread,
Jul 29, 2009, 3:06:32 PM7/29/09
to ResourceSpace
K

I fixed the EXIF extension installed FAIL

In the PHP.ini file you need to find extension=php_mbstring.dll

Cut it out and move it to the top of the extensions list in the ini

Atleast on Windows you need to do this as it will load the extensions
in order and if EXIF loads before mbstring you get the error. Moving
mbstring to the top ensure things load correctly and now I am getting
all OKs in my Installation Check Page.

BUT!!

I am still not getting ANY thumbnails/reviews generated. I look in the
filestore location I can see the original file uploaded but none of
the previews are there either.

I really dont have a clue as to what is going here with file previews.
I was hoping that getting the exif working would fix that but nothing.

Please, any help would be great.

Tom Gleason

unread,
Jul 29, 2009, 3:10:29 PM7/29/09
to resour...@googlegroups.com
hows the check with imagemagick and ghostscript?

mdb

unread,
Jul 29, 2009, 3:22:11 PM7/29/09
to ResourceSpace
PHP version 5.2.6 OK
MySQL version 5.0.51b-community-nt OK
GD version bundled (2.0.34 compatible) OK
PHP.INI value for 'memory_limit' 200M OK
PHP.INI value for 'post_max_size' 2000M OK
PHP.INI value for 'upload_max_filesize' 2000M OK
Write access to 'filestore' directory OK
Blocked browsing of 'filestore' directory OK
ImageMagick OK
FFmpeg OK
Ghostscript OK
EXIF extension installed OK
Exiftool OK

config.php
# If using ImageMagick, uncomment and set next 2 lines
$imagemagick_path="C:\\Program Files (x86)\\ImageMagick-6.5.4-Q16";
$ghostscript_path="C:\\Program Files (x86)\\gs\\gs8.64\\bin";

# If using FFMpeg to generate video thumbs and previews, uncomment and
set next line.
$ffmpeg_path="C:\\Program Files (x86)\\ImageMagick-6.5.4-Q16";

# Install Exiftool and set this path to enable metadata-writing when
resources are downloaded
$exiftool_path="C:\\wamp\\tools";

I should also mention that I am getting the "No Preview Available"
image.

Thanks Tom really appreciate you lending a hand!

Dan Huby

unread,
Jul 29, 2009, 6:23:08 PM7/29/09
to ResourceSpace
Everything looks perfect. What file types have you tried? Does
something simple like a JPEG work?

mdb

unread,
Jul 29, 2009, 6:26:27 PM7/29/09
to ResourceSpace
I have been reading a bit more and I saw this on the rswiki:

in order for external tools (such as ImageMagick, FFMpeg) to work you
must allow access to cmd.exe using the following on the command line:
cacls c:\windows\system32\cmd.exe /E /G IUSR_MYPC:F

Well, so I did this:

From a command prompt on my Win server I entered:
cacls c:\windows\system32\cmd.exe /E /G IUSR_WooHoo:F

and I got the following error:
No mapping between account names and security IDs was done.

I am guessing that is not normal? How can I correct this? I am
wondering if RS doesnt have access to the cmd line and that is why
things are failing?

Any one know how to fix that?

mdb

unread,
Jul 29, 2009, 6:41:11 PM7/29/09
to ResourceSpace
DO I still need to use that command if I am running Apache on my
WinServer?

Is there anything else I need to do to allow RS to run external tools
from the cmd.exe?

mdb

unread,
Jul 29, 2009, 6:53:58 PM7/29/09
to ResourceSpace
So I removed the paths to:
imagemagick
gs
ffmpeg
exiftool

And now I am getting jpgs to show up! Wohhoo!

But if I want more than that I will need imagemagick and I suspect
that RS/PHP is being blocked from running cmd tools.

Thats when I tried to use the cacls command from the rswiki and got
that error. Is there anything else I can do to get cmd tools to work
in WinServer?

Thanks guys!! So close!

Tom Gleason

unread,
Jul 29, 2009, 7:03:38 PM7/29/09
to resour...@googlegroups.com
sorry, I don't think I can help any more here... I'm not familiar with running RS on windows.

mdb

unread,
Jul 29, 2009, 7:45:40 PM7/29/09
to ResourceSpace
Rats.

Thanks Tom

Well I tried another test. This time I enabled imagemagick and gs in
the config.php file and tried to upload a jpg into the system and no
preview is generated.

So, if imagemagick is on no thumbnails are generated even if it is a
jpg. If imagemagick is off, I can generate thumbnails of jpgs but now
I can not get anything else into RS.

There has to be a way to enable the cmd execution of imagemagick. I am
guessing that is what it is.

mdb

unread,
Jul 29, 2009, 8:34:30 PM7/29/09
to ResourceSpace
So...ugh...

I created a little php file that looks like this

<?php
exec("C:\\wamp\\tools\\ImageMagick-6.5.4-Q16\\convert C:\\wamp\\tools\
\ImageMagick-6.5.4-Q16\\10.psd C:\\wamp\\tools\\ImageMagick-6.5.4-Q16\
\10.png");
?>

I ran this php from a local computer (as in I did not run this on the
server)

And I will be damned...it worked.

So, maybe it is not a windows problem. I can through this little
program make it work...so why the heck is it not working with RS? That
should be perfect!!

Thoughts?

mdb

unread,
Jul 29, 2009, 8:53:11 PM7/29/09
to ResourceSpace
GOT IT!

Dont ask me why...I have no idea...

I changed the locations of the tools to this:

imagemagick C:\\wamp\\tools\\ImageMagick-6.5.4-Q16
ffmpg C:\\wamp\\tools\\ImageMagick-6.5.4-Q16
gs C:\\wamp\\tools\\gs

And it worked.

Sweet! So excited!

Moxtell

unread,
Sep 13, 2009, 5:41:56 PM9/13/09
to ResourceSpace
Hi

How did you manage? I have tried to do the same as yo with no luck....
Still no thumbnails...


:(
Morten
> > > > > > >EXIFextension installed OK
> > > > > > > Exiftool OK
>
> > > > > > > config.php
> > > > > > > # If using ImageMagick, uncomment and set next 2 lines
> > > > > > >  $imagemagick_path="C:\\Program Files (x86)\\ImageMagick-6.5.4-Q16";
> > > > > > >  $ghostscript_path="C:\\Program Files (x86)\\gs\\gs8.64\\bin";
>
> > > > > > > # If using FFMpeg to generate video thumbs and previews, uncomment and
> > > > > > > set next line.
> > > > > > >  $ffmpeg_path="C:\\Program Files (x86)\\ImageMagick-6.5.4-Q16";
>
> > > > > > > # Install Exiftool and set this path to enable metadata-writing when
> > > > > > > resources are downloaded
> > > > > > >  $exiftool_path="C:\\wamp\\tools";
>
> > > > > > > I should also mention that I am getting the "No Preview Available"
> > > > > > > image.
>
> > > > > > > Thanks Tom really appreciate you lending a hand!
>
> > > > > > > On Jul 29, 12:10 pm, Tom Gleason <theorysav...@gmail.com> wrote:
>
> > > > > > > > hows the check with imagemagick and ghostscript?
>
> > > > > > > > On Wed, Jul 29, 2009 at 3:06 PM, mdb <marcbrink...@gmail.com> wrote:
>
> > > > > > > > > K
>
> > > > > > > > > I fixed theEXIFextension installed FAIL
>
> > > > > > > > > In the PHP.ini file you need to find extension=php_mbstring.dll
>
> > > > > > > > > Cut it out and move it to the top of the extensions list in the ini
>
> > > > > > > > > Atleast on Windows you need to do this as it will load the
> > > > > extensions
> > > > > > > > > in order and ifEXIFloads before mbstring you get the error.
> > > > > Moving
> > > > > > > > > mbstring to the top ensure things load correctly and now I am
> > > > > getting
> > > > > > > > > all OKs in my Installation Check Page.
>
> > > > > > > > > BUT!!
>
> > > > > > > > > I am still not getting ANY thumbnails/reviews generated. I look in
> > > > > the
> > > > > > > > > filestore location I can see the original file uploaded but none of
> > > > > > > > > the previews are there either.
>
> > > > > > > > > I really dont have a clue as to what is going here with file
> > > > > previews.
> > > > > > > > > I was hoping that getting theexifworking would fix that but
> > > > > nothing.
>
> > > > > > > > > Please, any help would be great.
>
> > > > > > > > > On Jul 29, 11:22 am, mdb <marcbrink...@gmail.com> wrote:
> > > > > > > > > > OK Better.
>
> > > > > > > > > > The check still lists theEXIFextension installed FAIL
>
> > > > > > > > > > But I have exiftool installed correctly. Also when I try to send
> > > > > and
> > > > > > > > > > image into RS it does not hang anymore BUT...I am still not
> > > > > getting a
> > > > > > > > > > preview.
>
> > > > > > > > > > Any ideas on this?
>
> > > > > > > > > > On Jul 29, 11:04 am, mdb <marcbrink...@gmail.com> wrote:
>
> > > > > > > > > > > Right O
>
> > > > > > > > > > > I will get that a try.
>
> > > > > > > > > > > I also got a server error
>
> > > > > > > > > > > ---------------------------
> > > > > > > > > > > php-win.exe - Unable To Locate Component
> > > > > > > > > > > ---------------------------
> > > > > > > > > > > This application has failed to start because php_mbstring.dll
> > > > > was not
> > > > > > > > > > > found. Re-installing the application may fix this problem.
> > > > > > > > > > > ---------------------------
>
> > > > > > > > > > > Curious, as I read somewhere that you need mbstring to load
> > > > > before
> > > > > > > > > > >exifwill work.
>
> > > > > > > > > > > In any case I will exiftool a try.
>
> > > > > > > > > > > Thanks!
>
> > > > > > > > > > > On Jul 29, 10:31 am, Tom Gleason <theorysav...@gmail.com>
> > > > > wrote:
>
> > > > > > > > > > > > if you can install exiftool, it's far superior to relying on
> > > > > php's
> > > > > > > > >exif
> > > > > > > > > > > > extension.
>
> > > > > > > > > > > > On Wed, Jul 29, 2009 at 1:30 PM, mdb <marcbrink...@gmail.com>
> > > > > wrote:
>
> > > > > > > > > > > > > I ran the Installation Check this morning and I see this
> > > > > listed
>
> > > > > > > > > > > > >EXIFextension installed FAIL
>
> > > > > > > > > > > > > I have that extension uncommented in the PHP.ini file.
>
> > > > > > > > > > > > > Anything else I should be looking at to get that turned on?
>
> > > > > > > > > > > > > Thanks!- Skjul tekst i anførselstegn -
>
> - Vis tekst i anførselstegn -

DGire

unread,
Sep 17, 2009, 6:12:37 AM9/17/09
to ResourceSpace
Same here.. no thumbnails at all once I've enabled these two....

# If using ImageMagick, uncomment and set next 2 lines
$imagemagick_path="D:\\Program Files\\ImageMagick-6.5.4-Q16";
$ghostscript_path="C:\\gs\\gs8.70\\bin";

can you copy and paste your two lines in here MDB?
> > - Vis tekst i anførselstegn -- Hide quoted text -
>
> - Show quoted text -

Merrickk

unread,
Sep 17, 2009, 8:00:12 AM9/17/09
to ResourceSpace
Not sure if you guys caught this change too.

extension=php_mbstring.dll
Move that to the top of the extension list so it loads first. This is
in the PHP.ini.

Also, None of my paths are using the "Double Backslash" However, most
of my stuff is working, but not all. Not sure what role this plays?

Can anyone comment on that?

Thanks

Mer

DGire

unread,
Sep 17, 2009, 10:07:54 AM9/17/09
to ResourceSpace
I tried that.... now I get this..

Sorry, an error has occured.

Please go back and try something else.

You can check your installation configuration.


--------------------------------------------------------------------------------

C:\Inetpub\wwwroot\imagebank\include\authenticate.php line 12:
Undefined offset: 1


and if I change it back..it's still broken... could just be a
conincidence..!!! Think I need to start from scratch with the php.ini
file...
> > > - Show quoted text -- Hide quoted text -

Fatima

unread,
Jun 16, 2010, 3:05:39 AM6/16/10
to resour...@googlegroups.com
Moved extension=php_mbstring.dll to the top in php.ini file. But still
getting getting EXIF Extension Fail error.

Any other solution which I can try. Please let me know which RS
components or features are effected when Exif extension installation
fails.

Regards
Fatima


---------- Forwarded message ----------
From: Merrickk <Jpazi...@technicalmoonlight.com>
Date: Sep 17 2009, 5:00 pm
Subject: EXIF extension installed FAIL
To: ResourceSpace


Not sure if you guys caught this change too.

extension=php_mbstring.dll
Move that to the top of theextensionlist so it loads first.  This is
in the PHP.ini.

Thanks

Mer

> > Hi

> > :(
> > Morten

> > > GOT IT!

> > > And it worked.

> > > Sweet! So excited!

> > > > So...ugh...

> > > > Thoughts?

> > > > > Rats.

> > > > > Thanks Tom

> > > > > > > Thanks guys!! So close!

> > > > > > > > > > > K

> > > > > > > > > > > I fixed theEXIFextension installedFAIL

> > > > > > > > > > > BUT!!

> > > > > > > > > > > > Any ideas on this?

> > > > > > > > > > > > > Right O

> > > > > > > > > > > > > Thanks!

> > > > > > > > > > > > > > >EXIFextension installedFAIL

> > > > > > > > > > > > > > > I have thatextensionuncommented in the PHP.ini file.

Reply all
Reply to author
Forward
0 new messages