<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sun May 19, 2013 1:45 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sun May 19, 2013 1:45 pm</pubDate>
  <lastBuildDate>Sun May 19, 2013 1:45 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Post subject: CakePHP won't launch</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95673#95673</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=7892'&gt;NormanDunbar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 15, 2010 9:13 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi Bent,&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;bbagger wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;...I discovered that I did not have mod_rewrite loaded. Once I got that done, I got my controller working and am now down to the 'real' coding errors  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; &lt;br /&gt;
&lt;br /&gt;
That's the avenue I'm working down now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Norm.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95673#95673</comments>
                                        <author>NormanDunbar</author>
                                        <pubDate>Wed Dec 15, 2010 9:13 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95673#95673</guid>
                                      </item>
                                      <item>
                                        <title>Re: CakePHP won't launch [SOLVED]</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95671#95671</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=60039'&gt;bbagger&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 15, 2010 8:08 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi Norm&lt;br /&gt;
&lt;br /&gt;
I was very tempted to answer &amp;quot;That makes two of us&amp;quot;, but then I discovered that I did not have mod_rewrite loaded. Once I got that done, I got my controller working and am now down to the 'real' coding errors  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
&lt;br /&gt;
Merry Christmas to you too.&lt;br /&gt;
&lt;br /&gt;
Bent</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95671#95671</comments>
                                        <author>bbagger</author>
                                        <pubDate>Wed Dec 15, 2010 8:08 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95671#95671</guid>
                                      </item>
                                      <item>
                                        <title>Re: CakePHP won't launch [SOLVED]</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95669#95669</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=7892'&gt;NormanDunbar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 15, 2010 7:24 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Evening Bent,&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;bbagger wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Thanks a lot for your help&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
Glad to help. I have to confess, I was stuck in exactly the same position as you were just on Monday this week, and once I decided to get rid of the warning message, I found the error message went away as well.&lt;br /&gt;
&lt;br /&gt;
My next problem is that I can't get any of my controllers to work! I just get a 404 page not found. Sigh!&lt;br /&gt;
&lt;br /&gt;
Good luck. Happy christmas.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Norm.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95669#95669</comments>
                                        <author>NormanDunbar</author>
                                        <pubDate>Wed Dec 15, 2010 7:24 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95669#95669</guid>
                                      </item>
                                      <item>
                                        <title>Re: CakePHP won't launch [SOLVED]</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95668#95668</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=60039'&gt;bbagger&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 15, 2010 6:49 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Indeed, it works! After doing as you suggest - except using Europe/Copenhagen - everything fell into place.&lt;br /&gt;
&lt;br /&gt;
Thanks a lot for your help&lt;br /&gt;
&lt;br /&gt;
Bent</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95668#95668</comments>
                                        <author>bbagger</author>
                                        <pubDate>Wed Dec 15, 2010 6:49 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95668#95668</guid>
                                      </item>
                                      <item>
                                        <title>CakePHP won't launch</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95663#95663</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=7892'&gt;NormanDunbar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 15, 2010 4:49 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Evening!&lt;br /&gt;
