WordPress.org

Forums

MySQL Profiler
[PATCH] Already defined error (1 post)

  1. flynsarmy
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/mysql-profiler/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MySQL Profiler
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.