Extension talk:Auto-Anchor

From mediawiki.org
Latest comment: 11 years ago by Sledged in topic Fatal Error

Fatal Error[edit]

Upon initial installation I receive : Fatal error: Undefined class constant 'NONE' in /my_path/AutoAnchor/AutoAnchor.php on line 61

I got the same fatal error as described by the above user. After installing Extension:Auto-Anchor, I tested the example shown in the instructions:
{{#anc: Runnin' Down A Dream | 4 }}
Got this fatal error:
Fatal error: Undefined class constant 'NONE' in /(path to wiki)/extensions/AutoAnchor/AutoAnchor.php on line 61
Davydog (talk) 00:19, 5 October 2012 (UTC)Reply[reply]
Don't know when I'll be able to get to this, but find the line that reads:
$id = Sanitizer::escapeId( $id, Sanitizer::NONE );
change it to
$id = Sanitizer::escapeId( $id );
and let me know if it works. —Sledged (talk) 19:37, 18 October 2012 (UTC)Reply[reply]