• Resolved ljmac

    (@ljmac)


    I am seeing this fatal error in my logs, even though I am not seeing any actual problems on my site:

    Got error ‘PHP message: PHP Fatal error: Call to undefined method wpdb::esc_like() in [URI removed]wp-content/plugins/analytics-insights/tools/tools.php on line 188\n’

    Once again, I am on WordPress 3.7.41 and PHP 5.6.40.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alin Marcu

    (@deconf)

    Hi,

    It seems the function was introduced on 4.x version. There’s a deprecated function which can be used instead.

    I will fix it on next release, I will let you know when a bugfix it’s available.

    Thread Starter ljmac

    (@ljmac)

    Could this be related to why I had to use the developer mode to set up the plugin?

    I assume you will set this up so that only older WordPress versions use the deprecated function? It would obviously be better for the future of your plugin to stick with the new function for newer WordPress versions, especially as it doesn’t appear to cause any actual problems apart from the errors in the logs.

    Plugin Author Alin Marcu

    (@deconf)

    It would obviously be better for the future of your plugin to stick with the new function for newer

    No worries, I’m using conditional statements, if the version is older the plugin uses the older function and if is newer it uses the latest method.

    And for the other question, It could be generated by a deprecated function and you aren’t seeing any errors because like_esc is only used in background by the cron to purge the expired cache.

    Plugin Author Alin Marcu

    (@deconf)

    It should be fix on v6.3.3.

    I’ve also tested it on a WP 3.7 and PHP 5.6 environment, and the authorization works correctly without using a custom API Project, you should check it. If there are errors let me know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Another Fatal Error’ is closed to new replies.