I managed to get rid of the error. It didn't have anything to do with
the fact that my script is dying out.
In one of my components, there was the following code :
// setAjax is deprecated in 1.2
if($this->is_11()) //1.1
{
$this->RequestHandler->setAjax(&$this->controller);
}
else // 1.2
{
$this->controller->layout = $this->RequestHandler->ajaxLayout;
$this->RequestHandler->respondAs('html', array('charset' =>
'UTF-8'));
}
...and it seemed to be executing the code inside the first condition.
So I got rid of that. But the script still dies out.
There's got to be something wrong with either my model association or
with my web server configuration
On Jul 11, 2:12 am, Contrid <[EMAIL PROTECTED]> wrote:
> I also get this error :
>
> --------------------------------------
> Warning: Call-time pass-by-reference has been deprecated - argument
> passed by value; If you would like to pass it by reference, modify the
> declaration of [runtime function name](). If you would like to enable
> call-time pass-by-reference, you can set
> allow_call_time_pass_reference to true in your INI file. However,
> future versions may not support this any longer. in /var/www/vhosts/
> vulay.com/httpdocs/app/controllers/components/oth_auth.php on line 794
> --------------------------------------
>
> ...but I'm not sure if it has anything to do with it.
> I edited my php.ini file on my remote server and restarted Apache. It
> still has no difference.
> This might actually be the issue, but I'm not sure how to get rid of
> it.
>
> On Jul 11, 2:08 am, Contrid <[EMAIL PROTECTED]> wrote:
>
> > Hi there,
>
> > I built an application locally and it works perfectly fine. Now...I
> > uploaded everything to my server and built the database. Everything
> > worked. Until I added categories, sub-categories and then items to
> > these categories. The application simply dies out. By commenting out
> > the findAll and findAllThreaded methods in my controller, the script
> > runs, so I'm thinking that there has to be something wrong with my
> > model associations. I specifically think there is something wrong with
> > my Category model and it's associations. See my models below.
>
> > This is my Category model :
>
> > <?php
>
> > class Category extends AppModel {
> > //model name
> > var $name = "Category";
>
> > //hasMany assocation
> > var $hasMany = array(
> > 'Item' => array(
> > 'className' => 'Item',
> > 'foreignKey' => 'category_id',
> > 'dependent' => true
> > ),
> > 'Category' => array(
> > 'className' => 'Category',
> > 'foreignKey' => 'parent_id',
> > 'dependent' => true
> > )
> > );
>
> > }
>
> > ?>
>
> > ...and here is my Item model.
>
> > <?php
>
> > class Item extends AppModel {
> > //model name
> > var $name = "Item";
>
> > //to which model does it belong?
> > var $belongsTo = array(
> > 'Category' => array(
> > 'className' => 'Category',
> > 'foreignKey' => 'category_id',
> > ),
> > 'User' => array(
> > 'className' => 'User',
> > 'foreignKey' => 'user_id',
> > )
> > );
>
> > }
>
> > ?>
>
> > If someone can help me figure out why this script is dying out, it
> > would be greatly appreciated. It works locally without any problems,
> > so there has to be some type of difference in configuration between my
> > web servers.
>
> > Also...
> > I'm not sure where to find the error logs, etc...
> > I checked in tmp/logs/error.log and tmp/logs/debug.log but I don't see
> > anything.
>
> > Please help me! Greatly appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---