Re: Cake Generating Odd Session Errors
I've followed the tutorial for the fck helper from the bakery http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp and included the helper in my app_controller as several controllers will use this helper. It only creates the error on this one page that is using a requestAction & renderElement, but nowhere in either is it actually trying to load the fck editor. this is the helper causing the issue on one page only. for some reason, my renderElement is generating a session warning because of this even though it's not trying to load the fck editor into any text areas. every other area is functional, as well as the editor loads properly when called. webroot.'js/'; return<< fckLoader_$did = function () { var bFCKeditor_$did = new FCKeditor('$did'); bFCKeditor_$did.BasePath = '$js'; bFCKeditor_$did.ToolbarSet = '$toolbar'; bFCKeditor_$did.ReplaceTextarea(); } fckLoader_$did(); FCK_CODE; } function fileBrowserInput($fieldName, $htmlAttributes = array(), $return = false) { $output = $this->input($fieldName, $htmlAttributes, $return); if (!isset($htmlAttributes['id'])) { $htmlAttributes['id'] = $this->model . Inflector::camelize($this->field); } $output .= ''; $output .= "//webroot."js/'\n"; $output .= "var url = fck.BasePath + 'editor/filemanager/ browser/default/browser.html?Type=Image&Connector=connectors/php/ connector.php';\n"; $output .= "var sOptions = 'toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes';\n"; $output .= "sOptions += ',width=640';\n"; $output .= "sOptions += ',height=480';\n"; $output .= "window.SetUrl = function(fileUrl){\n"; $output .= "\$(id).value = fileUrl;\n"; $output .= "}\n"; $output .= "var oWindow = window.open( url, 'FCKBrowseWindow', sOptions ) ;\n"; $output .= "}\n"; $output .= "//]]>\n"; $output .= ''; $output .= 'select an image...'; return $output; } } ?> On Jul 28, 11:47 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 7/29/07, r557 <[EMAIL PROTECTED]> wrote: > > > > > Yes, Aware of this. > > Then fix it - start with moving back the code in view - I think the errors > will still occur if the fck helper is an issue... work forwards from that > point... > > T > > -- > = > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > = --~--~-~--~~~---~--~~ 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: Cake Generating Odd Session Errors
On 7/29/07, r557 <[EMAIL PROTECTED]> wrote: > > > Yes, Aware of this. Then fix it - start with moving back the code in view - I think the errors will still occur if the fck helper is an issue... work forwards from that point... T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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: Cake Generating Odd Session Errors
Yes, Aware of this. On Jul 28, 11:28 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 7/29/07, r557 <[EMAIL PROTECTED]> wrote: > > > > > Warning: session_start(): Cannot send session cookie - headers already > > sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app > > \views\helpers\fck.php:44) > > It means what it says - your fck helper is messing up stuff > > HTH > > Tarique > > -- > = > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > = --~--~-~--~~~---~--~~ 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: Cake Generating Odd Session Errors
On 7/29/07, r557 <[EMAIL PROTECTED]> wrote: > > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app > \views\helpers\fck.php:44) It means what it says - your fck helper is messing up stuff HTH Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cake Generating Odd Session Errors
When i call a renderElement function, it is generating Session related issues. Code: renderElement('store_nav');?> Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app \views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som \cake\libs\session.php on line 154 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C: \apache2triad\htdocs\sonsofmaxwell\som\app\views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som\cake\libs\session.php on line 154 Warning: Cannot modify header information - headers already sent by (output started at C:\apache2triad\htdocs\sonsofmaxwell\som\app \views\helpers\fck.php:44) in C:\apache2triad\htdocs\sonsofmaxwell\som \cake\libs\session.php on line 155 I didn't receive these errors until i moved the code over to an Element: requestAction('categories/index');?> Categories link($category['Category']['name'],'/products/ index/' . $category['Category']['id'])?> Cart Links link('View Cart', '/', array('title' => 'View Cart')) ?> link('My Account', '/', array('title' => 'My Account')) ?> Customer Service link('Return Policy', '/', array('title' => 'Return Policy')) ?> Shipping Information link('Shipping Rates', '/', array('title' => 'Shipping Rates')) ?> --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---