CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
yankee80
Forum Members
Forum Members
Posts: 34
Joined: Mon Apr 10, 2006 2:45 am

CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]

Post 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
Last edited by yankee80 on Wed Jun 17, 2009 5:20 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
yankee80
Forum Members
Forum Members
Posts: 34
Joined: Mon Apr 10, 2006 2:45 am

Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu

Post by yankee80 »

Thanks Rolf, but even after changing to PHP 5.2.3 we get the same javascript error.

cheers
eric
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu

Post 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.
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.
yankee80
Forum Members
Forum Members
Posts: 34
Joined: Mon Apr 10, 2006 2:45 am

Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu

Post 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]
yankee80
Forum Members
Forum Members
Posts: 34
Joined: Mon Apr 10, 2006 2:45 am

Re: CMSMS1.5.2 Enabling pretty_urls breaks css menu [solved]

Post 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.
Post Reply

Return to “CMSMS Core”