Skip to content
Snippets Groups Projects
Unverified Commit bb0ab7d5 authored by mattwire's avatar mattwire Committed by GitHub
Browse files

Merge pull request #31638 from shaneonabike/issue5610

#5610 Simplifying the session cookie message to make it more readable
parents f52f86fe 3e228c43
Branches
Tags
No related merge requests found
......@@ -858,8 +858,8 @@ class CRM_Core_Controller extends HTML_QuickForm_Controller {
}
public function invalidKeyCommon() {
$msg = ts("We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.") . '<br /><br />' . ts('Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.') . '<br /><br />' . ts('Error type: Could not find a valid session key.');
throw new CRM_Core_Exception($msg);
throw new CRM_Core_Exception(
ts("Sorry, your session has expired. Please reload the page or go back and try again."), 419, ts("Could not find a valid session key."));
}
/**
......@@ -875,7 +875,7 @@ class CRM_Core_Controller extends HTML_QuickForm_Controller {
if (!empty($url_parts['query'])) {
$redirect_url .= '?' . $url_parts['query'];
}
CRM_Core_Session::setStatus(ts('Your browser session has expired and we are unable to complete your form submission. We have returned you to the initial step so you can complete and resubmit the form. If you experience continued difficulties, please contact us for assistance.'));
CRM_Core_Session::setStatus(ts('Sorry, your session has expired. Please try again.'));
return CRM_Utils_System::redirect($redirect_url);
}
}
......
......@@ -572,8 +572,7 @@ class CRM_Core_Page {
}
public function invalidKey() {
$msg = ts("We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.") . '<br /><br />' . ts('Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.') . '<br /><br />' . ts('Error type: Could not find a valid session key.');
throw new CRM_Core_Exception($msg);
throw new CRM_Core_Exception(ts("Sorry, your session has expired. Please reload the page or go back and try again."), 419, ts("Could not find a valid session key."));
}
}
......@@ -33,7 +33,6 @@
</style>
{/if}
<div class="messages status no-popup"> <i class="crm-i fa-exclamation-triangle crm-i-red" aria-hidden="true"></i>
<span class="status-fatal">{ts}Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.{/ts}</span>
<div class="crm-section crm-error-message">{$message|escape}</div>
{if !empty($error.message) && $message != $error.message}
<hr style="solid 1px" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment