Page 1 of 1
CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]
Posted: Thu Jun 11, 2009 11:13 am
by yankee80
Hello CMSMS friends,
cmsms1.5.2
mysql4
php4.1.xx
We've put a lot of work into our website and it works great at the moment:
http://www.tmsap.com
If I enable the internal pretty urls or mod_rewrite (with .htaccess modifications) I get a javascript error: "object expected" and the CSS drop down menus won't expand anymore.
Question:
Are pretty-url:s supposed to work with a dynamic CSS menu, or am I asking for too much?
Kind regards
Eric
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
Posted: Mon Jun 15, 2009 7:31 am
by Rolf
Hi yankee80
yankee80 wrote:
Question:
Are pretty-url:s supposed to work with a dynamic CSS menu, or am I asking for too much?
Noop, it should work...
yankee80 wrote:
cmsms1.5.2
mysql4
php4.1.xx <-----------------------
I think your php version might be the problem.
check
http://wiki.cmsmadesimple.org/index.php ... quirements
wiki wrote:
Technical requirements
* One of these operating systems:
o Linux/Unix
o Windows 2000/XP/Vista/Me/2003 (not recommended unless you master it)
o Mac OS X
* One of these webservers:
o Apache 1.3
o Apache 2
o IIS 5+
o LightTPD 1.4+
* PHP 4.3+ <-----------------------
o 4.3.3+ required for pretty URL's <-------------------
o Working PHP sessions
o PHP Tokenizer support. Some hosts don't install tokenizer support for php by default, but this is usually trivial and harmless for them to add.
Regards, Rolf

Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
Posted: Mon Jun 15, 2009 8:03 am
by yankee80
Thanks Rolf, but even after changing to PHP 5.2.3 we get the same javascript error.
cheers
eric
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
Posted: Mon Jun 15, 2009 9:15 pm
by tyman00
yankee80 wrote:
I get a javascript error: "object expected"
That is a pretty broad error description. Please be more specific and be sure to iindicate which file and line it is relating too. If you want us to help you I would also suggest turning Pretty URLS on so we can see it in action.
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
Posted: Tue Jun 16, 2009 5:14 am
by yankee80
Hi again,
I'd like to show you a live example, but the site is live so if I enable mod_rewrite/pretty url:s the menu will break and visitors can't navigate the site.
http://www.tmsap.com
Is there any other information I should post to aid in the trouble shooting process?
Here are my rewrite rules:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]
Posted: Wed Jun 17, 2009 5:23 pm
by yankee80
I think I solved it myself by doing the following AFTER enabling mod_rewrite:
1) mod_rewrite somehow broke my image-preload script, so I disabled this script and removed the onload=... from
2) I had to replace with
>
this however, broke the menus completely in IE8 (stil looked good in FF 3.x though), so now the site has to be viewed using IE8's compatibilty mode.