/home/techb158/l2hypotheques.com/wp-content/plugins/really-simple-ssl/settings/src/utils
NameSizeModeActions
Flag/-0755rm
AddUrlRef.js3100644editdlrm
api.js54340644editdlrm
autoCompleteTheme.js11810644editdlrm
Error.js25640644editdlrm
ErrorBoundary.js12580644editdlrm
formatting.js18360644editdlrm
getAnchor.js14060644editdlrm
hoverTooltip.js17310644editdlrm
hoverTooltip_bu.js29110644editdlrm
Hyperlink.js9240644editdlrm
Icon.js370640644editdlrm
lib.js3830644editdlrm
ReactConditions.js66220644editdlrm
sleeper.js2640644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/really-simple-ssl/settings/src/utils/Error.js (2564B)
import {__} from "@wordpress/i18n"; import Hyperlink from "./Hyperlink"; const Error = (props) => { if (props.error) { console.log("errors detected during the loading of the settings page"); console.log(props.error); } let description = false; let url = 'https://really-simple-ssl.com/instructions/how-to-debug-a-blank-settings-page-in-really-simple-ssl/'; let generic_rest_blocked_message = __("Please check if security settings on the server or a plugin is blocking the requests from Really Simple Security.", "really-simple-ssl"); let message = false; if (props.error) { message = props.error.message; if ( typeof message !== 'string' ) { message = JSON.stringify(message); } if ( props.error.code==='rest_no_route') { description = __("The Really Simple Security Rest API is disabled.", "really-simple-ssl")+" "+generic_rest_blocked_message } else if ( props.error.data.status === '404') { description = __("The Really Simple Security Rest API returned a not found.", "really-simple-ssl")+" "+generic_rest_blocked_message; } else if ( props.error.data.status === '403') { description = __("The Really Simple Security Rest API returned a 403 forbidden error.", "really-simple-ssl")+" "+generic_rest_blocked_message; } if (message.length>100){ message = message.substring(0, 100)+ '...'; } } return ( <> {props.error &&

{__("A problem was detected during the loading of the settings", "really-simple-ssl")}

{description &&

{description}

}

{__("The request returned the following errors:", "really-simple-ssl")}

    {props.error.code &&
  • {__("Response code:", "really-simple-ssl")} {props.error.code}
  • } {props.error.data.status &&
  • {__("Status code:", "really-simple-ssl")} {props.error.data.status}
  • } {message &&
  • {__("Server response:", "really-simple-ssl")} {message}
  • }
} ) } export default Error