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
CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]
CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]
Last edited by yankee80 on Wed Jun 17, 2009 5:20 pm, edited 1 time in total.
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
Hi yankee80
check http://wiki.cmsmadesimple.org/index.php ... quirements
Regards, Rolf
Noop, it should work...yankee80 wrote: Question:
Are pretty-url:s supposed to work with a dynamic CSS menu, or am I asking for too much?
I think your php version might be the problem.yankee80 wrote: cmsms1.5.2
mysql4
php4.1.xx <-----------------------
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

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
Thanks Rolf, but even after changing to PHP 5.2.3 we get the same javascript error.
cheers
eric
cheers
eric
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
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.yankee80 wrote:
I get a javascript error: "object expected"
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu
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]
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]
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.
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.