Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error: The requested address was not found on this server.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luís de Sousa  
View profile   Translate to Translated (View Original)
 More options Jul 24 2012, 10:36 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Tue, 24 Jul 2012 07:36:47 -0700 (PDT)
Local: Tues, Jul 24 2012 10:36 am
Subject: Error: The requested address was not found on this server.

Dear all,

Some weeks ago I inherited a CakePHP application that I'm supposed to
deploy to a server. I went through the CakePHP tutorial and put my hands to
work. The problem is that I can't pass from the front page
(app/Pages/home.ctp), any links from there get to a page with the error in
subject. Trying direct access to routes like /view/action have the same
result.

I made a simple test that yielded a strange result: there's a model called
User with its respective controller and view. I copied the view folder to
another CakePHP app, and when I access to:

http://localhost/myApp/User

I get an error saying the User model doesn't exist, which is correct since
I only copied the view folder. But when I try a similar thing in the legacy
application:

http://localhost/legacyApp/User

I get the address not found error.

Reading the messages in this list I tried the following:
. changed the debug level to 1 - no further messages are shown
. deleted the contents of /app/tmp/cache/models/ and
/app/tmp/cache/persistent/
. verified .htaccess files are present
. verified www-data has permissions to write on .htaccess files

But none of these actions had effect. If anyone as a clue on what else may
be causing this I'd appreciate to know.

Thank you and regards.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Baird  
View profile  
 More options Jul 24 2012, 6:57 pm
From: Daniel Baird <danielba...@gmail.com>
Date: Wed, 25 Jul 2012 08:57:22 +1000
Local: Tues, Jul 24 2012 6:57 pm
Subject: Re: Error: The requested address was not found on this server.

On Wed, Jul 25, 2012 at 12:36 AM, Luís de Sousa
<luis.a.de.so...@gmail.com>wrote:

> Dear all,
> [...]

when I access to:

> http://localhost/myApp/User

> I get an error saying the User model doesn't exist, which is correct since
> I only copied the view folder. But when I try a similar thing in the legacy
> application:
> http://localhost/legacyApp/User

> I get the address not found error.

 Have you checked that the paths inside your .htaccess files are correct?
 If you've renamed folders, e.g. "legacyApp" or whatever, then the rewrites
might be borked.

--
Daniel Baird
I've tried going to the XHTML <bar /> a few times, but it's always closed.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 25 2012, 5:49 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Wed, 25 Jul 2012 02:49:26 -0700 (PDT)
Local: Wed, Jul 25 2012 5:49 am
Subject: Re: Error: The requested address was not found on this server.

On Wednesday, 25 July 2012 00:57:22 UTC+2, Daniel Baird wrote

>  Have you checked that the paths inside your .htaccess files are correct?
>  If you've renamed folders, e.g. "legacyApp" or whatever, then the rewrites
> might be borked.

Hi Daniel, thank you for the reply.

The .htaccess files are exactly equal to those found in the cakephp
tutorial. Should this be the case? Here are the contents of the file in the
root folder:

 <IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

Thank you,

Luís


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Gale  
View profile   Translate to Translated (View Original)
 More options Jul 25 2012, 6:55 am
From: Andy Gale <a...@salgo.net>
Date: Wed, 25 Jul 2012 11:55:08 +0100
Local: Wed, Jul 25 2012 6:55 am
Subject: Re: Error: The requested address was not found on this server.
On Wed, Jul 25, 2012 at 10:49 AM, Luís de Sousa

<luis.a.de.so...@gmail.com> wrote:

>  <IfModule mod_rewrite.c>
>    RewriteEngine on
>    RewriteRule    ^$ app/webroot/    [L]
>    RewriteRule    (.*) app/webroot/$1 [L]
> </IfModule>

Things to check -

1. Is your web server running Apache?
2. Does your apache server allow .htaccess

    http://httpd.apache.org/docs/current/mod/core.html#allowoverride

3. Does your apache server have mod_rewrite enabled?

    http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Cheers,

Andy

--
Andy Gale
http://andy-gale.com
http://twitter.com/andygale


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 25 2012, 8:44 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Wed, 25 Jul 2012 05:44:37 -0700 (PDT)
Local: Wed, Jul 25 2012 8:44 am
Subject: Re: Error: The requested address was not found on this server.

On Wednesday, 25 July 2012 12:55:08 UTC+2, Andy Gale wrote:
> 1. Is your web server running Apache?
> 2. Does your apache server allow .htaccess

>     http://httpd.apache.org/docs/current/mod/core.html#allowoverride

> 3. Does your apache server have mod_rewrite enabled?

>     http://httpd.apache.org/docs/current/mod/mod_rewrite.html

> Cheers,

Thank you Andy for the reply.

I believe the answer to these three questions is yes. I followed the
Advanced configuration in the tutorial, but for clarification I reproduce
below the contents of my Apache files.

Any other clues please reply. Thank you.

=====  /etc/apache2/sites-available/default

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

== /etc/apache2/apache2.conf

# CakePHP
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
<Directory /var/www>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 25 2012, 9:46 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Wed, 25 Jul 2012 06:46:26 -0700 (PDT)
Local: Wed, Jul 25 2012 9:46 am
Subject: Re: Error: The requested address was not found on this server.

On 25 July 2012 14:50, Andy Gale wrote:

>> <VirtualHost *:80>
>>         ServerAdmin webmaster@localhost

>>         DocumentRoot /var/www

> I'm a bit rusty on CakePHP and Apache setup but should the document
> root not be something like:

> DocumentRoot "/var/www/app/webroot"

> ???

Hi Andy, I don't think so. That is the Apache document root, I believe.

Thank you for answering nonetheless.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
scs  
View profile  
 More options Jul 25 2012, 11:55 am
From: scs <scs2...@gmail.com>
Date: Wed, 25 Jul 2012 08:55:38 -0700 (PDT)
Local: Wed, Jul 25 2012 11:55 am
Subject: Re: Error: The requested address was not found on this server.

Try a link like  http://localhost/myApp/users/
The url should be pointint the controller version of the name (lower case
and pearl) so if you want to go to your add function in your
UsersController it would be  http://localhost/myApp/users/add  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 26 2012, 4:23 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Thu, 26 Jul 2012 01:23:10 -0700 (PDT)
Local: Thurs, Jul 26 2012 4:23 am
Subject: Re: Error: The requested address was not found on this server.

On Wednesday, 25 July 2012 17:55:38 UTC+2, scs wrote:

> Try a link like  http://localhost/myApp/users/
> The url should be pointint the controller version of the name (lower case
> and pearl) so if you want to go to your add function in your
> UsersController it would be  http://localhost/myApp/users/add  

Hi scs, thank you for you reply.

This address:  http://localhost/legacyApp/users/add<http://localhost/myApp/users/>

Returns: "Error: The requested http://localhost/legacyApp/users/add<http://localhost/myApp/users/>address was not found on this server."

Whereas this address: http://localhost/legacyApp/users/add<http://localhost/myApp/users/>

Returns: "Error: UsersController could not be found."

In both applications the contents of the app/Views/Users folder is exactly
the same.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 26 2012, 5:51 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Thu, 26 Jul 2012 02:51:52 -0700 (PDT)
Local: Thurs, Jul 26 2012 5:51 am
Subject: Re: Error: The requested address was not found on this server.

Hello again,

There's a detail in the first message that may provide further clues on
what is wrong with this project. No matter what debug level I try (0, 1 or
2) I don't get any messages. It is as if the core.php file was being
ignored.

Thank you for reading.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
scs  
View profile  
 More options Jul 26 2012, 11:57 am
From: scs <scs2...@gmail.com>
Date: Thu, 26 Jul 2012 08:57:42 -0700 (PDT)
Local: Thurs, Jul 26 2012 11:57 am
Subject: Re: Error: The requested address was not found on this server.

Ok I'm not sure what the difference in the links you posted are as both
look like the same address.

As for the " Error: UsersController could not be found. " this error is
correct if you don't have the UsersController.php  with an add function.
 Make sure you have the controller created.
Example:
<?php
App::uses('CakeEmail', 'Network/Email');

class UsersController extends AppController {
var $name = 'Users';
var $uses = array('User', 'Ticket');
 public function index() {
 }
 public function edit() {
 }

public function add() {
 }

}

?>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 27 2012, 3:33 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Fri, 27 Jul 2012 00:33:43 -0700 (PDT)
Local: Fri, Jul 27 2012 3:33 am
Subject: Re: Error: The requested address was not found on this server.

Hi scs, my answers go below.

On Thursday, 26 July 2012 17:57:42 UTC+2, scs wrote:

> Ok I'm not sure what the difference in the links you posted are as both
> look like the same address.

They are different addresses, one for the legacy app and the other for a
new app I created.

> As for the " Error: UsersController could not be found. " this error is
> correct if you don't have the UsersController.php  with an add function.
>  Make sure you have the controller created.

