Getting the following in the error logs:

Notice: Undefined variable: shortcodes_enabled in _shortcode_process() (line 132 of /var/www/site/sites/all/modules/contrib/shortcode/shortcode.module).

Notice: Undefined index: 'shortcode here' in _shortcode_settings_form() (line 93 of /var/www/site/sites/all/modules/contrib/shortcode/shortcode.module).

2nd message can be fixed by changing line 93 of the module from:
'#default_value' => $filter->settings[$key],
to
'#default_value' => isset($filter->settings[$key]) ? $filter->settings[$key] : $defaults[$key],

Comments

pavlosdan’s picture

How about changing the if statement at line:

132 from

  if (!$shortcodes_enabled) {
    return $text;
  }

to

  if (!isset($shortcodes_enabled)) {
    return $text;
  }

?

denes.szabo’s picture

Assigned: Unassigned » denes.szabo
Status: Active » Needs review

Thx for reporting this bug.

I committed a fix for this (and tons of other notices amended). Pls, check it.

pavlosdan’s picture

Notices gone. No more errors logged by this module for me. Thanks

pavlosdan’s picture

Status: Needs review » Reviewed & tested by the community

status change

denes.szabo’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Thx,! Fixed.

denes.szabo’s picture

Issue summary: View changes

editing to make more generic