Notice: Trying to get property of non-object in JSMinPlus->parseTree() (line 292 of /var/www/elmsln/core/dslmcode/shared/drupal-7.x/modules/ulmus/advagg/advagg_js_compress/jsminplus.inc).
Notice: Trying to get property of non-object in JSMinPlus->parseTree() (line 751 of /var/www/elmsln/core/dslmcode/shared/drupal-7.x/modules/ulmus/advagg/advagg_js_compress/jsminplus.inc).

Happens now and then right after installing a new distribution w/ the latest dev of advagg (well from like Friday).

Weird thing is that I don;t have that plugin / sub-module enabled (the advagg_js_compress)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

btopro created an issue. See original summary.

mikeytown2’s picture

Would have been nice if you had a backtrace of the error ;)
#1158322: Add backtrace to all errors

The callback most likely comes from this function advagg_does_js_start_with_use_strict(). I need a good way to see if a JS file starts with "use strict"; so jsminplus does a great job of removing all comments making this detection easier.

Given this info any chance of creating a repeatable bug? It'd be a js file that has use strict in it but doesn't start with it.

mikeytown2’s picture

  • mikeytown2 committed cc9b181 on 7.x-2.x
    Issue #2821558 by mikeytown2: Trying to get property of non-object in...
mikeytown2’s picture

Status: Needs review » Fixed
btopro’s picture

worked!

Status: Fixed » Closed (fixed)

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