• Hi

    I’m building a site using MAMP PRO and have installed Ghostscript and ImagMagick but when trying to Activate the plugin I get this message:

    Please install “GhostScript” before activate the plugin!

    Further investigation I also get this: Array ( ) / $ver: 127 / gs version:

    I know this may be a MAMP PRO related query but I cannot find a solution anywhere?!

    Any advice would be most welcome as this plugin looks great.

    Thanks

    https://www.ads-software.com/plugins/pdf-image-generator/

Viewing 15 replies - 1 through 15 (of 19 total)
  • I’m having the exact same problem :S
    I’ve contacted my server providers and Ghostscript is up and running.

    Love the plugin and it would be great if this problem got solved ??

    Thanks!

    Plugin Author Mizuho Ogino

    (@fishpie)

    I changed the process of confirmation.
    Try version 1.3.9

    I hope some people will be helped by this update.

    Thank you.

    Still running into the same critical error ??

    Plugin Author Mizuho Ogino

    (@fishpie)

    Thank you for reporting it.
    I fixed the way of verification again.

    if ( shell_exec( 'gs --version' ) ){
     // with gs
    }

    to

    $gs = exec( 'which gs' );
    if ( strpos( $gs, 'no gs' ) === false ){
     // with gs
    }

    Try Development version 1.4.0b
    https://downloads.www.ads-software.com/plugin/pdf-image-generator.zip

    Now I’m able to activate the plugin but I get the default WP icon on the PDF’s. I cant see any generated images.

    Plugin Author Mizuho Ogino

    (@fishpie)

    It seems the “gs” command doesn’t work.

    If you can select “Use imagick PHP Extension” on the plugin settings page, try this.
    If you cannot select it, add “extension=imagick.so” to your php.ini file and try again.

    Hi!
    The “Use imagick PHP Extension” is activated when I install the plugin and I cannot deactivate it. There is still no images being generated when I upload PDF’s sadly.

    Plugin Author Mizuho Ogino

    (@fishpie)

    Just to make sure – did you try another PDF?
    Some PDFs are not going to be converted by imageMagick.

    Test this code in your functions.php or template file.

    if ( is_user_logged_in() ) {
    	$gs = exec( 'which gs' );
    	echo '$gs;
    }

    If the path is unavailable, at least in this version, the plugin doesn’t work without personally customizing.

    I pasted :

    if ( is_user_logged_in() ) {
    	$gs = exec( 'which gs' );
    	echo $gs;
    }

    in my functions.php but nothing is getting echoed.

    Plugin Author Mizuho Ogino

    (@fishpie)

    Did you login?

    Yes I did. I even tried to echo some random text instead of $gs to see if it showed, and it did. The $gs on the other hand returns nothing.

    Plugin Author Mizuho Ogino

    (@fishpie)

    I guess the Ghostscript is installed in a different location.
    I tried to change the plugin option that is able to set manually the path to the gs from PHP, but it is failed.

    I found a topic with more information on configuring MAMP and Ghostscript:

    MAMP had installed Ghostscript in a different location

    In this case, you need manually change the delegate path to gs.

    Imagick/Ghostscript error with PDF input

    I don’t know a lot about MAMP, so I can’t give you any more information. Thanks for your understanding and your patience.

    I really hope that gives you what you need.

    I asked my hosting provider and he tells me that the path to ghostscript is “/usr/local/bin/gs”. Could this be the issue? ??

    Plugin Author Mizuho Ogino

    (@fishpie)

    The path itself is not the issue. It seems that your imagick is unable to find the path to ghostscript.
    It possibly can to compliant this issue by the plugin, but it looks very difficult.

    Ok.
    The thing is that the plugin worked great on this site before we migrated it to the current domain. We still use the same webhost as before, just migrated the site from one account to another.
    Is there any setting saved in a file that doesnt reset when reinstalling the plugin thats might still point to the old location?
    I just cant get my head around why it was working at first, but not after migration when we still use the same hosting service.

    Cheers !

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Please install Ghostscript! Warning’ is closed to new replies.