Re: class.paths.php updated when debug=0
I was probably just mistaken earlier :) I just gave this some quick tests, and found that when debug=0, it only seems to update the class.paths.php file when new paths are found (eg the first time you go to a controller, that path is added). And everything seems to sail along fine if that file is non-writable, as it is always storing things in the local cache anyway (the class.paths.php is just a backup for the cache). On Nov 1, 12:59 am, MikeK <[EMAIL PROTECTED]> wrote: > I was under the impression that class-paths.php was only read from not > written to when debug was off. However I am observing that it is > written, and fFrom what I see in the code this file is written all the > time even with debugging off -- I saw a post from Grant previously > that this was not the case -- have things changed? > > Also, just curious, if your cache/persistent subdir was not writeable > and the attempts to write kept failing would cake continue to work? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
class.paths.php updated when debug=0
I was under the impression that class-paths.php was only read from not written to when debug was off. However I am observing that it is written, and fFrom what I see in the code this file is written all the time even with debugging off -- I saw a post from Grant previously that this was not the case -- have things changed? Also, just curious, if your cache/persistent subdir was not writeable and the attempts to write kept failing would cake continue to work? --~--~-~--~~~---~--~~ 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: class.paths.php
On Aug 13, 3:39 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > I'm really not sure what could be causing the issue. However, when > you run your site in production mode (DEBUG 0) then this file will not > be written to - only read from. So as long as it's not corrupted when > you first switch to DEBUG 0 it'll remain ok regardless of load. Does this mean that you need to run your cake app at least once with DEBUG > 0 before running in production mode? I moved app/tmp to /tmp and created a symbolic link to this location. This means that I don't have to tell cake about a different location, while temporary files are created on a local file system. This solved the problem (still having debug > 0). --~--~-~--~~~---~--~~ 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: class.paths.php
I'm really not sure what could be causing the issue. However, when you run your site in production mode (DEBUG 0) then this file will not be written to - only read from. So as long as it's not corrupted when you first switch to DEBUG 0 it'll remain ok regardless of load. On Windows I get random warnings about the class.paths.php not being writable. I'm not sure why this happens occasionally (perhaps two threads trying to write at once?), but it only happens on our Windows dev machines, and only in DEBUG > 0. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
class.paths.php
I just made an ajax app that has a couple of refreshing divs in it, using $ajax->remoteTimer. The elements usually update with the right content, but once and a while, this error message is served instead: > Warning: Unexpected character in input: ' in > [...]/app/tmp/cache/persistent/class.paths.php on line 25 or > Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in > [...]/app/tmp/cache/persistent/class.paths.php on line 14 Looking at snapshots of the file app/tmp/cache/persistent/ class.paths.php, shows that it's written incorrectly: 23 > $config['Components']['Core']['RequestHandlerComponent'] = array('path' => './cake/libs/controller/components/ request_handler.php', ); 24 > ller.php', ); 25 > $config['Components']['Core']['RequestHandlerComponent'] = array('path' => './cake/libs/controller/components/ request_handler.php', ); and: 12 > $config['Components']['Core']['SessionComponent'] = array('path' => './cake/libs/controller/components/session.php', ); 13 > ndler.php', ); 14 > $config['Components']['Core']['RequestHandlerComponent'] = array('path' => './cake/libs/controller/components/ request_handler.php', ); My entire app is hosted from an NFS mounted directory. Could that be causing these problems? Would it help to move the app/tmp directory to a local file system? Then my next questions are: how to do that / is there a configuration setting? And, how can I be certain that these errors won't pop up when for example the load on my site get's higher? Is it possible to switch off using the class.paths.php file which is obviously some sort of cache file? Any suggestions? Bram --~--~-~--~~~---~--~~ 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: wrong with class.paths.php
all folders under tmp have 777, and 644 for files, is it right? On May 5, 8:54 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > usually it means that your tmp folder doesn't have the right structure > and that it has incorrect permissions. Very often ftp and or > decompression utilities do not create empty folders, and often they do > not have the right permissions. > > On 5/5/07, davyke <[EMAIL PROTECTED]> wrote: > > > > > Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / > > home/www/chinoisdici/www/crystal/app/tmp/cache/persistent/ > > class.paths.php on line 12 > > > sometimes, i have this problem, do someone know where is the problem > > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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: wrong with class.paths.php
usually it means that your tmp folder doesn't have the right structure and that it has incorrect permissions. Very often ftp and or decompression utilities do not create empty folders, and often they do not have the right permissions. On 5/5/07, davyke <[EMAIL PROTECTED]> wrote: > > Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / > home/www/chinoisdici/www/crystal/app/tmp/cache/persistent/ > class.paths.php on line 12 > > sometimes, i have this problem, do someone know where is the problem > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
wrong with class.paths.php
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / home/www/chinoisdici/www/crystal/app/tmp/cache/persistent/ class.paths.php on line 12 sometimes, i have this problem, do someone know where is the problem --~--~-~--~~~---~--~~ 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: a probleme with class.paths.php
no, i have the same folders than cake initial app. a php syntext problem '/home/ www/chinoisdici/www/crystal/app/controllers/ yp_items_controller.php', ); $config['Components']['imageComponent'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/controllers/components/image.php', ); $config['Components']['fileComponent'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/controllers/components/file.php', ); $config['Components']['Core']['SessionComponent'] = array('path' => '/ home/www/chinoisdici/www/crystal/cake/libs/controller/components/ session.php', ); $config['Components']['stringComponent'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/controllers/components/string.php', ); $config['Controllers']['CfItemsController'] = array('path' => '/home/ www/chinoisdici/www/crystal/app/controllers/ cf_items_controller.php', ); $config['Components']['Core']['RequestHandlerComponent'] = array('path' => '/home/www/chinoisdici/www/crystal/cake/libs/ controller/components/request_handler.php', ); $config['Components']['Core']['RequestHandlerComponent'] = array('path' => '/home/www/chinoisdici/www/crystal/cake/libs/ controller/components/request_handler.php', ); $config['Helpers']['imageHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/image.php', ); $config['Helpers']['imageHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/image.php', ); $config['Helpers']['Core']['htmlHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/cake/libs/view/helpers/html.php', ); $config['Helpers']['Core']['htmlHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/cake/libs/view/helpers/html.php', ); $config['Helpers']['Core']['SessionHelper'] = array('path' => '/home/ www/chinoisdici/www/crystal/cake/libs/view/helpers/session.php', ); $config['Helpers']['timeHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/time.php', ); s/session.php', ); $config['Helpers']['dhtmlHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/dhtml.php', ); $config['Helpers']['timeHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/time.php', ); $config['Helpers']['Core']['javascriptHelper'] = array('path' => '/ home/www/chinoisdici/www/crystal/cake/libs/view/helpers/ javascript.php', ); $config['Helpers']['gmapHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/gmap.php', ); $config['Helpers']['dhtmlHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/dhtml.php', ); $config['Helpers']['cacheHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/cache.php', ); $config['Helpers']['Core']['javascriptHelper'] = array('path' => '/ home/www/chinoisdici/www/crystal/cake/libs/view/helpers/ javascript.php', ); $config['Helpers']['Core']['formHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/cake/libs/view/helpers/form.php', ); $config['Helpers']['cacheHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/cache.php', ); $config['Helpers']['Core']['formHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/cake/libs/view/helpers/form.php', ); $config['Helpers']['dformHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/dform.php', ); $config['Helpers']['cookieHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/cookie.php', ); $config['Helpers']['cookieHelper'] = array('path' => '/home/www/ chinoisdici/www/crystal/app/views/helpers/cookie.php', ); On Apr 26, 7:25 pm, rtconner <[EMAIL PROTECTED]> wrote: > I think you are missing some empty folders in the tmp directory. Did > you delete app/tmp or any folders under it? > Cake does not create those folders they must exist already. > > On Apr 26, 9:19 am, davyke <[EMAIL PROTECTED]> wrote: > > > Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / > > home/www/chinoisdici/www/crystal/app/tmp/cache/persistent/ > >class.paths.phpon line 13 > > > i don't konw what'sclass.paths.php, sometimes i get this probleme, > > could someone help me --~--~-~--~~~---~--~~ 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: a probleme with class.paths.php
I think you are missing some empty folders in the tmp directory. Did you delete app/tmp or any folders under it? Cake does not create those folders they must exist already. On Apr 26, 9:19 am, davyke <[EMAIL PROTECTED]> wrote: > Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / > home/www/chinoisdici/www/crystal/app/tmp/cache/persistent/ > class.paths.php on line 13 > > i don't konw what's class.paths.php, sometimes i get this probleme, > could someone help me --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
a probleme with class.paths.php
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in / home/www/chinoisdici/www/crystal/app/tmp/cache/persistent/ class.paths.php on line 13 i don't konw what's class.paths.php, sometimes i get this probleme, could someone help me --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---