• Due to a conflict with wp-syntax plugin I was getting warnings like

    Notice: Constant GESHI_VERSION already defined in /path/to/wp-content/plugins/mysql-profiler/lib/geshi/geshi.php on line 44
    Notice: Constant GESHI_LANG_ROOT already defined in /path/to/wp-content/plugins/mysql-profiler/lib/geshi/geshi.php on line 53
    Notice: Constant GESHI_NO_LINE_NUMBERS already defined in /path/to/wp-content/plugins/mysql-profiler/lib/geshi/geshi.php on line 58
    etc

    In mysql-profiler/lib/mysql_profiler.php init() function I changed

    if ($this->highlight_syntax) {

    to

    if ($this->highlight_syntax && !defined('GESHI_VERSION')) {

    Once that was done everything was good!

    https://www.ads-software.com/extend/plugins/mysql-profiler/

  • The topic ‘[PATCH] Already defined error’ is closed to new replies.