Plugin

Developer
Supported

Router

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Isaac Raway

     

You must be logged in to post.

[Resolved] PHP warning only on live site

General (Resolved)

T2theC
T2theC

Hi ya,

I have just pushed a site live. Everything works well locally. I have just pushed it live and am getting an error - on every page Router is working its magic on:

Severity: Warning

Message: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 11

Filename: router/mod.router.php

Line Number: 78

Any ideas what might be causing this?

Lines 77, 78,79:

#var_dump($pattern);
if(preg_match(”#”.$pattern.”#”, $curr_uri, $matches) > 0)
{


Cheers

EDIT: Joy of joys! Sorry Issac. I found the issue on this. On my testing site, everything was OK. Basically there was an issue in my routes.ini file - Schoolboy error. I had missed a P out. I had (?<rotue>.+) instead of (?P<rotue>.+)

MetaSushi
# 1
Developer
MetaSushi

Glad you were able to get your site deployed!