• Resolved elpy17

    (@elpy17)


    Hi!

    I’ve updated php from 7.0 to 7.3.0-2 and start getting PHP Warnings in php log file.

    Warnings:

    2019-01-10 16:15:00 PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 1385
    2019-01-10 16:15:00 message repeated 3 times: [ PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 1385]
    2019-01-10 16:15:00 PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 690
    2019-01-10 16:15:00 PHP Warning: Invalid argument supplied for foreach() in /var/www/***/postie/lib/simple_html_dom.php on line 697
    2019-01-10 16:15:00 PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 690
    2019-01-10 16:15:00 PHP Warning: Invalid argument supplied for foreach() in /var/www/***/postie/lib/simple_html_dom.php on line 697
    2019-01-10 16:15:00 PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 1385
    2019-01-10 16:15:00 message repeated 3 times: [ PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 1385]
    2019-01-10 16:15:00 PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 690
    2019-01-10 16:15:00 PHP Warning: Invalid argument supplied for foreach() in /var/www/***/postie/lib/simple_html_dom.php on line 697
    2019-01-10 16:15:00 PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /var/www/***/postie/lib/simple_html_dom.php on line 690
    2019-01-10 16:15:00 PHP Warning: Invalid argument supplied for foreach() in /var/www/***/postie/lib/simple_html_dom.php on line 697

    Everything works fine, but I’ve noticed that Postie inserts all email content including: <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”&gt; <html><body>.

    Before php updating, post content looked like:
    <div>…</div>

    After php updating, post content looks like:
    <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”&gt; <html><body><div>…</div></html></body>

    It’s not critical but html of my homepage looks weird) with many <html> in <html> tags)

    Thanks in advance for your help.

    • This topic was modified 7 years, 5 months ago by elpy17.
Viewing 1 replies (of 1 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the bug report. The 2 issues are actually related.

    I’ve fixed the issue in the next version of Postie which I will release later today.

Viewing 1 replies (of 1 total)

The topic ‘bugs with PHP v.7.3.0-2’ is closed to new replies.