• Resolved tjldesigns

    (@tjldesigns)


    Hello,

    I wonder if you can help, basically this morning this plugin sadly took one of our websites down, the error it hit was:

    E_ERROR was caused in line 72 of the file /home/web/public_html/wp-content/plugins/really-simple-ssl/rlrsssl-really-simple-ssl.php. Error message: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 18330720936 bytes)

    We reported this to our hosting company and they confirmed: It tried to allocate around 17gb or memory which is excessively high. Your limit is just 1GB which should be more than enough.

    On investigation it seems to crash in a rather general function from what we can see: self::$instance->front_end = new rsssl_front_end();

    For now we have left the plugin off, but would really appreciate any help in terms of understanding any specific cause for this and how we can avoid it moving forward.

    Many thanks for your help,
    Tonya

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mark

    (@markwolters)

    Hi @tjldesigns,

    it’s hard to say what’s causing this issue exactly, as there’s nothing in the rsssl_front_end class that could cause so much memory usage. It’s likely that something else is using a lot of memory, but the warning is only triggered when the rsssl_front_end class is loaded. To further debug this issue, you can take the following steps:

    1. Enable debugging in WordPress by adding the following lines to your wp-config.php file:

      define(‘WP_DEBUG’, true);
      define(‘WP_DEBUG_LOG’, true);

      This will write any additional errors to a debug.log file in your /wp-content folder.
    2. Use a plugin like Query Monitor which provides detailed insights into memory usage, which can give more information as to what function is causing this specific issue on your site.

    If you can check provide us with a debug.log when the issue occurs again and check what happens in Query Monitor when using the plugin we can help you identify the issue.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @tjldesigns as you can see here:
    https://plugintests.com/plugins/wporg/really-simple-ssl/latest

    The plugin takes about 100kb in memory.

    That the error comes from Really Simple SSL doesn’t mean it is caused by it. It just throws this error when the memory limit is reached. The cause can be somewhere else entirely.

    If you actually see a big memory decrease with the plugin disabled (a 100kb decrease could also lower the memory usage to just below the threshold), it might be a plugin conflict with another plugin. We’d need to know what plugin that is to be able to investigate.

    You can check this by disabling all your plugins, switch to a default theme, then activate Really Simple SSL, then activate the other plugins one by one until the issue returns.

    If you know which plugin or theme is causing the issue we can investigate further.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Memory error causing error 500’ is closed to new replies.