Hi Rob, it seems that the behavior isn't being attached to your model.
Try putting a die("Multivalidatable") at the begining of the
multivalidatable.php.
If that kills your app, then it's beign loaded, then add a die() in
Multivalidatable::setUp()
function setUp(&$model, $config = array()) {
die("is beign initizlized in {$model->name}");
// <-- add this die() or a pr()
$this->__defaultRules[$model->name] = $model->validate;
}
If it's beign loaded, then it may be a problem with cake behaviors
method dispatching, probably because of a PHP setting/version issue,
try running the core behavior tests and upgrading/downgrading the core
if something fails.
Let me know how far you get.
Regards,
- Dardo Sordi.
On Fri, Oct 24, 2008 at 9:36 PM, Rob <[EMAIL PROTECTED]> wrote:
>
> I have an application that is working fine on my local machine using
> the behavior of Multivalidatable (see
> http://bakery.cakephp.org/articles/view/multivalidatablebehavior-using-many-validation-rulesets-per-model)
>
> When I run it from my local machine (where I have control of the
> httpd.conf), it works just fine.
>
> When I run it on my hosting provider (1and1), I get an error:
>
> Warning (512): SQL Error: 1064: You have an error in your SQL syntax;
> check the manual that corresponds to your MySQL server version for the
> right syntax to use near 'setvalidation' at line 1 [CORE/cake/libs/
> model/datasources/dbo_source.php, line 521
>
> The method in question is in the Multivalidatable.php class under ~/
> VolunteerCake/models/behaviors, which seems to be the right place
> locally.
>
> My cake directory is at ~/cake, and everything else seems to be
> working OK (including the 'Acl' declaration).
>
> BTW, in order to get the app to work on 1and1, I had to modify
> the .htaccess files to make the paths absolute as described here:
> http://bakery.cakephp.org/articles/view/mod-rewrite-on-godaddy-shared-hosting
>
> Any ideas on what to do to correct this ?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---