admin_pages/messages/Messages_Admin_Page.core.php 1 location
|
@@ 1898-1913 (lines=16) @@
|
| 1895 |
|
$message_template_group = EEM_Message_Template_Group::instance()->get_one_by_ID( |
| 1896 |
|
$this->_req_data['message_template_group_id'] |
| 1897 |
|
); |
| 1898 |
|
if (! $message_template_group instanceof EE_Message_Template_Group) { |
| 1899 |
|
EE_Error::add_error( |
| 1900 |
|
sprintf( |
| 1901 |
|
esc_html__( |
| 1902 |
|
'Unable to change the active state because the given id "%1$d" does not match a valid "%2$s"', |
| 1903 |
|
'event_espresso' |
| 1904 |
|
), |
| 1905 |
|
$this->_req_data['message_template_group_id'], |
| 1906 |
|
'EE_Message_Template_Group' |
| 1907 |
|
), |
| 1908 |
|
__FILE__, |
| 1909 |
|
__FUNCTION__, |
| 1910 |
|
__LINE__ |
| 1911 |
|
); |
| 1912 |
|
$success = false; |
| 1913 |
|
} |
| 1914 |
|
if ($success) { |
| 1915 |
|
$success = $status === 'off' |
| 1916 |
|
? $message_template_group->deactivate_context($this->_req_data['context']) |
core/business/EE_Registration_Processor.class.php 1 location
|
@@ 708-719 (lines=12) @@
|
| 705 |
|
); |
| 706 |
|
// grab the related ticket object for this line_item |
| 707 |
|
$ticket = $line_item->ticket(); |
| 708 |
|
if (! $ticket instanceof EE_Ticket) { |
| 709 |
|
EE_Error::add_error( |
| 710 |
|
sprintf( |
| 711 |
|
esc_html__('Line item %s did not contain a valid ticket', 'event_espresso'), |
| 712 |
|
$line_item->ID() |
| 713 |
|
), |
| 714 |
|
__FILE__, |
| 715 |
|
__FUNCTION__, |
| 716 |
|
__LINE__ |
| 717 |
|
); |
| 718 |
|
return null; |
| 719 |
|
} |
| 720 |
|
$registration_service = new CreateRegistrationService(); |
| 721 |
|
// then generate a new registration from that |
| 722 |
|
return $registration_service->create( |
core/EE_Session.core.php 1 location
|
@@ 588-602 (lines=15) @@
|
| 585 |
|
return false; |
| 586 |
|
} |
| 587 |
|
foreach ($data as $key => $value) { |
| 588 |
|
if (isset($this->_default_session_vars[ $key ])) { |
| 589 |
|
EE_Error::add_error( |
| 590 |
|
sprintf( |
| 591 |
|
esc_html__( |
| 592 |
|
'Sorry! %s is a default session datum and can not be reset.', |
| 593 |
|
'event_espresso' |
| 594 |
|
), |
| 595 |
|
$key |
| 596 |
|
), |
| 597 |
|
__FILE__, |
| 598 |
|
__FUNCTION__, |
| 599 |
|
__LINE__ |
| 600 |
|
); |
| 601 |
|
return false; |
| 602 |
|
} |
| 603 |
|
$this->_session_data[ $key ] = $value; |
| 604 |
|
$this->setSaveState(); |
| 605 |
|
} |
admin_pages/transactions/Transactions_Admin_Page.core.php 1 location
|
@@ 495-504 (lines=10) @@
|
| 492 |
|
$this->_transaction->verify_abandoned_transaction_status(); |
| 493 |
|
} |
| 494 |
|
|
| 495 |
|
if (! $this->_transaction instanceof EE_Transaction) { |
| 496 |
|
$error_msg = sprintf( |
| 497 |
|
esc_html__( |
| 498 |
|
'An error occurred and the details for the transaction with the ID # %d could not be retrieved.', |
| 499 |
|
'event_espresso' |
| 500 |
|
), |
| 501 |
|
$TXN_ID |
| 502 |
|
); |
| 503 |
|
EE_Error::add_error($error_msg, __FILE__, __FUNCTION__, __LINE__); |
| 504 |
|
} |
| 505 |
|
} |
| 506 |
|
|
| 507 |
|
|
modules/single_page_checkout/EED_Single_Page_Checkout.module.php 1 location
|
@@ 1154-1165 (lines=12) @@
|
| 1151 |
|
// if returning to SPCO, then verify that primary registrant is set |
| 1152 |
|
if (! empty($this->checkout->reg_url_link)) { |
| 1153 |
|
$valid_registrant = $this->checkout->transaction->primary_registration(); |
| 1154 |
|
if (! $valid_registrant instanceof EE_Registration) { |
| 1155 |
|
EE_Error::add_error( |
| 1156 |
|
esc_html__( |
| 1157 |
|
'We\'re sorry but there appears to be an error with the "reg_url_link" or the primary registrant for this transaction. Please refresh the page and try again or contact support.', |
| 1158 |
|
'event_espresso' |
| 1159 |
|
), |
| 1160 |
|
__FILE__, |
| 1161 |
|
__FUNCTION__, |
| 1162 |
|
__LINE__ |
| 1163 |
|
); |
| 1164 |
|
return false; |
| 1165 |
|
} |
| 1166 |
|
$valid_registrant = null; |
| 1167 |
|
foreach ($this->checkout->transaction->registrations($this->checkout->reg_cache_where_params) as $registration) { |
| 1168 |
|
if ($registration instanceof EE_Registration |
modules/single_page_checkout/reg_steps/attendee_information/EE_SPCO_Reg_Step_Attendee_Information.class.php 1 location
|
@@ 984-995 (lines=12) @@
|
| 981 |
|
// grab the saved registrations from the transaction |
| 982 |
|
foreach ($registrations as $registration) { |
| 983 |
|
// verify EE_Registration object |
| 984 |
|
if (! $registration instanceof EE_Registration) { |
| 985 |
|
EE_Error::add_error( |
| 986 |
|
esc_html__( |
| 987 |
|
'An invalid Registration object was discovered when attempting to process your registration information.', |
| 988 |
|
'event_espresso' |
| 989 |
|
), |
| 990 |
|
__FILE__, |
| 991 |
|
__FUNCTION__, |
| 992 |
|
__LINE__ |
| 993 |
|
); |
| 994 |
|
return false; |
| 995 |
|
} |
| 996 |
|
/** @var string $reg_url_link */ |
| 997 |
|
$reg_url_link = $registration->reg_url_link(); |
| 998 |
|
// reg_url_link exists ? |
caffeinated/modules/recaptcha_invisible/InvisibleRecaptcha.php 1 location
|
@@ 142-159 (lines=18) @@
|
| 139 |
|
return $previous_recaptcha_response[ $grecaptcha_response ]; |
| 140 |
|
} |
| 141 |
|
// still here but no g-recaptcha-response ? - verification failed |
| 142 |
|
if (! $grecaptcha_response) { |
| 143 |
|
EE_Error::add_error( |
| 144 |
|
sprintf( |
| 145 |
|
/* translators: 1: missing parameter */ |
| 146 |
|
esc_html__( |
| 147 |
|
// @codingStandardsIgnoreStart |
| 148 |
|
'We\'re sorry but an attempt to verify the form\'s reCAPTCHA has failed. Missing "%1$s". Please try again.', |
| 149 |
|
// @codingStandardsIgnoreEnd |
| 150 |
|
'event_espresso' |
| 151 |
|
), |
| 152 |
|
'g-recaptcha-response' |
| 153 |
|
), |
| 154 |
|
__FILE__, |
| 155 |
|
__FUNCTION__, |
| 156 |
|
__LINE__ |
| 157 |
|
); |
| 158 |
|
return false; |
| 159 |
|
} |
| 160 |
|
// will update to true if everything passes |
| 161 |
|
$previous_recaptcha_response[ $grecaptcha_response ] = false; |
| 162 |
|
$response = wp_safe_remote_post( |