Page 1 of 1
Upgraded, Now Subpages don't work
Posted: Wed Aug 20, 2008 9:11 pm
by LeeUmm
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.
Re: Upgraded, Now Subpages don't work
Posted: Wed Aug 20, 2008 10:03 pm
by baresi
Its possible that the line mentioned requires a / instead of \
Paste that line if you can.
Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 1:21 am
by LeeUmm
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
Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 9:43 am
by lb01
Hi,
Try this :
- Open index.php
- Go to line 129
- Replace :
Code: Select all
$matches = array();
if (preg_match($route->regex, $page, $matches))
{
With :
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))
{
- Upload index.php
It was because the regex isn't delimited.
It work for me.

Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 10:37 am
by alby
lb01 wrote:
- Open index.php
............
maybe is better in modules/FrontEndUsers/FrontEndUsers.module.php
and add:
$this->RegisterRoute('
/[fF]eu\/verify\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*..........
Alby
Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 11:06 am
by Nick Smart
Thanks lb01 and alby,
I had the same problem.
Nick
Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 11:41 am
by lb01
Yes, it's better, thanks alby

.
Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 12:49 pm
by blast2007
alby wrote:
$this->RegisterRoute('/[fF]eu\/verify\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*..........
Thanks to alby care and devotion to duty

, he discovered a small bug in FEU 1.5.2.
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: ...
Are developers of module informed of this bug? Should we submit a new bug?
regards
blast
Re: Upgraded, Now Subpages don't work
Posted: Thu Aug 21, 2008 3:15 pm
by LeeUmm
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.
Re: Upgraded, Now Subpages don't work
Posted: Wed Aug 27, 2008 2:10 pm
by mike-r
thx a lot from me too.
Re: Upgraded, Now Subpages don't work
Posted: Mon Sep 08, 2008 4:32 pm
by sparquay
Add another grateful person to the list of those helped! Me.
Re: Upgraded, Now Subpages don't work
Posted: Fri Sep 26, 2008 10:13 am
by Lucaz
lb01 wrote:
$this->RegisterRoute('/[fF]eu\/verify\/(?P[0-9]+)\/(?P[0-9]+)\/(?P.*..........
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.
I can't overright the file or delete the whole module..
Re: Upgraded, Now Subpages don't work
Posted: Fri Sep 26, 2008 11:11 am
by Nick Smart
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