• Resolved irastr

    (@irastr)


    There seems to be a problem with the newer Defender Version and the Geo Controller plugin. With Defender 3 we didn’t had any problems. Since we updated it to version 4 we always get an Internal Server error when switching the language of a page 2-3 times (language selector created by WPML plugin).

    The error disappears when we
    – either deactivate the Defender plugin
    – or deactivate the Geo Controller plugin

    The only errors we found in the log files were about to many redirects. But as I said we have this problem ONLY when both plugins (Defender 4 and Geo controller are activated).

    Do you have an idea what the reason could be?

    Thanks a lot!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @irastr,

    Sorry to know that you are experiencing an issue.

    Can you please confirm if the following plugin is the one that you have mentioned?

    https://www.ads-software.com/plugins/cf-geoplugin/

    I did a quick check at my end but was unable to replicate the issue. Can you please enable WP_DEBUG_LOG and see if a PHP error is being logged? I hope the following guide comes in handy: https://www.ads-software.com/documentation/article/debugging-in-wordpress/

    We look forward to hearing back from you and help you resolve the issue as soon as possible.

    Kind Regards,
    Nebu John

    Thread Starter irastr

    (@irastr)

    Hi Nebu John,

    yes, I confirm that https://www.ads-software.com/plugins/cf-geoplugin/ is the correct plugin that I mentioned.

    I checked the debug.log file after enabling WP_DEBUG_LOG but I only see some PHP Warnings there, no PHP Error.

    The message we got in the browser (on a white screen) when the error occurs is:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Any ideas how we can proceed investigating? What and where to look for?

    Best,
    Irina

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @irastr,

    The message we got in the browser (on a white screen) when the error occurs is

    The above error shared still points to a 500 error, however, it was generated within the server side. This would mean the 500 error is generated within the server instead of the WordPress website.

    If enabling debug mode didn’t help much, there should have been error logs generated on the server side based on the message shared.

    Possible to check with your Hosting provider and see what exactly caused the mentioned server error?

    If they are able to share any logs related to this, then please do hare that in the next response.

    Also, do you have the “Locations” feature enabled on the Defender side? ie under Defender > Firewall > IP Banning > Locations?

    Looking forward to your response.

    Regards,

    Nithin

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @irastr,

    We haven’t heard from you in a while, we will go ahead and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind regards,
    Zafer

    Thread Starter irastr

    (@irastr)

    If anyone will have the same problem: we found the solution in a completely different place. Here – on a WPML support page the problem was explained and after using the given workaround we were able to get rid of the problem:

    https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

    In certain cases, the .htacess may get overwritten with the language folder. However, this issue is not caused by WPML.

    The problem actually comes from certain third-party plugins calling flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess. However, in some cases, this happens so often, sometimes even on every page request, that it’s called while browsing the front-end in another language.

    When this happens, WPML goes ahead and adds the language folder to home_url as usual. This, however, results with an incorrect RewriteBase in .htaccess and ends up breaking the front-end.

    • This reply was modified 1 year, 1 month ago by irastr.
    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @irastr,

    Thanks for sharing the solution. Glad to hear you have managed to get it working.

    Best Regards,

    Nithin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Internal Server Error with Defender 4 and Geo Controller’ is closed to new replies.