Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

V8 & permalinks error

Enabled permalinks on 11 sites now, but number 12 and 13 won't work. I find this in my error log.


CodeDownload  
Error:    preg_replace(): Compilation failed: range out of order in character class at offset 4002    Line:    91
File:    PHPFusion/Rewrite/Permalinks.inc    On Page:    /index.php
User-Level:    103



CodeDownload  
ource code (Line: 81 - 101)
81     }
82    
83     /**
84     * Do full replacement of the HTML output
85     */
86     private function replace_output() {
87     // Pattern translation
88     if (!empty($this->regex_statements['pattern'])) {
89     foreach ($this->regex_statements['pattern'] as $handler => $rules) {
90     foreach ($rules as $search => $replace) {
91     $this->output = preg_replace($search, $replace, $this->output);
92     }
93     }
94     //print_p($this->output);
95     }
96    
97     // Alias translation
98     if (!empty($this->regex_statements['alias'])) {
99     foreach ($this->regex_statements['alias'] as $handler => $rules) {
100     $_patterns = flatten_array($rules);
101




Did some searching myself but can't find the problem. Probably an unescaped character that's messing things up.
[google]https://www.google.com/search?q=preg_replace%28%29%3A+Compilation+failed%3A+range+out+of+order+in+character+class+at+offset&ie=utf-8&oe=utf-8[/google]

Where are the patterns set? In includes\classes\PHPFusion\Rewrite\Permalinks.inc?
What does "Debug SEO Toggle to start SEO Engine Debugger" do? Where can I find output of this debugger?
Have you tried to enable Normalize?, it strips special chars that can fail in urls
The debug is not popping it´s overlay in 8.0.22, i´ll make a report on that one.
Yes normalize is enabled.
Where should the overlay occur?
After enabling SEO Engine/Permalinks the site goes blank! Except for administration.
Is there a way to figure out what character is at offset 4002?

Quote

range out of order in character class at offset 4002
You should see it on front-end there are two bars that resolve and should results. But as mentioned it seems to have stopped work on later 8.
Ok. Tried enabling Debug SEO on a good working site with permalinks / seo engine enabled. But no debug output on the front end.
So Debug SEO is not working as you all ready mentioned.

Just curious. If Debug SEO is fixed, would it show any debug output on a site that is completely blank because of "range out of order in character class at offset 4002"? See also post #3

Quote

After enabling SEO Engine/Permalinks the site goes blank! Except for administration.
I am not sure if it crashes before it shows where.
Thread Information
Author
Replies
6 posts
Views
412 times
Last Post
Last updated on 5 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Wanabo