Upgraded, Now Subpages don't work
Upgraded, Now Subpages don't work
I upgraded to the latest version 1.4.1 from 1.3.x, and things work for the most part. The only problem I now have is that none of my subpages work. Parent level pages render fine, but subpages throw out a php error at the top of the page:
Warning: preg_match() [function.preg-match]: Unknown modifier '\' in /home/user/public_html/index.php on line 129
I'm using the latest .htaccess file with pretty URLs.
Warning: preg_match() [function.preg-match]: Unknown modifier '\' in /home/user/public_html/index.php on line 129
I'm using the latest .htaccess file with pretty URLs.
Re: Upgraded, Now Subpages don't work
Its possible that the line mentioned requires a / instead of \
Paste that line if you can.
Paste that line if you can.
Re: Upgraded, Now Subpages don't work
Hi,
You can take a look at both. I've included as attachments and removed passwords and such. View the config in an editor.
You can also view the site - mcgowangroupinc.com (can't link directly for stat purposes)
*Edit* Removed attachments
You can take a look at both. I've included as attachments and removed passwords and such. View the config in an editor.
You can also view the site - mcgowangroupinc.com (can't link directly for stat purposes)
*Edit* Removed attachments
Last edited by LeeUmm on Thu Aug 21, 2008 2:56 pm, edited 1 time in total.
Re: Upgraded, Now Subpages don't work
Hi,
Try this :
- Open index.php
- Go to line 129
- Replace :
With :
- Upload index.php
It was because the regex isn't delimited.
It work for me.
Try this :
- Open index.php
- Go to line 129
- Replace :
Code: Select all
$matches = array();
if (preg_match($route->regex, $page, $matches))
{
Code: Select all
$matches = array();
if($route->regex == '[fF]eu\/verify\/(?P<returnid>[0-9]+)\/(?P<uid>[0-9]+)\/(?P<code>.*?)$/') $route->regex = '#[fF]eu\/verify\/(?P<returnid>[0-9]+)\/(?P<uid>[0-9]+)\/(?P<code>.*?)$/#';
if (preg_match($route->regex, $page, $matches))
{
It was because the regex isn't delimited.
It work for me.

Re: Upgraded, Now Subpages don't work
maybe is better in modules/FrontEndUsers/FrontEndUsers.module.phplb01 wrote: - Open index.php
............
and add:
$this->RegisterRoute('/[fF]eu\/verify\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*..........
Alby
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
- Location: Cambridge, UK
Re: Upgraded, Now Subpages don't work
Thanks lb01 and alby,
I had the same problem.
Nick
I had the same problem.
Nick
Re: Upgraded, Now Subpages don't work
Yes, it's better, thanks alby
.

Re: Upgraded, Now Subpages don't work
Thanks to alby care and devotion to dutyalby wrote: $this->RegisterRoute('/[fF]eu\/verify\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*..........

As side effects you can see in your apache many and many error log entries (everytime a page is served) pointing to line 120 of /index.php :
Code: Select all
PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier '\\' in /var/www/index.php on line 120, referer: ...
regards
blast
Last edited by blast2007 on Fri Aug 22, 2008 11:00 am, edited 1 time in total.
Re: Upgraded, Now Subpages don't work
Perfect, that did it.
That makes sense, I forgot I upgraded my modules as well and didn't notice the error until I had upgraded everything. Just assumed it was cause of the main CMS upgrade.
That makes sense, I forgot I upgraded my modules as well and didn't notice the error until I had upgraded everything. Just assumed it was cause of the main CMS upgrade.
Re: Upgraded, Now Subpages don't work
Add another grateful person to the list of those helped! Me.
Re: Upgraded, Now Subpages don't work
Well I can't seem to edit this file since I can't CHMod it with Cute FTP or in my control panel of Plesk.lb01 wrote: $this->RegisterRoute('/[fF]eu\/verify\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*..........
I can't overright the file or delete the whole module..
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
- Location: Cambridge, UK
Re: Upgraded, Now Subpages don't work
It's a permissions problem. It depends on the way the host is set up. I have a few sites like this.
Use the CMSMS File Manager. Give yourself access to the whole file system (its an option in the File Manager) and use that to upload the fixed file.
Nick
Use the CMSMS File Manager. Give yourself access to the whole file system (its an option in the File Manager) and use that to upload the fixed file.
Nick