Re: Would PHP 5.3 stop cake cron job working?

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


Would PHP 5.3 stop cake cron job working?

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


Get session expiry time

2009-04-08 Thread sarahlou

I'm sure this must be incredibly simple, but I've searched for ages...

How do I read the expiry time of the current session?

Thanks!

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



Re: Determining users' language

2009-02-13 Thread sarahlou

Thanks Miles, found it at last!
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Determining users' language

2009-02-12 Thread sarahlou

Hi,

I'm new to Cake & have a feeling this is an obvious question, but here
goes...

I'm trying to detect the user's language via their browser settings
(i.e. using $_SERVER['HTTP_ACCEPT_LANGUAGE']).  From there, I need to
get a single variable that I can use to determine which set of
(dynamic) content to display (i.e. English if the user's language is
en, French if fr, and so on).

I've been searching for a method of doing this in Cake for ages, and
either I'm blind or missing something somewhere

Can anyone help please?!! Many thanks.

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



Re: 404 error

2009-01-06 Thread sarahlou

Ok, think I've solved this.

It appears the problem was with the word 'users'.  If I put the
'register' view file in the pages folder instead of the users folder,
I could see it fine, which then led me to rename the whole lot (view,
controller, model, db table).  It now appears to be working fine.

Any ideas why this could be?  Presumably something to do with reserved
words somewhere or other - hosting account (I'm with United Hosting),
or Cake???

Thanks

On Jan 6, 11:03 am, sarahlou  wrote:
> Thanks.  That would make sense, but the view, controller and model
> files for both apps (i.e. posts and users) are in exactly the same
> place.  I.e. the controller files are in /apps/controllers/, the view
> files are in /apps/views/posts/ & /apps/views/users/ and so on.
>
> I'm using the default file structure for version 1.2, so in the root,
> I have the three Cake folders app, cake and vendors.  Am I missing
> something obvious here?!
>
> On Jan 5, 10:10 pm, Webweave  wrote:
>
> > Your app is in a sub-directory, if you want it to be in the root, you
> > need to change your configuration or move the app up a directory.
>
> > Apparently you have the app for posts in the root for that web server,
> > which is why it works with /posts/edit
>
> > On Jan 5, 12:43 pm, sarahlou  wrote:
>
> > > I'm a newbie to Cake, so bear with me
>
> > > I've managed to complete the blog tutorial, and now trying the IBM
> > > 'Cook up Websites fast' tutorial.  However, I get a 404 URL not found
> > > error when trying to viewhttp://[domain]/users/register.  I can see
> > > the register view as expected when I 
> > > usehttp://[domain]/app/users/register.
>
> > > What puzzles me is that I could (& still can) see the equivalent from
> > > the blog tutorial (e.g.http://[domain]/posts/edit) with no problem,
> > > and without adding the 'app' bit.
>
> > > Sorry if this is a daft question, but have been puzzling for ages over
> > > it!  Thanks in advance for any help.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 404 error

2009-01-06 Thread sarahlou

Thanks.  That would make sense, but the view, controller and model
files for both apps (i.e. posts and users) are in exactly the same
place.  I.e. the controller files are in /apps/controllers/, the view
files are in /apps/views/posts/ & /apps/views/users/ and so on.

I'm using the default file structure for version 1.2, so in the root,
I have the three Cake folders app, cake and vendors.  Am I missing
something obvious here?!

On Jan 5, 10:10 pm, Webweave  wrote:
> Your app is in a sub-directory, if you want it to be in the root, you
> need to change your configuration or move the app up a directory.
>
> Apparently you have the app for posts in the root for that web server,
> which is why it works with /posts/edit
>
> On Jan 5, 12:43 pm, sarahlou  wrote:
>
> > I'm a newbie to Cake, so bear with me
>
> > I've managed to complete the blog tutorial, and now trying the IBM
> > 'Cook up Websites fast' tutorial.  However, I get a 404 URL not found
> > error when trying to viewhttp://[domain]/users/register.  I can see
> > the register view as expected when I usehttp://[domain]/app/users/register.
>
> > What puzzles me is that I could (& still can) see the equivalent from
> > the blog tutorial (e.g.http://[domain]/posts/edit) with no problem,
> > and without adding the 'app' bit.
>
> > Sorry if this is a daft question, but have been puzzling for ages over
> > it!  Thanks in advance for any help.

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



404 error

2009-01-05 Thread sarahlou

I'm a newbie to Cake, so bear with me

I've managed to complete the blog tutorial, and now trying the IBM
'Cook up Websites fast' tutorial.  However, I get a 404 URL not found
error when trying to view http://[domain]/users/register.  I can see
the register view as expected when I use http://[domain]/app/users/register.

What puzzles me is that I could (& still can) see the equivalent from
the blog tutorial (e.g. http://[domain]/posts/edit) with no problem,
and without adding the 'app' bit.

Sorry if this is a daft question, but have been puzzling for ages over
it!  Thanks in advance for any help.

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