This error is what I expected. I'm just trying to test the addresses in
another application, and there it works.

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Jul 31 2012, 8:43 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Tue, 31 Jul 2012 05:43:15 -0700 (PDT)
Local: Tues, Jul 31 2012 8:43 am
Subject: Re: Error: The requested address was not found on this server.

Any further suggestions on this issue are very welcome. Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Aug 6 2012, 3:14 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Mon, 6 Aug 2012 00:14:38 -0700 (PDT)
Local: Mon, Aug 6 2012 3:14 am
Subject: Re: Error: The requested address was not found on this server.

Good morning everyone,

I once again beg for your help, I have no idea on how to proceed on this.

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Aug 13 2012, 8:23 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Mon, 13 Aug 2012 05:23:47 -0700 (PDT)
Local: Mon, Aug 13 2012 8:23 am
Subject: Re: Error: The requested address was not found on this server.

Please.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
soda sonic  
View profile  
 More options Aug 14 2012, 9:36 am
From: soda sonic <sodag...@gmail.com>
Date: Tue, 14 Aug 2012 20:36:13 +0700
Local: Tues, Aug 14 2012 9:36 am
Subject: Re: Error: The requested address was not found on this server.

you can copy all message error or capture error interfae and resent this
mail again I hope i can help you
เมื่อ 13 ส.ค. 2012 19:23, "Luís de Sousa" <luis.a.de.so...@gmail.com>
เขียนว่า:

> Please.

> --
> You received this message because you are subscribed to the Google Groups
"CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to

cake-php+unsubscribe@googlegroups.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
scs  
View profile  
 More options Aug 14 2012, 2:47 pm
From: scs <scs2...@gmail.com>
Date: Tue, 14 Aug 2012 11:47:22 -0700 (PDT)
Local: Tues, Aug 14 2012 2:47 pm
Subject: Re: Error: The requested address was not found on this server.

Ok After re reading the top it sound like you said you copy only the
View/User folder to the legacy and that is giving you problems. If this is
the case, you need to also move the Controller and Model files for users to
the legacy app. If both of these files are already there show us what you
have in your user controller/model files.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luís de Sousa  
View profile  
 More options Aug 20 2012, 3:41 am
From: Luís de Sousa <luis.a.de.so...@gmail.com>
Date: Mon, 20 Aug 2012 00:41:49 -0700 (PDT)
Local: Mon, Aug 20 2012 3:41 am
Subject: Re: Error: The requested address was not found on this server.

Hi scs,

The error I'm reporting happens with the legacy app, as I got it, without
any changes applied.

Here are the contents of Model/user.php:

<?php

    class user extends AppModel
    {
        public $name = "connection";

        public $validate = array(
            'NOM' => 'not_empty'
        );
    }

And the contents of Controller/usersController.php:

<?php

    class usersController extends AppController
    {
        public $name = "users";
        public $helpers = array('Html', 'Form');

        public function index()
        {
            $this->set('usersArray', $this->user->find('all'));
        }

        public function details($id = null)
        {
            $this->user->id = $id;
            $this->set('userRead', $this->user->read());
        }

        public function add()
        {
            if ($this->request->is('post'))
            {
                if ($this->user->save($this->request->data))  
                {
                    $this->Session->setFlash("Your account has been
saved");
                    $this->redirect(array('action' => 'index'));
                } else
                {    
                    $this->Session->setFlash("Error");
                }
            }
        }
    }

Thank you for reading,

Luís


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bharat Maheshwari  
View profile  
 More options Aug 20 2012, 4:47 am
From: Bharat Maheshwari <bharat.maheshw...@logicspice.com>
Date: Mon, 20 Aug 2012 01:47:10 -0700 (PDT)
Local: Mon, Aug 20 2012 4:47 am
Subject: Re: Error: The requested address was not found on this server.

Hello,
I think your controller needs some modifications might be it will work

*first rename the Controller/usersController.php to
Controller/UsersController.php:

and then in UsersController.php :-
class UsersController extends AppController
    {
        public $name = "users";
        public $helpers = array('Html', 'Form');

        public function index()
        {
            $this->set('usersArray', $this->user->find('all'));
        }

        public function details($id = null)
        {
            $this->user->id = $id;
            $this->set('userRead', $this->user->read());
        }

        public function add()
        {
            if ($this->request->is('post'))
            {
                if ($this->user->save($this->*

> *request->data))  
>                 {
>                     $this->Session->setFlash("Your account has been
> saved");
>                     $this->redirect(array('action' => 'index'));
>                 } else
>                 {    
>                     $this->Session->setFlash("**Error");
>                 }
>             }
>         }
>     }*

might be it work................


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »