• Resolved cool_recep

    (@cool_recep)


    Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/technopa/public_html/wp-content/plugins/wpseo-news/classes/meta-box.php on line 59

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /home/technopa/public_html/wp-includes/class-wpdb.php on line 2153

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cool_recep

    (@cool_recep)

    Oh, BTW, dark mode button does not work!

    Hi There,

    We have visited your reference website and getting many issues with the console. Please fix the remarkable issues and also the mentionable plugin. Hopefully, the dark mode switch will work as well.

    After resolving all others, let us know if the problem still exists.

    Thanks

    Thread Starter cool_recep

    (@cool_recep)

    What are you talking about? I don’t code the plugins. And wpseo-news is up to date.

    FlexOrder

    (@ordersyncplugin)

    Hi,
    The deprecated FILTER_SANITIZE_STRING constant is clearly at plugin WP SEO News in /home/technopa/public_html/wp-content/plugins/wpseo-news/classes/meta-box.php on line 59. So, you may either disable it or contact the plugin support.

    And the memory issue indicates that your PHP script has exhausted the allowed memory size limit. This can happen when your script requires more memory than is allocated by default or when there is a memory leak in your code.

    To solve this issue, you can try the following steps:

    1. Increase the memory limit: You can try increasing the memory limit by adding the following code to your wp-config.php file: define( 'WP_MEMORY_LIMIT', '256M' ); This will increase the memory limit to 256MB. If this doesn’t work, you can try increasing it further.
    2. Check for memory leaks: If increasing the memory limit doesn’t solve the issue, you should check your code for memory leaks. Look for any loops or recursive functions that might be causing the issue.
    3. Optimize your code: You can also optimize your code to reduce memory usage. Use efficient data structures, avoid unnecessary queries or data processing, and make sure to close any database connections when you are finished with them.
    4. Use a caching plugin: You can also use a caching plugin to improve your website’s performance and reduce memory usage.

    If none of these solutions work, you might need to consider upgrading your hosting plan or consulting with a developer for further assistance.

    Hi,

    We hope this message finds you well. We wanted to take a moment to express my gratitude for your patience and understanding in this matter. We understand that the issue at hand may not be related to our plugins, and We appreciate your willingness to verify the error and pinpoint the source like /classes/meta-box.php on line 59 of wpseo-news plugin.

    We wanted to let you know that we take coding standards very seriously and have taken great care to ensure that our code is up-to-date and free of any deprecated functions. We have diligently sanitized every string using the most recent functions offered by WordPress.

    Thank you again for your time and assistance.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Constant FILTER_SANITIZE_STRING is deprecated’ is closed to new replies.