• Resolved ATSMPodcast

    (@atsmpodcast)


    Once upgrading WordPress to 3.6, I get all sorts of errors…

    In the header:

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    In the site’s body where I have a slideshow to open the page:

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in https://[SITE(s&#8217;) NAME WITHHELD]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/router/class.routing_app.php on line 484

    PLEASE help!

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @behladesign: thanks for the update and letting us know what resolved that. I’ll pass that info on to our developers.

    The problem is on Nextgen plugin. File name is and path is nextgen-gallery/products/photocrati_nextgen/modules/router

    Problematic line is

    $param_regex	 = "#/((?P<id>{$id}){$param_sep})?({$param_prefix}[-_]?)?{$quoted_key}{$param_sep}(?P<value>[^/\?]+)/?#i";

    This $param_regex pattern-string part looks just so wrong there – never must be used direct injection of variables into regexp pattern. There must be used preg-quote() .
    @see https://php.net/manual/en/function.preg-quote.php

    ===================
    Before it was (Line no 484)

    if (preg_match($param_regex, $source, $matches)) {

    I did this

    if (@preg_match($param_regex, $source, $matches)) {

    Hopefully @devs will not put that as a “fix” – this is just ignoring errors in regexp pattern.

    My solution was to revert back to ver 1.9.x. Latest ver messed up WP’s routings.

    @photocrati – thanks for the help. i posted the bug to the system you suggested and this latest update has fixed my problem.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Upgraded WordPress to 3.6 – Next Gen Gallery No Longer Workds’ is closed to new replies.