Title: Compilation failed
Last modified: August 3, 2019

---

# Compilation failed

 *  Resolved [alexandrugabrieliacob](https://wordpress.org/support/users/alexandrugabrieliacob/)
 * (@alexandrugabrieliacob)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/compilation-failed-4/)
 * Hello… again,
 * My error_log files keeps updating with this hundreds lines of this kind:
    [03-
   Aug-2019 17:36:05 UTC] PHP Warning: preg_match(): Compilation failed: invalid
   range in character class at offset 4 in …/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/simple_html_dom/simplehtmldom/simple_html_dom.php on line 1384
 * ..and after, these lines:
    [03-Aug-2019 17:46:01 UTC] PHP Warning: preg_match_all():
   Compilation failed: invalid range in character class at offset 4 in …/plugins/
   nextgen-gallery/products/photocrati_nextgen/modules/simple_html_dom/simplehtmldom/
   simple_html_dom.php on line 686 [03-Aug-2019 17:46:01 UTC] PHP Warning: Invalid
   argument supplied for foreach() in …/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/simple_html_dom/simplehtmldom/simple_html_dom.php on line 693 [03-Aug-
   2019 17:46:01 UTC] PHP Warning: preg_match_all(): Compilation failed: invalid
   range in character class at offset 4 in …/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/simple_html_dom/simplehtmldom/simple_html_dom.php on line 686 [03-Aug-
   2019 17:46:01 UTC] PHP Warning: Invalid argument supplied for foreach() in …/
   plugins/nextgen-gallery/products/photocrati_nextgen/modules/simple_html_dom/simplehtmldom/
   simple_html_dom.php on line 693
 * I’ve deactivated all plugins, and those errors don’t stop until I don’t deactivate
   your plugin.
    My Server settings are:
 * Arhitectură server Linux 3.10.0-714.10.2.lve1.4.74.el7.x86_64 x86_64
    Server 
   web LiteSpeed Versiune PHP 7.3.7 (Suportă valori de 64 de biți) PHP SAPI litespeed
   Număr maxim de variabile de intrare PHP 2500 Limită de timp PHP 14400 Limită 
   de memorie PHP 256M Timp de intrare maxim 600 Dimensiune maximă fișier de încărcat
   32M Dimensiune maximă articol PHP 32M Versiune cURL 7.62.0 OpenSSL/1.0.2k Este
   SUHOSIN instalat Nu Este disponibilă biblioteca Imagick Da
 * Thanks.
    Waiting for an answer. Alex.I

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/compilation-failed-4/#post-11805706)
 * Hello [@alexandrugabrieliacob](https://wordpress.org/support/users/alexandrugabrieliacob/),
   we have a similar report back in January.
 * The developer let us know that the message is visible with both PHP 5 and seven
   depending on how it was compiled.
 * So, in this particular case, my recommendation is to check if NextGen Gallery
   is updated. If the problem persists, try to remove and re-install our plugin.
 * Please, keep us posted, if you keep having troubles we might need to report this
   back to the developers.
 *  Thread Starter [alexandrugabrieliacob](https://wordpress.org/support/users/alexandrugabrieliacob/)
 * (@alexandrugabrieliacob)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/compilation-failed-4/#post-11805755)
 * Yeah…. same solutions everytime …”deactivate all plugins, try reinstalling nextgen”…
   
   I’ve fixed today for my php 7.3.7 version:
 * simple_html_dom.php:#1384
 * ..the regex for preg_match should like like this “/^[\w\-:]+$/” not “/^[\w-:]
   +$/”
 * Thank you for your support.
    Regards.
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/compilation-failed-4/#post-11810622)
 * Hello [@alexandrugabrieliacob](https://wordpress.org/support/users/alexandrugabrieliacob/)
 * Please, bear with us, we need to follow the steps carefully.
    If you have some
   time, we would love to have a second look.
 * We may need to deactivate plugins and switch the theme while troubleshooting 
   temporarily. Would you feel OK with that?.
    If so, please report this issue as
   a bug using this form: [https://www.imagely.com/report-bug/](https://www.imagely.com/report-bug/).
   Be as specific as possible and let them know Gaby referred you.
 * Note: do not forget to include this forum’s link.
    Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Compilation failed’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/compilation-failed-4/#post-11810622)
 * Status: resolved