Hi, in php 7.3 I get the error message:

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 i simple_html_dom->read_tag() (linje 1364 av /var/www/html/web/sites/default/libraries/simplehtmldom/simple_html_dom.php).

It's a known issue with changes in the regex parser in php, see for instance https://github.com/sunra/php-simple-html-dom-parser/issues/64

Downgrading to php 7.2 will solve it.

Comments

vegardjo created an issue. See original summary.

vegardjo’s picture

Issue summary: View changes
vegardjo’s picture

StatusFileSize
new778 bytes

I updated the library to 1.7 manually, and site works on php 7.3 again. Here's a patch I believe should work, however I have not tested it with a fresh install

vegardjo’s picture

Status: Active » Needs review
chalk’s picture

I didn't try the .make file but the upgrade to the 1.7 version resolves the issue for me too. My case is migration from PHP 7.2 (where everything was fine) to PHP 7.4. Thank you, @vegardjo!

tormi’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Needs review » Needs work

Patch #3 has the wrong path: web/sites/default/modules/contrib/simplehtmldom/simplehtmldom.make.

tormi’s picture

Status: Needs work » Needs review
StatusFileSize
new593 bytes

Updated patch.

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.