&lt;br /&gt;
As I'm in the UK and currently on GMT, which is equivalent to UTC, I have a choice:&lt;br /&gt;
&lt;br /&gt;
Edit the file &amp;lt;your_install&amp;gt;/app/config/core.php and either  un-comment the line (by removing the // at the start) :&lt;br /&gt;
&lt;br /&gt;
   //date_default_timezone_set('UTC');&lt;br /&gt;
&lt;br /&gt;
Or, set it to:&lt;br /&gt;
&lt;br /&gt;
   date_default_timezone_set('Europe/London');&lt;br /&gt;
&lt;br /&gt;
Both options cause the warning to vanish, plus, allows the failing &amp;quot;cd&amp;quot; command to work. It's very strange indeed.&lt;br /&gt;
&lt;br /&gt;
It's a PHP 5.3 thing where yo have to tell it the time zone you wish to use rather than relying on the server time zone. makes no sense to me, but there you have it!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Norm.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95663#95663</comments>
                                        <author>NormanDunbar</author>
                                        <pubDate>Wed Dec 15, 2010 4:49 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95663#95663</guid>
                                      </item>
                                      <item>
                                        <title>Re: CakePHP won't launch [SOLVED]</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95650#95650</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=60039'&gt;bbagger&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 15, 2010 9:26 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks for the answer.&lt;br /&gt;
&lt;br /&gt;
I'm afraid I have to ask you to explain more specifically how you did set the timezone. Mine is set to Europe/Copenhagen using method 1 in &lt;a href=&quot;http://www.thegeekstuff.com/2010/09/change-timezone-in-linux/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;http://www.thegeekstuff.com/2010/09/change-timezone-in-linux/&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Still, I don't understand why a &lt;span style=&quot;font-weight: bold&quot;&gt;warning&lt;/span&gt; can blow up a program. If it does it should be classified as an error. Anyway, the complete output from my attempt is this:&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Warning &amp;#40;2&amp;#41;&amp;#58; strtotime&amp;#40;&amp;#41; &amp;#91;http&amp;#58;//php.net/function.strtotime&amp;#93;&amp;#58; It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set&amp;#40;&amp;#41; function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead &amp;#91;CORE/cake/libs/cache.php, line 570&amp;#93;&lt;br /&gt;
Code | Context&lt;br /&gt;
&lt;br /&gt;
$settings&amp;nbsp; &amp;nbsp;=&amp;nbsp; &amp;nbsp;array&amp;#40;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;engine&amp;quot; =&amp;gt; &amp;quot;File&amp;quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;path&amp;quot; =&amp;gt; &amp;quot;/srv/www/htdocs/app/tmp/cache/persistent/&amp;quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;prefix&amp;quot; =&amp;gt; &amp;quot;cake_core_&amp;quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;lock&amp;quot; =&amp;gt; false,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;serialize&amp;quot; =&amp;gt; true,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;isWindows&amp;quot; =&amp;gt; false,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;duration&amp;quot; =&amp;gt; &amp;quot;+10 seconds&amp;quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;probability&amp;quot; =&amp;gt; 100&lt;br /&gt;
&amp;#41;&lt;br /&gt;
&lt;br /&gt;
strtotime - &amp;#91;internal&amp;#93;, line ??&lt;br /&gt;
CacheEngine&amp;#58;&amp;#58;init&amp;#40;&amp;#41; - CORE/cake/libs/cache.php, line 570&lt;br /&gt;
FileEngine&amp;#58;&amp;#58;init&amp;#40;&amp;#41; - CORE/cake/libs/cache/file.php, line 81&lt;br /&gt;
Cache&amp;#58;&amp;#58;_buildEngine&amp;#40;&amp;#41; - CORE/cake/libs/cache.php, line 151&lt;br /&gt;
Cache&amp;#58;&amp;#58;config&amp;#40;&amp;#41; - CORE/cake/libs/cache.php, line 126&lt;br /&gt;
Configure&amp;#58;&amp;#58;__loadBootstrap&amp;#40;&amp;#41; - CORE/cake/libs/configure.php, line 421&lt;br /&gt;
Configure&amp;#58;&amp;#58;getInstance&amp;#40;&amp;#41; - CORE/cake/libs/configure.php, line 52&lt;br /&gt;
include - CORE/cake/bootstrap.php, line 38&lt;br /&gt;
require - APP/webroot/index.php, line 76&lt;br /&gt;
&amp;#91;main&amp;#93; - CORE/index.php, line 55&lt;br /&gt;
&lt;br /&gt;
Notice&amp;#58; Trying to get property of non-object in /srv/www/htdocs/cake/libs/cache/file.php on line 248 Fatal error&amp;#58; Call to a member function cd&amp;#40;&amp;#41; on a non-object in /srv/www/htdocs/cake/libs/cache/file.php on line 248 &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; I hope you can shed more light on this.&lt;br /&gt;
&lt;br /&gt;
Bent</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95650#95650</comments>
                                        <author>bbagger</author>
                                        <pubDate>Wed Dec 15, 2010 9:26 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95650#95650</guid>
                                      </item>
                                      <item>
                                        <title>CakePHP won't launch</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95620#95620</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=7892'&gt;NormanDunbar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Dec 14, 2010 4:55 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;I don't even get the green bars when I try to do the tutorial. I'm using CakePHP 1.3.6 and get a warning on timezone setting, which I ignore for the time being. Worse is this:&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
You &lt;span style=&quot;font-weight: bold&quot;&gt;must&lt;/span&gt; set the timezone, if you don't you get the error you are seeing.&lt;br /&gt;
&lt;br /&gt;
I know this, because I had it too.&lt;br /&gt;
&lt;br /&gt;
I changed mine to &amp;quot;Europe/London&amp;quot; but you can simply un-comment the UTC setting if you wish.&lt;br /&gt;
&lt;br /&gt;
Once you do that, refresh the browser and you will either get a yippee moment, or the next error!&lt;br /&gt;
&lt;br /&gt;
basically, the things you &lt;span style=&quot;font-weight: bold&quot;&gt;must&lt;/span&gt; do are:&lt;br /&gt;
&lt;br /&gt;
* Set the salt&lt;br /&gt;
* Set the crypto seed&lt;br /&gt;
* Set the timezone&lt;br /&gt;
* Make app/tmp directory writable to the webserver user. &lt;br /&gt;
&lt;br /&gt;
Anything less gives errors.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Norm.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95620#95620</comments>
                                        <author>NormanDunbar</author>
                                        <pubDate>Tue Dec 14, 2010 4:55 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95620#95620</guid>
                                      </item>
                                      <item>
                                        <title>CakePHP won't launch [SOLVED]</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=95209#95209</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=60039'&gt;bbagger&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Nov 27, 2010 12:04 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I don't even get the green bars when I try to do the tutorial. I'm using CakePHP 1.3.6 and get a warning on timezone setting, which I ignore for the time being. Worse is this:&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Notice&amp;#58; Trying to get property of non-object in /srv/www/htdocs/cake/libs/cache/file.php on line 248 Fatal error&amp;#58; Call to a member function cd&amp;#40;&amp;#41; on a non-object in /srv/www/htdocs/cake/libs/cache/file.php on line 248 &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; What am I doing wrong?&lt;br /&gt;
&lt;br /&gt;
Bent</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=95209#95209</comments>
                                        <author>bbagger</author>
                                        <pubDate>Sat Nov 27, 2010 12:04 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=95209#95209</guid>
                                      </item></channel></rss>