core/libraries/messages/EE_Message_To_Generate.php 1 location
|
@@ 296-311 (lines=16) @@
|
293 |
|
public static function verify_and_retrieve_class_name_for_data_handler_reference($data_handler_reference) |
294 |
|
{ |
295 |
|
$class_name = 'EE_Messages_' . $data_handler_reference . '_incoming_data'; |
296 |
|
if (! class_exists($class_name)) { |
297 |
|
EE_Error::add_error( |
298 |
|
sprintf( |
299 |
|
__( |
300 |
|
'The included data handler reference (%s) does not match any valid, accessible, "EE_Messages_incoming_data" classes. Looking for %s.', |
301 |
|
'event_espresso' |
302 |
|
), |
303 |
|
$data_handler_reference, |
304 |
|
$class_name |
305 |
|
), |
306 |
|
__FILE__, |
307 |
|
__FUNCTION__, |
308 |
|
__LINE__ |
309 |
|
); |
310 |
|
$class_name = ''; // clear out class_name so caller knows this isn't valid. |
311 |
|
} |
312 |
|
return $class_name; |
313 |
|
} |
314 |
|
} |
core/EE_Config.core.php 1 location
|
@@ 1094-1098 (lines=5) @@
|
1091 |
|
// load the widget class file |
1092 |
|
require_once($widget_path . '/' . $widget_class . $widget_ext); |
1093 |
|
// verify that class exists |
1094 |
|
if (! class_exists($widget_class)) { |
1095 |
|
$msg = sprintf(__('The requested %s widget class does not exist.', 'event_espresso'), $widget_class); |
1096 |
|
EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__); |
1097 |
|
return; |
1098 |
|
} |
1099 |
|
register_widget($widget_class); |
1100 |
|
// add to array of registered widgets |
1101 |
|
EE_Registry::instance()->widgets->{$widget_class} = $widget_path . '/' . $widget_class . $widget_ext; |
modules/single_page_checkout/reg_steps/attendee_information/EE_SPCO_Reg_Step_Attendee_Information.class.php 1 location
|
@@ 1097-1118 (lines=22) @@
|
1094 |
|
$input_value = $primary_registrant[ $form_input ]; |
1095 |
|
} |
1096 |
|
// now attempt to save the input data |
1097 |
|
if (! $this->_save_registration_form_input( |
1098 |
|
$registration, |
1099 |
|
$form_input, |
1100 |
|
$input_value |
1101 |
|
) |
1102 |
|
) { |
1103 |
|
EE_Error::add_error( |
1104 |
|
sprintf( |
1105 |
|
esc_html_x( |
1106 |
|
'Unable to save registration form data for the form input: "%1$s" with the submitted value: "%2$s"', |
1107 |
|
'Unable to save registration form data for the form input: "form input name" with the submitted value: "form input value"', |
1108 |
|
'event_espresso' |
1109 |
|
), |
1110 |
|
$form_input, |
1111 |
|
$input_value |
1112 |
|
), |
1113 |
|
__FILE__, |
1114 |
|
__FUNCTION__, |
1115 |
|
__LINE__ |
1116 |
|
); |
1117 |
|
return false; |
1118 |
|
} |
1119 |
|
} |
1120 |
|
} |
1121 |
|
} // end of foreach ( $valid_data[ $reg_url_link ] as $form_section => $form_inputs ) |
admin_pages/messages/Messages_Admin_Page.core.php 1 location
|
@@ 2889-2902 (lines=14) @@
|
2886 |
|
// default setup for it. |
2887 |
|
// @link https://events.codebasehq.com/projects/event-espresso/tickets/9465 |
2888 |
|
$updated = $MTP->insert($message_template_fields); |
2889 |
|
if (! $updated || is_wp_error($updated)) { |
2890 |
|
EE_Error::add_error( |
2891 |
|
sprintf( |
2892 |
|
esc_html__('%s field could not be updated.', 'event_espresso'), |
2893 |
|
$template_field |
2894 |
|
), |
2895 |
|
__FILE__, |
2896 |
|
__FUNCTION__, |
2897 |
|
__LINE__ |
2898 |
|
); |
2899 |
|
$success = 0; |
2900 |
|
} else { |
2901 |
|
$success = 1; |
2902 |
|
} |
2903 |
|
} |
2904 |
|
} |
2905 |
|
$action_desc = 'updated'; |
core/helpers/EEH_Sideloader.helper.php 1 location
|
@@ 74-91 (lines=18) @@
|
71 |
|
|
72 |
|
foreach ($props as $property => $val) { |
73 |
|
$setter = 'set' . $property; |
74 |
|
if (method_exists($this, $setter)) { |
75 |
|
$this->$setter($val); |
76 |
|
} else { |
77 |
|
// No setter found. |
78 |
|
EE_Error::add_error( |
79 |
|
sprintf( |
80 |
|
esc_html__( |
81 |
|
'EEH_Sideloader::%1$s not found. There is no setter for the %2$s property.', |
82 |
|
'event_espresso' |
83 |
|
), |
84 |
|
$setter, |
85 |
|
$property |
86 |
|
), |
87 |
|
__FILE__, |
88 |
|
__FUNCTION__, |
89 |
|
__LINE__ |
90 |
|
); |
91 |
|
} |
92 |
|
} |
93 |
|
|
94 |
|
// make sure we include the required wp file for needed functions |
core/helpers/EEH_Activation.helper.php 1 location
|
@@ 564-570 (lines=7) @@
|
561 |
|
return $critical_page; |
562 |
|
} |
563 |
|
// get newly created post's details |
564 |
|
if (! $critical_page['post'] = get_post($post_id)) { |
565 |
|
$msg = sprintf( |
566 |
|
__('The Event Espresso critical page entitled "%s" could not be retrieved.', 'event_espresso'), |
567 |
|
$critical_page['name'] |
568 |
|
); |
569 |
|
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
570 |
|
} |
571 |
|
|
572 |
|
return $critical_page; |
573 |
|
} |