Re: Help a noob with a session(?) issue
For anyone who comes across this later, the errors went away when I switched the cache engine in core.php to memcached :) On 16 Mar, 09:07, jorgt...@gmail.com jorgt...@gmail.com wrote: The tmp directories aren't affected, I only upload the controllers/ views/layouts that I've modified. The tmp dirs are still chmoded 777. On 15 Mar, 14:25, Julian 86 julianbohnenk...@googlemail.com wrote: How are you working on the server?? Did you push the new code with a ftp programm? Then you override the permissions of the tmp directory... On 15 Mrz., 14:19, jorgt...@gmail.com jorgt...@gmail.com wrote: I keep getting these error messages, they don't show up every time I view a page, but every 20th pageview or so. My tmp and session directory are set chmod 777. I've tried switching the session engine from php to cake's own, but that didn't make a difference. Has anyone come across this before, or has an idea of what I can try to fix it? Here's the error: Warning (2): fopen(/tmp/sess_4bbc6925e4dc2234b2253a5a6d370c27) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] $mode = rb $force = false fopen - [internal], line ?? File::open() - CORE/cake/libs/file.php, line 156 File::read() - CORE/cake/libs/file.php, line 175 FileEngine::clear() - CORE/cake/libs/cache/file.php, line 225 FileEngine::gc() - CORE/cake/libs/cache/file.php, line 109 Cache::engine() - CORE/cake/libs/cache.php, line 160 Cache::config() - CORE/cake/libs/cache.php, line 126 include - APP/config/core.php, line 238 Configure::__loadBootstrap() - CORE/cake/libs/configure.php, line 648 Configure::getInstance() - CORE/cake/libs/configure.php, line 137 include - CORE/cake/bootstrap.php, line 43 [main] - APP/webroot/index.php, line 77 Warning (2): fopen(/tmp/sess_60bc2ba565993335f0ad0be8d63af1eb) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_ac46f56f90566da28651803e9d8f8997) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_da8afc546b848ea90fd55b7f117c0ab6) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_fc0fe5113eb55f71fc9b1eb20de04999) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] ..and so on, this list continues endlessly (until I press stop in the browser) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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: Help a noob with a session(?) issue
The tmp directories aren't affected, I only upload the controllers/ views/layouts that I've modified. The tmp dirs are still chmoded 777. On 15 Mar, 14:25, Julian 86 julianbohnenk...@googlemail.com wrote: How are you working on the server?? Did you push the new code with a ftp programm? Then you override the permissions of the tmp directory... On 15 Mrz., 14:19, jorgt...@gmail.com jorgt...@gmail.com wrote: I keep getting these error messages, they don't show up every time I view a page, but every 20th pageview or so. My tmp and session directory are set chmod 777. I've tried switching the session engine from php to cake's own, but that didn't make a difference. Has anyone come across this before, or has an idea of what I can try to fix it? Here's the error: Warning (2): fopen(/tmp/sess_4bbc6925e4dc2234b2253a5a6d370c27) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] $mode = rb $force = false fopen - [internal], line ?? File::open() - CORE/cake/libs/file.php, line 156 File::read() - CORE/cake/libs/file.php, line 175 FileEngine::clear() - CORE/cake/libs/cache/file.php, line 225 FileEngine::gc() - CORE/cake/libs/cache/file.php, line 109 Cache::engine() - CORE/cake/libs/cache.php, line 160 Cache::config() - CORE/cake/libs/cache.php, line 126 include - APP/config/core.php, line 238 Configure::__loadBootstrap() - CORE/cake/libs/configure.php, line 648 Configure::getInstance() - CORE/cake/libs/configure.php, line 137 include - CORE/cake/bootstrap.php, line 43 [main] - APP/webroot/index.php, line 77 Warning (2): fopen(/tmp/sess_60bc2ba565993335f0ad0be8d63af1eb) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_ac46f56f90566da28651803e9d8f8997) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_da8afc546b848ea90fd55b7f117c0ab6) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_fc0fe5113eb55f71fc9b1eb20de04999) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] ..and so on, this list continues endlessly (until I press stop in the browser) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Help a noob with a session(?) issue
I keep getting these error messages, they don't show up every time I view a page, but every 20th pageview or so. My tmp and session directory are set chmod 777. I've tried switching the session engine from php to cake's own, but that didn't make a difference. Has anyone come across this before, or has an idea of what I can try to fix it? Here's the error: Warning (2): fopen(/tmp/sess_4bbc6925e4dc2234b2253a5a6d370c27) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] $mode = rb $force = false fopen - [internal], line ?? File::open() - CORE/cake/libs/file.php, line 156 File::read() - CORE/cake/libs/file.php, line 175 FileEngine::clear() - CORE/cake/libs/cache/file.php, line 225 FileEngine::gc() - CORE/cake/libs/cache/file.php, line 109 Cache::engine() - CORE/cake/libs/cache.php, line 160 Cache::config() - CORE/cake/libs/cache.php, line 126 include - APP/config/core.php, line 238 Configure::__loadBootstrap() - CORE/cake/libs/configure.php, line 648 Configure::getInstance() - CORE/cake/libs/configure.php, line 137 include - CORE/cake/bootstrap.php, line 43 [main] - APP/webroot/index.php, line 77 Warning (2): fopen(/tmp/sess_60bc2ba565993335f0ad0be8d63af1eb) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_ac46f56f90566da28651803e9d8f8997) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_da8afc546b848ea90fd55b7f117c0ab6) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] Warning (2): fopen(/tmp/sess_fc0fe5113eb55f71fc9b1eb20de04999) [function.fopen]: failed to open stream: Permission denied [CORE/cake/ libs/file.php, line 156] ..and so on, this list continues endlessly (until I press stop in the browser) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
How to route to action?
Hi, how can i route a URL such as mysite.com/my-special-blogpost to mysite.com/posts/view/1? I've tried: Router::connect('/my-special-blogpost', array('controller' = 'posts', 'action' = 'view/1')); but it doesnt seem to work any ideas? :) --~--~-~--~~~---~--~~ 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: How to route to action?
Nevermind, it should be Router::connect('/my-special-blogpost', array('controller' = 'posts', 'action' = 'view',1')); On 9 Mar, 20:27, jorgt...@gmail.com jorgt...@gmail.com wrote: Hi, how can i route a URL such as mysite.com/my-special-blogpost to mysite.com/posts/view/1? I've tried: Router::connect('/my-special-blogpost', array('controller' = 'posts', 'action' = 'view/1')); but it doesnt seem to work any ideas? :) --~--~-~--~~~---~--~~ 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: How to get images in RSS feed using RSShelper
anyone? On 12 Feb, 14:11, jorgt...@gmail.com jorgt...@gmail.com wrote: Hi, how can I insert images in my rss feed? I want one image to go with each post. Here's the basic setup: foreach ($entries as $entry) { $postTime = strtotime($entry['Entry']['created']); $entryLink = array( 'controller' = 'entries', 'action' = 'view', 'year' = date('Y', $postTime), 'month' = date('m', $postTime), 'day' = date('d', $postTime), $entry['Entry']['slug']); // This is the part where we clean the body text for output as the description // of the rss item, this needs to have only text to make sure the feed validates $bodyText = preg_replace('=\(.*?)\=is', '', $entry['Entry'] ['body']); $bodyText = $text-stripLinks($bodyText); $bodyText = Sanitize::stripAll($bodyText); $bodyText = $text-truncate($bodyText, 400, '...', true, true); echo $rss-item(array(), array( 'title' = $entry['Entry']['title'], 'link' = $entryLink, 'guid' = array('url' = $entryLink, 'isPermaLink' = 'true'), 'description' = $bodyText, 'dc:creator' = $entry['Entry']['author'], 'pubDate' = $entry['Entry']['created'])); } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to get images in RSS feed using RSShelper
Hi, how can I insert images in my rss feed? I want one image to go with each post. Here's the basic setup: foreach ($entries as $entry) { $postTime = strtotime($entry['Entry']['created']); $entryLink = array( 'controller' = 'entries', 'action' = 'view', 'year' = date('Y', $postTime), 'month' = date('m', $postTime), 'day' = date('d', $postTime), $entry['Entry']['slug']); // This is the part where we clean the body text for output as the description // of the rss item, this needs to have only text to make sure the feed validates $bodyText = preg_replace('=\(.*?)\=is', '', $entry['Entry'] ['body']); $bodyText = $text-stripLinks($bodyText); $bodyText = Sanitize::stripAll($bodyText); $bodyText = $text-truncate($bodyText, 400, '...', true, true); echo $rss-item(array(), array( 'title' = $entry['Entry']['title'], 'link' = $entryLink, 'guid' = array('url' = $entryLink, 'isPermaLink' = 'true'), 'description' = $bodyText, 'dc:creator' = $entry['Entry']['author'], 'pubDate' = $entry['Entry']['created'])); } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to echo just the page number? (pagination)
Hey there, I'm struggling with pagination, how can i echo just the current page number? Thanks! J --~--~-~--~~~---~--~~ 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: How to echo just the page number? (pagination)
You know, I could kiss you. Thank you! On 8 Feb, 23:50, brian bally.z...@gmail.com wrote: Would you believe ... $paginator-current() On Sun, Feb 8, 2009 at 5:04 PM, jorgt...@gmail.com jorgt...@gmail.com wrote: Hey there, I'm struggling with pagination, how can i echo just the current page number? Thanks! J --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---