This message will also appear on fatal errors during home page
rendering.

i.e. the call to check for database connection is sometimes in some
circumstances raising Fatal Errors.

Am Mittwoch, den 22.06.2011, 11:30 +0100 schrieb Jeremy Burns | Class
Outfit:
> I just experienced this when setting up a new site and concluded that
> it is not really an error. The default Cake set up has:
>       * a generic stylesheet (/app/webroot/css/cake.generic.css)
>       * a default layout (/cake/libs/view/layouts) that calls the
>         generic stylesheet
>       * a default home page (/cake/libs/view/pages/home.ctp)
> 
> 
> 
> The generic home page has an element with an id of
> 'url-rewriting-warning'. This is hidden by default by a class in the
> generic stylesheet if:
>       * you are using the default layout, home page and style sheet
>       * and mod rewrite is working
> 
> 
> If mod rewrite is not working, the style sheet will not load and
> therefore the element will not be hidden, and voila you see the error
> or if you remove the generic style sheet (as the style sheet is not
> loading the element will not be hidden).
> 
> 
> These defaults are not really intended for production. They are just
> there to make sure your basic environment is correct.
> 
> On 14 Jun 2011, at 19:12, Anderson Machado wrote:
> 
> > Hello,
> > 
> > I did it but to no avail. I'm using wamp.
> > 
> > I removed the comment that line: LoadModule rewrite_module modules/
> > mod_rewrite.so
> > 
> > I observed the following lines:
> > 
> > <Directory />
> >    Options FollowSymLinks
> >    AllowOverride All
> > #    Order deny,allow
> > #    Deny from all
> > </Directory>
> > 
> > Continues to show the error. What can I do?
> > 
> > On Jun 8, 8:21 am, saidbakr <said....@gmail.com> wrote:
> > > So it is a bug in home.ctp and cake.generic.css and it could be
> > > solved
> > > as follows:
> > > 
> > > add an id tag to the div that includes therewritingerror, the tag
> > > will take the value : id="url-rewriting-warning". then in
> > > cake.generic.css at the end of it add the following rule:
> > > #url-rewriting-warning{
> > > display: none;
> > > 
> > > }
> > > 
> > > so if rewrite is going fine, it will load the css file anf hence
> > > the
> > > error message willnotbe displayed.
> > > 
> > > On Jun 6, 11:59 pm, majna <majna...@gmail.com> wrote:
> > > 
> > > 
> > > 
> > > > You need to update webroot/css/cake.generic.css
> > > > used byURLrewritingcheck
> > > 
> > > > #url-rewriting-warning {
> > > >         display: none;
> > > 
> > > > }
> > > 
> > > > https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene...
> > > 
> > > > On Jun 6, 4:03 pm, Ryan Olton <olt...@gmail.com> wrote:
> > > 
> > > > > > Sounds likeyourconfig isn't checkable somehow by the new
> > > > > > 'check for
> > > > > > urlrewriting' validation - work out why and file a bug
> > > > > > report :)
> > > 
> > > > > It appears that in the default home.ctp page there is this
> > > > > block of
> > > > > code just hanging out without any conditional code in place to
> > > > > show or
> > > > > hide this text ... in other words, you see in to matter what:
> > > 
> > > > > <div id="url-rewriting-warning" style="background-color:#e32;
> > > > > color:#fff; padding:3px; margin: 20px 0">
> > > > >         <?php
> > > > > __('URLrewritingisnotproperlyconfiguredonyourserver.
> > > > > '); ?>
> > > > >         <ol style="padding-left:20px">
> > > > >                 <li>
> > > > >                         <a target="_blank"
> > > > > href="http://book.cakephp.org/view/917/Apache-
> > > > > and-mod_rewrite-and-htaccess" style="color:#fff;">
> > > > >                                 <?php __('Help me configure
> > > > > it')?>
> > > > >                         </a>
> > > > >                 </li>
> > > > >                 <li>
> > > > >                         <a target="_blank"
> > > > > href="http://book.cakephp.org/view/931/CakePHP-
> > > > > Core-Configuration-Variables" style="color:#fff;">
> > > > >                                 <?php __('I don\'t / can\'t
> > > > > useURLrewriting')?>
> > > > >                         </a>
> > > > >                 </li>
> > > > >         </ol>
> > > > > </div>
> > 
> > -- 
> > Our newest site for the community: CakePHP Video Tutorials
> > http://tv.cakephp.org 
> > Check out the new CakePHP Questions site http://ask.cakephp.org and
> > help others with their CakePHP related questions.
> > 
> > 
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this
> > group at http://groups.google.com/group/cake-php
> > 
> 
> 
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and
> help others with their CakePHP related questions.
>  
>  
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to