Undefined index: opts in ..\salesforce.php on line 280
-
When activating this plugin on wordpress 4.3.1 I got an error that is breaking the page by displaying the message “Notice: Undefined index: opts in ..\wp-content\plugins\salesforce-wordpress-to-lead\salesforce.php on line 280” on whichever page I put it on. I checked in the file and it points me to this bit of code
if (!empty($input['label'])) { $content .= "\t".'<label class="w2llabel '.$required.' '.$error.$input['type'].($input['type'] == 'checkbox' ? ' w2llabel-checkbox-label' : '').'" for="sf_'.$id.'">'.( $input['opts'] == 'html' && $input['type'] == 'checkbox' ? stripslashes($input['label']) : esc_html(stripslashes($input['label']))); if ( ! in_array($input['type'], array('checkbox', 'html') ) && ! salesforce_get_option('donotautoaddcolontolabels', $form_id, $options ) ) { $content .= ':'; } }
Trying to remove these error displays. Also noticed once i turned on the plugin I began getting the error “Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0!” but was able to turn it off with this bit of code
add_filter('deprecated_constructor_trigger_error', '__return_false');
Trying to use this plugin, please tell me how to resolve the errors showing on top of the screen. Thanks
https://www.ads-software.com/plugins/salesforce-wordpress-to-lead/
- The topic ‘Undefined index: opts in ..\salesforce.php on line 280’ is closed to new replies.