22 $rewriteTester = new \ElggRewriteTester();
24 if (!$rewriteTester->runRewriteTest(
$url)) {
27 if (!$rewriteTester->runLocalhostAccessTest()) {
29 $msg =
elgg_echo(
"installation:htaccess:localhost:connectionfailed");
30 if ($msg ===
"installation:htaccess:localhost:connectionfailed") {
31 $msg =
"Elgg cannot connect to itself to test rewrite rules properly. Check " 32 .
"that curl is working and there are no IP restrictions preventing " 33 .
"localhost connections.";
40 $msg =
elgg_echo(
"installation:htaccess:needs_upgrade");
41 if ($msg ===
"installation:htaccess:needs_upgrade") {
42 $msg =
"You must update your .htaccess file (use install/config/htaccess.dist as a guide).";
$request
Page handler for autocomplete endpoint.
Ensure that mod_rewrite is enabled and working.
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
__invoke(Request $request)
Execute a rewrite test.
const ELGG_HTTP_INTERNAL_SERVER_ERROR