Fatal error: using_index_permalinks
-
Hello,
When I activate the plugin and run a script with:
header(‘Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0’);
$dir = dirname(__FILE__);
define(‘WP_USE_THEMES’, false);
$root = ”;
$dir = str_replace(‘\\’,’/’,$dir);
$dir = explode(‘/’,$dir);
$count = 0;
foreach($dir as $piece)
{
$count++;
if($count < count($dir)-2)
{
$root .= ‘/’.$piece;
}
}
$root = substr($root,1).’/wp-load.php’;
require($root);I get the following error:
Fatal error: Call to a member function using_index_permalinks() on null in /www/ftpstorage2/webton402/webton402/wp-includes/rest-api.php on line 313
Could you please fix this?
WP version: 4.9.7
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Fatal error: using_index_permalinks’ is closed to new replies.