Notice: Undefined property: stdClass::$crid in js_injector_init()

Created on 22 October 2012, over 12 years ago
Updated 26 November 2024, 4 months ago

After packing a JS Injector Rule into a feature, I started getting these errors on the staging site:

Notice: Undefined property: stdClass::$crid in js_injector_init() (line 146 of /home/clients/websites/w_rtech/public_html/rtech/sites/all/modules/contrib/js_injector/js_injector.module).
Notice: Undefined property: stdClass::$crid in js_injector_init() (line 159 of /home/clients/websites/w_rtech/public_html/rtech/sites/all/modules/contrib/js_injector/js_injector.module).

It doesn't seem to be a problem as everything is still working but the notices are annoying and can be avoided.

One thing I did notice was that the {js_injector_rules} table was empty, so I suspect the $crid may not exist for js injector rules that are stored in a feature.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lee20

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024