• Resolved cueb

    (@cueb)


    “Disabling WP-Optimize lead to a Server Error 500”

    Hi,

    today I disabled WP-Optimize in the dashboard because some fonts were disappearing on my mobile that were displaying fine in desktop mode and I read online that it might have something to do with optimisation.
    From the moment on that I disabled the plugin I was stuck with a Server Error 500.

    I contacted my host who told me that there was maybe something misspelled or defined by a module not included in the server configuration with the error log: …/wordpress/.htaccess: Invalid command ‘application/schema+json’

    So I thought maybe the disabled plugin left code in the htaccess file that is causing the error while the plugin is deactivated.

    I tried to comment all lines with schema+json out in the file (/* */) but it didn’t change anything.
    I also tried to comment all the remaining lines of WP-Optimize out but I am not quite sure what does belong and what doesn’t belong specifically to the WP-Optimize plugin. There are no comments that would indicate this.
    And whatever command lines I did exclude, the Server error did’t change.

    As I can’t access the dashboard anymore, I thought maybe it is a good idea to simply reactivate the WP-Optimze plugin in the php server, but I am a bit reluctant to try it out, as I couldn’t find anything how the list works and if the plugin needs to be in a certain order.

    The other things that came to mind were renaming the plugin folder to deactivate all plugins and doing the same for the Uncode theme. Or is there another way to fix the error without needing to disable everything?

    If somebody knows what to do in such a case I would be grateful for some advice.`

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter cueb

    (@cueb)

    SOLVED IT:

    For those having similar issues…

    I disabled the plugin folder by renaming it and made a copy of the .htaccess on the desktop and deleted the .htaccess on the server.
    After deleating the .htaccess I could access the dashboard again and rewrite a fresh .htaccess by visiting the dashboard, settings, permalink, save changes.

    Then it was just a copy paste back and forth to find out which line was conflicting and causing the 500 server error. It was just one line that had to be commented out.
    # “application/manifest+json” \

    It wasn’t even the lines that were indicated by the server error log (schema+json). I could leave both lines of this type in the file without a problem.

    Hope that helps someone facing similar issues when deactivating “WP-Optimize” and facing a server 500 Error.

Viewing 1 replies (of 1 total)
  • The topic ‘‘application/schema+json’ & server error 500’ is closed to new replies.