Hello,

I get a specific error when activating either one of the compressor modules (CSS and/or JS)

It gives me a red line on every site which says:

Notice: Use of undefined constant PHP_VERSION_ID - assumed 'PHP_VERSION_ID' in require_once() (Zeile 8 von /home/www/web100/html/sites/all/modules/advagg/advagg_js_compress/advagg_js_compress.advagg.inc).
Notice: Use of undefined constant PHP_VERSION_ID - assumed 'PHP_VERSION_ID' in advagg_js_compress_get_enabled_compressors() (Zeile 230 von /home/www/web100/html/sites/all/modules/advagg/advagg_js_compress/advagg_js_compress.advagg.inc).

Any help would be appreciated!

Thanks in advance.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

  • mikeytown2 committed 79927c4 on 7.x-2.x
    Issue #2495057 by mikeytown2: Fix for php 5.2.6 and lower.
    
mikeytown2’s picture

Status: Active » Fixed
FileSize
2.62 KB

Apply this patch, use the latest dev or use a version of php that is 5.2.7 or higher.

uubu’s picture

Status: Fixed » Active

Sorry, I updated to the new Version 7x-2xdev but did not have any success.
My Webhoster is using PHP Version 5.2.6-1+lenny16 unfortunately.

I think the error message changes a bit:

Warning: constant() [function.constant]: Couldn't find constant PHP_VERSION_ID in advagg_js_compress_get_enabled_compressors() (Line 230 of /home/www/web100/html/sites/all/modules/advagg/advagg_js_compress/advagg_js_compress.advagg.inc).

Any other ideas?

Many thanks for your fast response!

  • mikeytown2 committed 9883444 on 7.x-2.x
    Issue #2495057 by mikeytown2: Fix && in if statements.
    
mikeytown2’s picture

Status: Active » Fixed
FileSize
2.26 KB

Thanks for being on top of this bug report. Fixed a bug with a couple of the if statements. This should make it work for you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.