I encountered a lot of watchdog-entries like this:

Notice: Constant REPLACEMENT_HASH already defined in minify_process_html() (regel 122 van sites/all/modules/minify/minify.module).

All of these notices were preceeded by a "Page not found"-entry. These unfound pages were taxonomy-term-pages, processed by the apachesolr_term module.

The REPLACEMENT_HASH constant was defined twice, so I took a look at line 122 @ minify.module. It defined the constant without checking if it was already defined. I added a check like this:

    /* Constant used as replacement tag key in global placeholders array */
    if( ! defined('REPLACEMENT_HASH') )
    {
      define('REPLACEMENT_HASH', 'MINIFYHTML' . md5($_SERVER['REQUEST_TIME']));
    }

And now the problem is gone.

Maybe worth a patch?

Comments

Baart created an issue. See original summary.

atul.bhosale’s picture

Status: Needs review » Closed (cannot reproduce)

Feel free to re-open this bug, if anyone experiencing same issue.