• Resolved rlgura

    (@rlgura)


    When I try to activate the plugin, I receive the following error

    Parse error: syntax error, unexpected ‘)’ in /home/unnnnnnnnnnn/domains/greatlakesdesigns.com/public_html/gura/wp-content/plugins/heic-support/heic-support.php on line 223

    I’m running WordPress 6.1.1 and my server is running PHP 7.2 and has ImageMagick 7.1.0-20 installed

    • This topic was modified 1 year, 11 months ago by rlgura.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter rlgura

    (@rlgura)

    I removed the comma from the end of line 222 and was able to activate the plugin. However, I’m still getting an error that HEIC format upload is not allowed. Where do I have to allow this or should the plugin installation be doing this?

    Plugin Author Corey Salzano

    (@salzano)

    Thanks for trying the plugin and sending feedback. I missed that extra comma because I didn’t test on a PHP version old enough for it to throw an error.

    Can you provide me with a sample file you are unable to upload after activating the plugin so I can test it?

    Thanks again

    Thread Starter rlgura

    (@rlgura)

    I saw there was an update for the plugin, so I updated, then deactivated and re-activated. It seems to be working now! I had also updated my PHP to 7.4 yesterday, so that may also have helped.
    This is a great addition, and I can’t believe they haven’t built in support for HEIC natively yet! This will save me the run around of either uploading from my phone or having to make a copy and convert my images before uploading!

    Will the original HEIC file get removed from the library eventually, or do I just need to delete them after they’re converted?

    Thanks for your efforts on this!

    Plugin Author Corey Salzano

    (@salzano)

    Oh, great! I published an update for the bug you found this morning so others do not run into a similar error.

    I wrote about why I think WordPress does not include functionality similar to this plugin yet on this plugin’s page on my website: https://breakfastco.xyz/heic-support/

    I am unlikely to update this plugin delete the .heic images. If you have access to wp-cli, this command will delete all HEIC attachment posts (careful!):

    wp post delete --force $(wp post list --post_type='attachment' --post_mime_type=image/heic --format=ids)

    Thread Starter rlgura

    (@rlgura)

    Works for me – I’ll just remove them from my File Manager interface.
    btw – I’m using Hostinger as my hosting provider, so they obviously provide ImageMagick support! ??
    https://www.hostinger.com/wordpress-hosting

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error activating plugin’ is closed to new replies.