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_Network_Config.core.php 1 location
|
@@ 156-165 (lines=10) @@
|
| 153 |
|
|
| 154 |
|
do_action('AHEE__EE_Network_Config__update_config__end', $this, $saved); |
| 155 |
|
// if config remains the same or was updated successfully |
| 156 |
|
if ($saved) { |
| 157 |
|
if ($add_success) { |
| 158 |
|
$msg = is_multisite() ? __( |
| 159 |
|
'The Event Espresso Network Configuration Settings have been successfully updated.', |
| 160 |
|
'event_espresso' |
| 161 |
|
) : __('Extra Event Espresso Configuration settings were successfully updated.', 'event_espresso'); |
| 162 |
|
EE_Error::add_success($msg); |
| 163 |
|
} |
| 164 |
|
return true; |
| 165 |
|
} |
| 166 |
|
if ($add_error) { |
| 167 |
|
$msg = is_multisite() ? __( |
| 168 |
|
'The Event Espresso Network Configuration Settings were not updated.', |
core/EE_Module_Request_Router.core.php 1 location
|
@@ 165-169 (lines=5) @@
|
| 162 |
|
// grab method |
| 163 |
|
$method = $module_method[1]; |
| 164 |
|
// verify that class exists |
| 165 |
|
if (! class_exists($module_name)) { |
| 166 |
|
$msg = sprintf(__('The requested %s class could not be found.', 'event_espresso'), $module_name); |
| 167 |
|
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
| 168 |
|
return false; |
| 169 |
|
} |
| 170 |
|
// verify that method exists |
| 171 |
|
if (! method_exists($module_name, $method)) { |
| 172 |
|
$msg = sprintf( |
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 ) |
core/helpers/EEH_File.helper.php 1 location
|
@@ 91-102 (lines=12) @@
|
| 88 |
|
$wp_filesystem_class = $filesystem_class; |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
if (! $valid || ! file_exists($wp_filesystem_file)) { |
| 92 |
|
EE_Error::add_error( |
| 93 |
|
sprintf( |
| 94 |
|
__( |
| 95 |
|
'The supplied WP Filesystem filepath "%1$s" is either missing or invalid.', |
| 96 |
|
'event_espresso' |
| 97 |
|
), |
| 98 |
|
$wp_filesystem_file |
| 99 |
|
), |
| 100 |
|
__FILE__, |
| 101 |
|
__FUNCTION__, |
| 102 |
|
__LINE__ |
| 103 |
|
); |
| 104 |
|
} |
| 105 |
|
// check constants defined, just like in the wp-admin/includes/file.php WP_Filesystem() |
core/helpers/EEH_Sideloader.helper.php 1 location
|
@@ 75-92 (lines=18) @@
|
| 72 |
|
|
| 73 |
|
foreach ($props as $property => $val) { |
| 74 |
|
$setter = 'set' . $property; |
| 75 |
|
if (method_exists($this, $setter)) { |
| 76 |
|
$this->$setter($val); |
| 77 |
|
} else { |
| 78 |
|
// No setter found. |
| 79 |
|
EE_Error::add_error( |
| 80 |
|
sprintf( |
| 81 |
|
esc_html__( |
| 82 |
|
'EEH_Sideloader::%1$s not found. There is no setter for the %2$s property.', |
| 83 |
|
'event_espresso' |
| 84 |
|
), |
| 85 |
|
$setter, |
| 86 |
|
$property |
| 87 |
|
), |
| 88 |
|
__FILE__, |
| 89 |
|
__FUNCTION__, |
| 90 |
|
__LINE__ |
| 91 |
|
); |
| 92 |
|
} |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
// make sure we include the required wp file for needed functions |