• Warning: preg_replace(): Compilation failed: range out of order in character class at offset 4 in /home/xxx/public_html/wp-content/plugins/amp-toolbox/amp-toolbox.php on line 457

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same problem too.

    Salam n Hola

    Here’s an excerpt from my err.log:

    [22-Nov-2016 13:01:58 UTC] PHP Warning: preg_replace(): Compilation failed: range out of order in character class at offset 4 in /home/myacc/public_html/wp-content/plugins/amp-toolbox/amp-toolbox.php on line 457
    [22-Nov-2016 13:02:32 UTC] PHP Warning: preg_replace(): Compilation failed: range out of order in character class at offset 4 in /home/myacc/public_html/wp-content/plugins/amp-toolbox/amp-toolbox.php on line 409

    Please advise

    I just installed this and found the same issue, i see no support as per usual from its creator so i fixed it myself and will share with you, if you go into /wp-content/plugins/amp-toolbox/amp-toolbox.php and remove lines:

    $text = str_replace('[title]', preg_replace('/[^a-Z0-9-. ]/', '', $post->post_title), $text);

    from line 409 and 457

    once i did that and saved the file it takes away the error and the plugin still works just fine ?? Example: https://battlefieldinformer.com/battlefield-1-elite-classes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: preg_replace(): Compilation failed: range out of order in character cla’ is closed to new replies.