• Resolved SteffanCline

    (@steffancline)


    I posted this to their site with no response so I figured I’d try here.

    In running the bridge with PHP 7.3 all I get is
    <div class=”main-section “>
    <div class=”container”>
    <div id=”bridge”></div><!–end bridge–>
    </div>
    </div>
    in the body of the theme. The log file is riddled with the same errors over and over.
    mod_fcgid: stderr: PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in xxxxxxxx/wp-content/plugins/whmcs-bridge/includes/simple_html_dom.php on line 722, referer: https://xxxxxxxxx.com/

    The line of code is:
    if (!preg_match(“/^[\w-:]+$/”, $tag)) {

    mod_fcgid: stderr: PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in xxxxxxxxxxx/wp-content/plugins/whmcs-bridge/includes/simple_html_dom.php on line 387, referer: https://xxxxxxx.com/

    The lines of code for this one is:
    $pattern = “/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-]+)(?:([!*^$]?=)[\”‘]?(.*?)[\”‘]?)?\])?([\/, ]+)/is”;
    preg_match_all($pattern, trim($selector_string).’ ‘, $matches, PREG_SET_ORDER);

    I’m not a guru enough to resolve this one. Anyone?

Viewing 1 replies (of 1 total)
  • Thread Starter SteffanCline

    (@steffancline)

    The authors seem to be unresponsive. Here is the fix.

    if (!preg_match(“/^[\w\-:]+$/”, $tag)) {

    and

    $pattern = “/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-]+)(?:([!*^$]?=)[\”‘]?(.*?)[\”‘]?)?\])?([\/, ]+)/is”;

Viewing 1 replies (of 1 total)
  • The topic ‘WHMCS-Bridge and PHP 7.3’ is closed to new replies.