Closed (cannot reproduce)
Project:
Minify
Version:
7.x-1.3
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2016 at 09:41 UTC
Updated:
5 May 2017 at 04:58 UTC
Jump to comment: Most recent
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
Comment #2
atul.bhosale commentedFeel free to re-open this bug, if anyone experiencing same issue.