Support » Plugin: Credit Tracker » Conflict with "Anti-spam by CleanTalk"

  • Resolved JimJacobson

    (@jimjacobson)


    CleanTalk is another plugin that has the the initials CT. It is quite likely to have a conflict in function naming, therefore with common functions. This is exactly what happened when I tried to activate credit tracker. I got this error:
    Fatal error: Cannot redeclare ct_get_options() (previously declared in /…[path edited for post]…/wp-content/plugins/cleantalk-spam-protect/cleantalk-common.php:353) in /…[path edited for post]…/wp-content/plugins/credit-tracker/options.php on line 466

    I resolved the issue by simply renaming ct_get_all_options() to ct_get_all_options() where it is declared and in the two locations just below where it is referenced: the functions ct_get_single_option() and ct_set_single_option(). Still, it would be nice to have a more elegant solution so I don’t have to do this every time the plugin is updated.

    https://wordpress.org/plugins/credit-tracker/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with "Anti-spam by CleanTalk"’ is closed to new replies.