Re: Problem with cake 1.2 or not ?
Sorry for not answering sooner, I got some flue so I wasn't really turning my computer on :) Break time :) I just wanted to say thank you for the support , I really appreciate all of the information and advices you gave me. I guess I can wait then because there is no current emergency for upgrading and also after this business year there is probably going to be need for a lot of changes and upgrades and having that in mind it wouldn't be bad to start it in 2.0 than to make it first for 1.3 and then all the same for 2.0 again. Thanks On Feb 18, 3:24 pm, Alejandro Gómez Fernández agom...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Several years ago we neded to upgrade our management system from oracle 8 when oracle release the version 10. Our provider insists us for migrate to oracle 9 and then to 10. After a long analisys the systems engineers decide to migrate to oracle 10 because the process will be shorter. And it was fine and whe we finish the upgrade, oracle 10 was mostly very stable. This case seems pretty equal to me. Ryan's advice is the most recommended for almost every case. What Ryan says have the most sense if you need to do a seamless upgrade for whatever other reason. Remember, just like Ryans says, a production site will not be based in development versions of framework, database, etc. But if you make re-engineering to your site, this will take time and when you finish the 2.0 framework wil be stable. Or you can wait until this happend. If you upgrade to 1.3 and then again to 2.0 when there is no need to do, it's to make the work two times. Even more, you can add new features just like in any other software version upgrade and no only migrate the framework version. I think it's no needed to do the update now, because you want to upgrade for fear to PHP hosting can be changed to higher version and then the website will no work. This will not happpend in the short time, because php 5.3 it's now the top standard (php it's releasing yet 5.2.x versions) so your production website made with cakephp 1.2 will just work fine for several more months. Obviously, it's highly probable that there are no guide to do the upgrade from 1.2 to 2.0 Regards, Alejandro. El 18/02/2011 01:23, Ryan Schmidt escribi : On Feb 17, 2011, at 21:41, Alejandro G mez Fern ndez wrote: In case you want to upgrade cake to the most recent version I think you must see cake 2.0. It's a development version, but more or less, when you finish your migration it will be a production version. To change to an 1.3.x has no sense to me. Upgrading a production site to the development version of CakePHP that will become 2.0 makes no sense. The final version 2.0 is not released yet, and the developers have provided no guidance on when it will be completed. It might be tomorrow, it might be next year. In the mean time, you might run into issues, the response to which will generally be it's a development version, it's expected to have unresolved problems, go use the stable version. There is a published guide explaining how to upgrade a 1.2 site to 1.3. When 2.0 is released, I would expect there to be a guide explaining how to upgrade a site from 1.3 to 2.0. I would not, however, expect there to be a guide on how to upgrade from 1.2 directly to 2.0; users would be expected to have already upgraded to 1.3. Therefore it makes a great amount of sense to upgrade your 1.2 site to 1.3 now, verify that you've followed the existing upgrade guide properly and that everything works, and publish your site with 1.3, and then, whenever 2.0 does come out, you can tackle that upgrade then. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNXoELAAoJEHQn9CmeN9DJsmwH/0hKu+83Fb7FxtFNIvpYEocm R+/jrMJCmwWWZMSoLOzF+aXH2fqcJd5evtMag4ErqjjFMIPrS/7JOZIrOM/P6dPK kM672hL/WKTNvzxOPsXx/ywq9ydGHUBz3NM5i23DRP+PDCWoucIfgceZpFuTG2+H AMRHmA/QIVg/zpLP3zzcqtW+eUcDDomUjOFRCVj2NDw6ReHCYh/hkcI4LED0tAX9 PSLPGrOVH6KodySzx+Os3/ABdFUyJtSczqwAa+qOfwLMZiV5S67IoRYMnvtYUYgq 4nfy4/pK/swKOSCpfZneNp1X+/zi7pr2ueFAR0FnMt+lN+3JjrdluwXNtQQsmeU= =Tcoo -END PGP SIGNATURE- -- 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
Re: Problem with cake 1.2 or not ?
Yeah , and also just because this time it makes more sense to wait for a new version of cake it is a rule. The other opinions about upgrading to 1.3 first are also justified. So some kind of conclusion is that there are no rules on when to upgrade immediately or wait for an even newer version, it depends from case to case. :) All the best Milos On Feb 21, 12:42 am, Miloš Vučinić milosvuci...@gmail.com wrote: Sorry for not answering sooner, I got some flue so I wasn't really turning my computer on :) Break time :) I just wanted to say thank you for the support , I really appreciate all of the information and advices you gave me. I guess I can wait then because there is no current emergency for upgrading and also after this business year there is probably going to be need for a lot of changes and upgrades and having that in mind it wouldn't be bad to start it in 2.0 than to make it first for 1.3 and then all the same for 2.0 again. Thanks On Feb 18, 3:24 pm, Alejandro Gómez Fernández agom...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Several years ago we neded to upgrade our management system from oracle 8 when oracle release the version 10. Our provider insists us for migrate to oracle 9 and then to 10. After a long analisys the systems engineers decide to migrate to oracle 10 because the process will be shorter. And it was fine and whe we finish the upgrade, oracle 10 was mostly very stable. This case seems pretty equal to me. Ryan's advice is the most recommended for almost every case. What Ryan says have the most sense if you need to do a seamless upgrade for whatever other reason. Remember, just like Ryans says, a production site will not be based in development versions of framework, database, etc. But if you make re-engineering to your site, this will take time and when you finish the 2.0 framework wil be stable. Or you can wait until this happend. If you upgrade to 1.3 and then again to 2.0 when there is no need to do, it's to make the work two times. Even more, you can add new features just like in any other software version upgrade and no only migrate the framework version. I think it's no needed to do the update now, because you want to upgrade for fear to PHP hosting can be changed to higher version and then the website will no work. This will not happpend in the short time, because php 5.3 it's now the top standard (php it's releasing yet 5.2.x versions) so your production website made with cakephp 1.2 will just work fine for several more months. Obviously, it's highly probable that there are no guide to do the upgrade from 1.2 to 2.0 Regards, Alejandro. El 18/02/2011 01:23, Ryan Schmidt escribi : On Feb 17, 2011, at 21:41, Alejandro G mez Fern ndez wrote: In case you want to upgrade cake to the most recent version I think you must see cake 2.0. It's a development version, but more or less, when you finish your migration it will be a production version. To change to an 1.3.x has no sense to me. Upgrading a production site to the development version of CakePHP that will become 2.0 makes no sense. The final version 2.0 is not released yet, and the developers have provided no guidance on when it will be completed. It might be tomorrow, it might be next year. In the mean time, you might run into issues, the response to which will generally be it's a development version, it's expected to have unresolved problems, go use the stable version. There is a published guide explaining how to upgrade a 1.2 site to 1.3. When 2.0 is released, I would expect there to be a guide explaining how to upgrade a site from 1.3 to 2.0. I would not, however, expect there to be a guide on how to upgrade from 1.2 directly to 2.0; users would be expected to have already upgraded to 1.3. Therefore it makes a great amount of sense to upgrade your 1.2 site to 1.3 now, verify that you've followed the existing upgrade guide properly and that everything works, and publish your site with 1.3, and then, whenever 2.0 does come out, you can tackle that upgrade then. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNXoELAAoJEHQn9CmeN9DJsmwH/0hKu+83Fb7FxtFNIvpYEocm R+/jrMJCmwWWZMSoLOzF+aXH2fqcJd5evtMag4ErqjjFMIPrS/7JOZIrOM/P6dPK kM672hL/WKTNvzxOPsXx/ywq9ydGHUBz3NM5i23DRP+PDCWoucIfgceZpFuTG2+H AMRHmA/QIVg/zpLP3zzcqtW+eUcDDomUjOFRCVj2NDw6ReHCYh/hkcI4LED0tAX9 PSLPGrOVH6KodySzx+Os3/ABdFUyJtSczqwAa+qOfwLMZiV5S67IoRYMnvtYUYgq 4nfy4/pK/swKOSCpfZneNp1X+/zi7pr2ueFAR0FnMt+lN+3JjrdluwXNtQQsmeU= =Tcoo -END PGP SIGNATURE- -- 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.
Re: Problem with cake 1.2 or not ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Several years ago we neded to upgrade our management system from oracle 8 when oracle release the version 10. Our provider insists us for migrate to oracle 9 and then to 10. After a long analisys the systems engineers decide to migrate to oracle 10 because the process will be shorter. And it was fine and whe we finish the upgrade, oracle 10 was mostly very stable. This case seems pretty equal to me. Ryan's advice is the most recommended for almost every case. What Ryan says have the most sense if you need to do a seamless upgrade for whatever other reason. Remember, just like Ryans says, a production site will not be based in development versions of framework, database, etc. But if you make re-engineering to your site, this will take time and when you finish the 2.0 framework wil be stable. Or you can wait until this happend. If you upgrade to 1.3 and then again to 2.0 when there is no need to do, it's to make the work two times. Even more, you can add new features just like in any other software version upgrade and no only migrate the framework version. I think it's no needed to do the update now, because you want to upgrade for fear to PHP hosting can be changed to higher version and then the website will no work. This will not happpend in the short time, because php 5.3 it's now the top standard (php it's releasing yet 5.2.x versions) so your production website made with cakephp 1.2 will just work fine for several more months. Obviously, it's highly probable that there are no guide to do the upgrade from 1.2 to 2.0 Regards, Alejandro. El 18/02/2011 01:23, Ryan Schmidt escribió: On Feb 17, 2011, at 21:41, Alejandro Gómez Fernández wrote: In case you want to upgrade cake to the most recent version I think you must see cake 2.0. It's a development version, but more or less, when you finish your migration it will be a production version. To change to an 1.3.x has no sense to me. Upgrading a production site to the development version of CakePHP that will become 2.0 makes no sense. The final version 2.0 is not released yet, and the developers have provided no guidance on when it will be completed. It might be tomorrow, it might be next year. In the mean time, you might run into issues, the response to which will generally be it's a development version, it's expected to have unresolved problems, go use the stable version. There is a published guide explaining how to upgrade a 1.2 site to 1.3. When 2.0 is released, I would expect there to be a guide explaining how to upgrade a site from 1.3 to 2.0. I would not, however, expect there to be a guide on how to upgrade from 1.2 directly to 2.0; users would be expected to have already upgraded to 1.3. Therefore it makes a great amount of sense to upgrade your 1.2 site to 1.3 now, verify that you've followed the existing upgrade guide properly and that everything works, and publish your site with 1.3, and then, whenever 2.0 does come out, you can tackle that upgrade then. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNXoELAAoJEHQn9CmeN9DJsmwH/0hKu+83Fb7FxtFNIvpYEocm R+/jrMJCmwWWZMSoLOzF+aXH2fqcJd5evtMag4ErqjjFMIPrS/7JOZIrOM/P6dPK kM672hL/WKTNvzxOPsXx/ywq9ydGHUBz3NM5i23DRP+PDCWoucIfgceZpFuTG2+H AMRHmA/QIVg/zpLP3zzcqtW+eUcDDomUjOFRCVj2NDw6ReHCYh/hkcI4LED0tAX9 PSLPGrOVH6KodySzx+Os3/ABdFUyJtSczqwAa+qOfwLMZiV5S67IoRYMnvtYUYgq 4nfy4/pK/swKOSCpfZneNp1X+/zi7pr2ueFAR0FnMt+lN+3JjrdluwXNtQQsmeU= =Tcoo -END PGP SIGNATURE- -- 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
Re: Problem with cake 1.2 or not ?
Thank you guys , you have really helped !!! I apologize for not answering sooner because I was busy fixing this issue and now is OK. You confirmed what i suspected and that is that this hosting was not good enough. It had mysql timeout for just 10 sec's and basically when web site needed to make cache to all 35 tables it always got an error. This was not cakephp error. On godaddy's most cheap hosting it works OK , as well as on one other dedicated server which host around 50 websites from my friend who gave me a test account to see if it works out. I hope this thread will also help somebody else having same issue. I would like to ask now for an opinion because I am not so experienced in cakephp programming. So this web site now works fine with cake 1.2 , I may have to update a thing or two but in general it is OK. Would you suggest an upgrade to the most recent version, or do you think it is not necessary. My fear is that at some point, PHP hosting can be changed to higher version and that out of a blue the website will not work. Is my fear justified or am I just talking nonsense ? Thank you kindly for your help ! All the best Milos On Feb 17, 1:40 pm, cricket zijn.digi...@gmail.com wrote: On Wed, Feb 16, 2011 at 1:03 PM, Miloš Vučinić milosvuci...@gmail.com wrote: Now, from time to time i get the warining: Warning (512): SQL Error: 2006: MySQL server has gone away [CORE/cake/libs/model/datasources/ dbo_source.php, line 525] This is not a Cake issue. It may appear to be because it mentions dbo_source.php but that's simply passing on the message as reported by MySQL. Use google to search Error: 2006: MySQL server has gone away. You should contact your hosting company about it. -- 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
Re: Problem with cake 1.2 or not ?
I would always suggest upgrading to the newest stable version. The developers might only release new features or bugfixes in the newest versions; you would probably want to have those. On Feb 17, 2011, at 19:10, Miloš Vučinić wrote: So this web site now works fine with cake 1.2 , I may have to update a thing or two but in general it is OK. Would you suggest an upgrade to the most recent version, or do you think it is not necessary. -- 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
Re: Problem with cake 1.2 or not ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cake 1.2 works fine with php 5.3. Several hosting providers lets you configure what version of php you want to use (for example, one of mine, let my choose between php 4, 5.0 or 5.3) Remember you always can change your hosting provider, so you can choose one that supports you desired php version. In case you want to upgrade cake to the most recent version I think you must see cake 2.0. It's a development version, but more or less, when you finish your migration it will be a production version. To change to an 1.3.x has no sense to me. Alejandro. El 17/02/2011 22:10, Miloš Vučinić escribió: Thank you guys , you have really helped !!! ... So this web site now works fine with cake 1.2 , I may have to update a thing or two but in general it is OK. Would you suggest an upgrade to the most recent version, or do you think it is not necessary. My fear is that at some point, PHP hosting can be changed to higher version and that out of a blue the website will not work. Is my fear justified or am I just talking nonsense ? ... Milos -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNXep9AAoJEHQn9CmeN9DJ71EH/3bBaOnSCSJuy1kP7JRZPWgi OKj+UF6nIRBVZXPOmuuWdTH/ST6/jlm4zI13C559P9JsRMqVEaXuRD09/2QJsSAB HBickzyb5+HLURQqH4PtbzY855toWyX4uMa9rmCiKz2yJG4mmAbkC/MfC+ppmZ5o iZxDVtfsLcyBs8ZpL8QgzbB6sXns3ZXGPaTBMU6NCOQT3NBcnU8vM9MQffLixY7n 0JAyPEanrIRGLlhJQnlS0RvnZCHY8YSP4mLXtdWKkD5kMSW2EcDrjGTbwkWXV/JV K1GDJ0NnauNcJNoOA4IswHs6ilykUVuj1p1GRwFlo66o1b4TKk0Z/eq/c7o90Us= =lvoc -END PGP SIGNATURE- -- 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
Re: Problem with cake 1.2 or not ?
On Feb 17, 2011, at 21:41, Alejandro Gómez Fernández wrote: In case you want to upgrade cake to the most recent version I think you must see cake 2.0. It's a development version, but more or less, when you finish your migration it will be a production version. To change to an 1.3.x has no sense to me. Upgrading a production site to the development version of CakePHP that will become 2.0 makes no sense. The final version 2.0 is not released yet, and the developers have provided no guidance on when it will be completed. It might be tomorrow, it might be next year. In the mean time, you might run into issues, the response to which will generally be it's a development version, it's expected to have unresolved problems, go use the stable version. There is a published guide explaining how to upgrade a 1.2 site to 1.3. When 2.0 is released, I would expect there to be a guide explaining how to upgrade a site from 1.3 to 2.0. I would not, however, expect there to be a guide on how to upgrade from 1.2 directly to 2.0; users would be expected to have already upgraded to 1.3. Therefore it makes a great amount of sense to upgrade your 1.2 site to 1.3 now, verify that you've followed the existing upgrade guide properly and that everything works, and publish your site with 1.3, and then, whenever 2.0 does come out, you can tackle that upgrade then. -- 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
Problem with cake 1.2 or not ?
Hi guys, I am a little bit desperate. My hositng house moved to php 5.3 but my web site is on cake php 1.2 made for earlier php versions. My bad luck is that at the very same moment we added shopping cart to the web site when the hosting house changed to php 5.3 and made some restrictions about usage of hosting (shared hosting usage). Now, from time to time i get the warining: Warning (512): SQL Error: 2006: MySQL server has gone away [CORE/cake/libs/model/datasources/ dbo_source.php, line 525] and web site doesn't work with mysql unless it already has cashed content. The rest just doesn't work... Do you think it's a bad hosting or is it possible that cake 1.2 just can't work anymore on new php servers. Also is there a way to upgrade your cms form 1.2 to 1.3 and what would be the steps ? Thanks guys ! -- 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
Re: Problem with cake 1.2 or not ?
On Feb 16, 2011, at 12:03, Miloš Vučinić wrote: I am a little bit desperate. My hositng house moved to php 5.3 but my web site is on cake php 1.2 made for earlier php versions. My bad luck is that at the very same moment we added shopping cart to the web site when the hosting house changed to php 5.3 and made some restrictions about usage of hosting (shared hosting usage). Now, from time to time i get the warining: Warning (512): SQL Error: 2006: MySQL server has gone away [CORE/cake/libs/model/datasources/ dbo_source.php, line 525] and web site doesn't work with mysql unless it already has cashed content. The rest just doesn't work... Do you think it's a bad hosting or is it possible that cake 1.2 just can't work anymore on new php servers. Ask your hosting provider why their mysql server has gone away. Maybe they now have more strict limits on how much data you can fetch, or how much CPU time each query can take? Perhaps you can optimize your queries. Maybe it's as simple as adding indexes in the right places. Also is there a way to upgrade your cms form 1.2 to 1.3 and what would be the steps ? I would say of course there is always a way. But what is this cms form? -- 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
Re: Problem with cake 1.2 or not ?
On 16 February 2011 18:09, Ryan Schmidt google-2...@ryandesign.com wrote: Also is there a way to upgrade your cms form 1.2 to 1.3 and what would be the steps ? I would say of course there is always a way. But what is this cms form? Is there a way to upgrade CakePHP from 1.2 to 1.3 Please see attached link: http://book.cakephp.org/#!/view/1561/Migrating-from-CakePHP-1-2-to-1-3 -- Kind Regards Stephen @ NinjaCoderMonkey www.ninjacodermonkey.co.uk -- 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
Re: Problem with cake 1.2 or not ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Milos, i'm developing with php 5.3.1 in my development server and it's ok. Maybe i have very few data records, but i'm working with this server since january 5 and i have no problem. My mysql is 5.1.41 and my apache version is 2.2.14 I hope this info helps you. Regards, Alejandro. El 16/02/2011 15:03, Milo? Vu?ini? escribió: Hi guys, I am a little bit desperate. My hositng house moved to php 5.3 but my web site is on cake php 1.2 made for earlier php versions. My bad luck is that at the very same moment we added shopping cart to the web site when the hosting house changed to php 5.3 and made some restrictions about usage of hosting (shared hosting usage). Now, from time to time i get the warining: Warning (512): SQL Error: 2006: MySQL server has gone away [CORE/cake/libs/model/datasources/ dbo_source.php, line 525] and web site doesn't work with mysql unless it already has cashed content. The rest just doesn't work... Do you think it's a bad hosting or is it possible that cake 1.2 just can't work anymore on new php servers. Also is there a way to upgrade your cms form 1.2 to 1.3 and what would be the steps ? Thanks guys ! -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNXJcmAAoJEHQn9CmeN9DJSFIH/AlSvGI0V2VImuMAplk26CCa 2ZgEdDJ8O+9+Ve3URV5L2jfS0TmA8dqCwQaepdIo7ihjzvbG+vJSkOCrpdfbJV7b Vebdl/LLLV6f8t3CNIr46ybb45m5/DqoQEy2fpoQPPEr2l/Tclk4O3QQ4pzt1AyM xzEZf6R4C3ac4MK6rmYnsvLmB4X6pZfZrRKCk7+WYO/euaDA7zI22GLuW4bF0G1o F9RybLM5oPz+Lv9R/qVRMbVwuiR89LsOF9umJfsf2pqL5THCFVT2zVKwJf0AzKQC yT3AwIrV2KoLqH65E+e0H98RZXbYpq0qYEJKsq6ftkCw55e7EVoIRo5lQJENiYE= =Ceb9 -END PGP SIGNATURE- -- 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
Problem with cake 1.2
I've intall cake1.2 but a error message appear: Notice (8): unserialize() [function.unserialize]: Argument is not a string [CORE/cake/libs/cache/file.php, line 184] Does some one know why? visit my url to see the problem: http://www.tiagocurcio.com/cake/ thank's --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem with cake 1.2
is your 'tmp' folder set to writable? -- Fahad http://frinity.blogspot.com On Jul 14, 8:59 am, Tiago Curcio [EMAIL PROTECTED] wrote: I've intall cake1.2 but a error message appear: Notice (8): unserialize() [function.unserialize]: Argument is not a string [CORE/cake/libs/cache/file.php, line 184] Does some one know why? visit my url to see the problem:http://www.tiagocurcio.com/cake/ thank's --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Fixtures problem in Cake 1.2
A have no problem with a test of single model I said I cannot get records from the fixture for joined table --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Fixtures problem in Cake 1.2
I have the models Task and User ? class Task extends AppModel { var $name = 'Task'; var $belongsTo = array ( 'Author' = array ( 'className' = 'User', 'conditions'= '', 'order' = '', 'foreignKey'= 'user_id' )); ... } ? ? class User extends AppModel { var $name = 'User'; ... } ? Also I`m using fixtures // user_test_fixture.php ?php class UserTestFixture extends CakeTestFixture { var $name = 'UserTest'; var $useTable = 'users'; var $import = 'User'; var $records = array( array ( 'id' = '1', 'username' = 'admin', 'password' = '4fea28c4a708335fbd36db8166edc95c', //admpass 'fullname' = 'Admin', 'blocked' = '0', 'created' = '2007-10-1 10:39:23', 'updated' = '2007-10-1 10:41:31' ) ); } ? // task_test_fixture.php ?php class TaskTestFixture extends CakeTestFixture { var $name = 'TaskTest'; var $useTable = 'tasks'; var $import = 'Task'; var $records = array( array ( 'id'= '1', 'name' = 'Project-1', 'info' = 'Prj-1 description', 'user_id' = '1', 'parent_id' = '0', 'created' = '2007-10-26 19:05:52', 'modified' = '2007-10-26 19:05:00', 'starttime' = '-00-00 00:00:00', 'deadline' = '2007-11-15 02:57:49', 'hours' = '40', 'done' = '0', 'hidden'= '0' ) ); } And the following I have in my task.test.php ? loadModel( 'Task' ); class TaskTest extends Task { var $name = 'TaskTest'; var $useTable = 'tasks'; var $useDbConfig = 'test_suite'; } class TaskTestCase extends CakeTestCase { var $fixtures = array( 'task_test', 'user_test' ); var $model = null; function testCreate(){ $this-model = new TaskTest(); } function testAuthor(){ $this-model-id = 2; $task = $this-model-read(); $this-assertEqual( $task['Author']['username'], 'admin' ); } } But the test fails because $task['Author'] contains data from working database, not from the fixture. How could I fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Fixtures problem in Cake 1.2
Robby, can you share your working code with us, because I am having the same problem as sidr. I want to reuse app model database field definition (the one that CakePHP auto resolves from a database) for my tests but with test records provided in fixture. - app model auto filed definition and real data works - fixture field definition and fixture record set works - app model auto filed definition and fixture record set doesn't work (was it ever intended?) p.s. cake version is 1.2.0-6311 beta ivl On Jan 11, 2:33 pm, Robby Anderson [EMAIL PROTECTED] wrote: I had a beast of a time with fixtures as well, but finally got them to work. Looking at your test model code, try removing the $useTable from the TestTasks declaration. I think that is the line that is forcing the production table instead of the test_suite table. On Jan 11, 3:48 am, sidr [EMAIL PROTECTED] wrote: I have the models Task and User ? class Task extends AppModel { var $name = 'Task'; var $belongsTo = array ( 'Author' = array ( 'className' = 'User', 'conditions' = '', 'order' = '', 'foreignKey' = 'user_id' )); ...} ? ? class User extends AppModel { var $name = 'User'; ...} ? Also I`m using fixtures // user_test_fixture.php ?php class UserTestFixture extends CakeTestFixture { var $name = 'UserTest'; var $useTable = 'users'; var $import = 'User'; var $records = array( array ( 'id' = '1', 'username' = 'admin', 'password' = '4fea28c4a708335fbd36db8166edc95c', //admpass 'fullname' = 'Admin', 'blocked' = '0', 'created' = '2007-10-1 10:39:23', 'updated' = '2007-10-1 10:41:31' ) );} ? // task_test_fixture.php ?php class TaskTestFixture extends CakeTestFixture { var $name = 'TaskTest'; var $useTable = 'tasks'; var $import = 'Task'; var $records = array( array ( 'id' = '1', 'name' = 'Project-1', 'info' = 'Prj-1 description', 'user_id' = '1', 'parent_id' = '0', 'created' = '2007-10-26 19:05:52', 'modified' = '2007-10-26 19:05:00', 'starttime' = '-00-00 00:00:00', 'deadline' = '2007-11-15 02:57:49', 'hours' = '40', 'done' = '0', 'hidden' = '0' ) ); } And the following I have in my task.test.php ? loadModel( 'Task' ); class TaskTest extends Task { var $name = 'TaskTest'; var $useTable = 'tasks'; var $useDbConfig = 'test_suite'; } class TaskTestCase extends CakeTestCase { var $fixtures = array( 'task_test', 'user_test' ); var $model = null; function testCreate(){ $this-model = new TaskTest(); } function testAuthor(){ $this-model-id = 2; $task = $this-model-read(); $this-assertEqual( $task['Author']['username'], 'admin' ); } } But the test fails because $task['Author'] contains data from working database, not from the fixture. How could I fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Fixtures problem in Cake 1.2
Robby, can you share your working code with us, because I am having the same problem as sidr. I want to reuse app model database field definition (the one that CakePHP auto resolves from a database) for my tests but with record set provided in fixture. - app model auto filed definition and real data works - fixture field definition and fixture record set works - app model auto filed definition and fixture record set doesn't work (was it ever intended?) p.s. cake version is 1.2.0-6311 beta ivl On 11 jan., 14:33, Robby Anderson [EMAIL PROTECTED] wrote: I had a beast of a time with fixtures as well, but finally got them to work. Looking at your test model code, try removing the $useTable from the TestTasks declaration. I think that is the line that is forcing the production table instead of the test_suite table. On Jan 11, 3:48 am, sidr [EMAIL PROTECTED] wrote: I have the models Task and User ? class Task extends AppModel { var $name = 'Task'; var $belongsTo = array ( 'Author' = array ( 'className' = 'User', 'conditions' = '', 'order' = '', 'foreignKey' = 'user_id' )); ...} ? ? class User extends AppModel { var $name = 'User'; ...} ? Also I`m using fixtures // user_test_fixture.php ?php class UserTestFixture extends CakeTestFixture { var $name = 'UserTest'; var $useTable = 'users'; var $import = 'User'; var $records = array( array ( 'id' = '1', 'username' = 'admin', 'password' = '4fea28c4a708335fbd36db8166edc95c', //admpass 'fullname' = 'Admin', 'blocked' = '0', 'created' = '2007-10-1 10:39:23', 'updated' = '2007-10-1 10:41:31' ) );} ? // task_test_fixture.php ?php class TaskTestFixture extends CakeTestFixture { var $name = 'TaskTest'; var $useTable = 'tasks'; var $import = 'Task'; var $records = array( array ( 'id' = '1', 'name' = 'Project-1', 'info' = 'Prj-1 description', 'user_id' = '1', 'parent_id' = '0', 'created' = '2007-10-26 19:05:52', 'modified' = '2007-10-26 19:05:00', 'starttime' = '-00-00 00:00:00', 'deadline' = '2007-11-15 02:57:49', 'hours' = '40', 'done' = '0', 'hidden' = '0' ) ); } And the following I have in my task.test.php ? loadModel( 'Task' ); class TaskTest extends Task { var $name = 'TaskTest'; var $useTable = 'tasks'; var $useDbConfig = 'test_suite'; } class TaskTestCase extends CakeTestCase { var $fixtures = array( 'task_test', 'user_test' ); var $model = null; function testCreate(){ $this-model = new TaskTest(); } function testAuthor(){ $this-model-id = 2; $task = $this-model-read(); $this-assertEqual( $task['Author']['username'], 'admin' ); } } But the test fails because $task['Author'] contains data from working database, not from the fixture. How could I fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Fixtures problem in Cake 1.2
I had a beast of a time with fixtures as well, but finally got them to work. Looking at your test model code, try removing the $useTable from the TestTasks declaration. I think that is the line that is forcing the production table instead of the test_suite table. On Jan 11, 3:48 am, sidr [EMAIL PROTECTED] wrote: I have the models Task and User ? class Task extends AppModel { var $name = 'Task'; var $belongsTo = array ( 'Author' = array ( 'className' = 'User', 'conditions' = '', 'order' = '', 'foreignKey' = 'user_id' )); ...} ? ? class User extends AppModel { var $name = 'User'; ...} ? Also I`m using fixtures // user_test_fixture.php ?php class UserTestFixture extends CakeTestFixture { var $name = 'UserTest'; var $useTable = 'users'; var $import = 'User'; var $records = array( array ( 'id' = '1', 'username' = 'admin', 'password' = '4fea28c4a708335fbd36db8166edc95c', //admpass 'fullname' = 'Admin', 'blocked' = '0', 'created' = '2007-10-1 10:39:23', 'updated' = '2007-10-1 10:41:31' ) );} ? // task_test_fixture.php ?php class TaskTestFixture extends CakeTestFixture { var $name = 'TaskTest'; var $useTable = 'tasks'; var $import = 'Task'; var $records = array( array ( 'id' = '1', 'name' = 'Project-1', 'info' = 'Prj-1 description', 'user_id' = '1', 'parent_id' = '0', 'created' = '2007-10-26 19:05:52', 'modified' = '2007-10-26 19:05:00', 'starttime' = '-00-00 00:00:00', 'deadline' = '2007-11-15 02:57:49', 'hours' = '40', 'done' = '0', 'hidden' = '0' ) ); } And the following I have in my task.test.php ? loadModel( 'Task' ); class TaskTest extends Task { var $name = 'TaskTest'; var $useTable = 'tasks'; var $useDbConfig = 'test_suite'; } class TaskTestCase extends CakeTestCase { var $fixtures = array( 'task_test', 'user_test' ); var $model = null; function testCreate(){ $this-model = new TaskTest(); } function testAuthor(){ $this-model-id = 2; $task = $this-model-read(); $this-assertEqual( $task['Author']['username'], 'admin' ); } } But the test fails because $task['Author'] contains data from working database, not from the fixture. How could I fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Fixtures problem in Cake 1.2
the test case: http://bin.cakephp.org/view/1981319085 fixtures: http://bin.cakephp.org/view/988525363 works like a charm :) HTH, Marcin Domanski aka kabturek http://tumble.kabturek.info On Jan 11, 4:44 pm, ivlcic [EMAIL PROTECTED] wrote: Robby, can you share your working code with us, because I am having the same problem as sidr. I want to reuse app model database field definition (the one that CakePHP auto resolves from a database) for my tests but with test records provided in fixture. - app model auto filed definition and real data works - fixture field definition and fixture record set works - app model auto filed definition and fixture record set doesn't work (was it ever intended?) p.s. cake version is 1.2.0-6311 beta ivl On Jan 11, 2:33 pm, Robby Anderson [EMAIL PROTECTED] wrote: I had a beast of a time with fixtures as well, but finally got them to work. Looking at your test model code, try removing the $useTable from the TestTasks declaration. I think that is the line that is forcing the production table instead of the test_suite table. On Jan 11, 3:48 am, sidr [EMAIL PROTECTED] wrote: I have the models Task and User ? class Task extends AppModel { var $name = 'Task'; var $belongsTo = array ( 'Author' = array ( 'className' = 'User', 'conditions'= '', 'order' = '', 'foreignKey'= 'user_id' )); ...} ? ? class User extends AppModel { var $name = 'User'; ...} ? Also I`m using fixtures // user_test_fixture.php ?php class UserTestFixture extends CakeTestFixture { var $name = 'UserTest'; var $useTable = 'users'; var $import = 'User'; var $records = array( array ( 'id' = '1', 'username' = 'admin', 'password' = '4fea28c4a708335fbd36db8166edc95c', //admpass 'fullname' = 'Admin', 'blocked' = '0', 'created' = '2007-10-1 10:39:23', 'updated' = '2007-10-1 10:41:31' ) );} ? // task_test_fixture.php ?php class TaskTestFixture extends CakeTestFixture { var $name = 'TaskTest'; var $useTable = 'tasks'; var $import = 'Task'; var $records = array( array ( 'id'= '1', 'name' = 'Project-1', 'info' = 'Prj-1 description', 'user_id' = '1', 'parent_id' = '0', 'created' = '2007-10-26 19:05:52', 'modified' = '2007-10-26 19:05:00', 'starttime' = '-00-00 00:00:00', 'deadline' = '2007-11-15 02:57:49', 'hours' = '40', 'done' = '0', 'hidden'= '0' ) ); } And the following I have in my task.test.php ? loadModel( 'Task' ); class TaskTest extends Task { var $name = 'TaskTest'; var $useTable = 'tasks'; var $useDbConfig = 'test_suite'; } class TaskTestCase extends CakeTestCase { var $fixtures = array( 'task_test', 'user_test' ); var $model = null; function testCreate(){ $this-model = new TaskTest(); } function testAuthor(){ $this-model-id = 2; $task = $this-model-read(); $this-assertEqual( $task['Author']['username'], 'admin' ); } } But the test fails because $task['Author'] contains data from working database, not from the fixture. How could I fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
phpgacl for CakePHP problem in Cake 1.2
Hey, I'm using Cake 1.2 with phpgacl for CakePHP 1.0.2b and I've been having a problem adding permissions. I have fixed a lot of the 1.1 to 1.2 conversion errors, but it's obviously not liking something in either the plugin or the vendor lib itself and is failing to update the database, so it throws a flash error. Has anyone successfully gotten phpgacl for CakePHP to work for Cake 1.2? Is there another plugin that you would recommend for ACL that would give me an actual user interface to assign permissions to groups and users with? Every ACL tutorial I've read has only repeated the same things, in a way that I still don't understand much of it. I know it sounds rash, but I don't have the time to commit to trying to understand ACL the old fashioned way and writing a lib to control it for me. If you think you can help me on either fronts, please let me know. I can send you whatever files you need. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---