• Resolved angexlynne

    (@angexlynne)


    Hello,

    Has anyone reported issues with SVG support on PHP Version 5.3.24? I use this plugin on a dev site and it worked beautifully but the images show as broken links when I moved the changes to the live site. Both sites are hosted on GoDaddy but on different hosting accounts. I have come to the conclusion that it has to be the PHP version. I did fresh WP install on the same hosting account is the live site and same issue. I updated to your most recent version which thanks for being so responsive and quick about updates.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi there,

    Thanks for your support!
    There has been issues reported with their hosting, please see this thread, I provided the fix, I hope it helps.

    Plugin Author Benbodhi

    (@benbodhi)

    Oh, I totally forgot to put the link to the thread!

    Here’s the solution from that thread:

    It sounds like you need to add the mime type to your .htaccess file which is found in your root folder of your WordPress installation. Make sure to add it outside the WordPress existing code there like so:

    
    AddType image/svg+xml .svg .svgz
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /staging/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /staging/index.php [L]
    </IfModule>
    # END WordPress
    

    I’m almost certain that their hosting is causing this and it is as simple as adding that one line to your .htaccess file.

    Please let me know if you still have trouble.

    Cheers

    Thread Starter angexlynne

    (@angexlynne)

    Hi,

    I’ve tried adding that to my .htaccess file and no luck. I’m certain it’s their hosting as well and when I reached out to them they were just sharing links I had already found myself. That hosting account is due for an upgrade and we are considering moving over to a dedicated server but that involves migrating all of our sites which I am not able to do yet due to the fact that I am the only developer on my team. Idk if a simple upgrade in plan will give me the option to switch to a different php version. I’ll find out. Thanks for your help!

    Plugin Author Benbodhi

    (@benbodhi)

    Hello,

    Sorry to hear this didn’t work for you.
    I would ask to speak with a higher up support staff member.
    I’ll mark as unresolved again, I was hopeful this was the same issue.
    One of many I see with their hosting.

    I will try to set up a test environment with this PHP version and take a look…

    Plugin Author Benbodhi

    (@benbodhi)

    Also,
    a hosting account with cloudlinux OS will allow you to change PHP versions very easily.

    Feel free to shoot me login details to try and debug myself ([email protected]).

    Plugin Author Benbodhi

    (@benbodhi)

    Hi @angexlynne,

    Have you had any luck with this?
    I have tested with a bunch of PHP versions, not quite the one you mentioned, but very close with no issues.
    Might be easier if I can see your site in particular.

    Let me know.

    Plugin Author Benbodhi

    (@benbodhi)

    I am assuming you upgraded your hosting and got this sorted, so I am marking this as resolved.
    Please let me know if you still have issues.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘SVG Support on PHP Version 5.3.24’ is closed to new replies.