Wednesday, March 28, 2012

Re: Would PHP 5.3 stop cake cron job working?

Thanks for the reply.

The problem was actually caused by depreciated function in Cake
1.2.8284 / PHP 5.3. E.g.:

Deprecated: Assigning the return value of new by reference is
deprecated in .../cake/libs/model/connection_manager.php on line 106

Fixed by upgrading to the lastest 1.2.x version of Cake (just replaced
Cake directory), and also removing the '&' from the following lines in
my APP/vendors/shells/tasks/email.php
$this->Controller =& new Controller();
$this->Email =& new EmailComponent(null);

Thanks,
Sarah

On Mar 27, 3:03 pm, LunarDraco <mdc...@gmail.com> wrote:
> Without a bit more detail, I would guess that the new PHP 5.3 does not
> have mail setup by default and from a hosting service this usually
> requires a request before they will enable it.
> You can check that if you have ssh access to the server console by
> inspecting the php.ini
> Look for the setting for mail or smtp.
>
> You should also see some messages in the log file for php/apache
> indicating the function you are trying to use is unavailable or not
> defined.
>
> On Mar 26, 10:51 am, sarahlou <sa...@hexagonwebworks.com> wrote:
>
>
>
>
>
>
>
> > I have a site (originally built back in 2009) with a couple of cron
> > jobs for order notification emails. The site is running CakePHP
> > version 1.2.4.8284
>
> > After the hosting server was upgraded to PHP 5.3, the cron jobs appear
> > to have stopped working (they still run, but no email is sent). The
> > website itself is still functioning ok.
>
> > Is this likely to be a conflict between the Cake version & PHP 5.3.
> > Does anyone have any advice as to the best way around this?
>
> > Many thanks,
>
> > Sarah

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: