Do you have validation when adding a user?

If so, it's probably not adding on an update because it's checking for the
validation.

Turn off validation on the update and see if it works.

i'm not sure the cake1.8 way, but it's something like

$this->MODEL->save($data, $params => array('validate'=>false));

On Mon, May 2, 2016 at 3:05 PM, Josh R <j...@jackmarketing.ca> wrote:

> Hello Group,
>
> I am new to this group and CakePHP.
>
> I am dealing with a site that is build using CakePHP version 1.3.8. When
> adding a new user, everything works fine. When modifying a user (either
> through admin's account or through the user's account) the save function
> keeps the URL of the page (with client ID in url as it should) but the page
> doesn't add the updated data to the database, and gives a 404 page. When
> the URL is copied and entered again in browser the User's page appears, but
> like I mentioned no changes to the User's information was recorded. See the
> start and end of the form functions, there are a lot of fields in this form.
>
> <?php echo $this->Form->create("User", array("url" => array("controller"
> => "admin", "action" => $this->params["action"]))); ?>
> *There are many fields > echo $this->Form->input("...");, etc...*
> <?php echo $this->Form->end("Enregistrer"); ?>
>
> I was told that this form was working properly a couple months ago (I just
> recently have been looking into this issue), and then one day the saving of
> the form stopped.
>
> Any help is greatly appreciated. I can also send snippets of code if need
> be.
>
> Thank you in advance!
> josh
>
> --
> Sign up for our Newsletter for updates.
> http://cakephp.org/newsletter/signup
>
> We will soon be closing this Google Group. But don't worry, we have
> something better coming. Stay tuned for an updated from the CakePHP Team
> soon.
>
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Follow us on Twitter http://twitter.com/CakePHP
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something 
better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to