jpcarre Posted October 3, 2006 Posted October 3, 2006 Hi, I am really a PhP beginner so apologize if my question is stupid. I did install the module Auto Emailer 1.4 on my website server (Linux),FCK editor as well From admin auto emailer control panel, when trying to modify settings, or customers, or orders from the control panel, i get this message : Warning: fopen(auto_emailer/auto_emailer.php): failed to open stream: Permission denied in /hsphere/local/home/azteledo/laboiteasucres.com/admin/includes/functions/auto_emailer.php on line 147 Warning: fwrite(): supplied argument is not a valid stream resource in /hsphere/local/home/azteledo/laboiteasucres.com/admin/includes/functions/auto_emailer.php on line 157 Cannot write to file (auto_emailer/auto_emailer.php) When using announce, I get this other message : Message: Fatal error: Call to undefined function: tep_draw_fckeditor() in /hsphere/local/home/azteledo/laboiteasucres.com/admin/auto_emailer_announce.php on line 178 Tried with files properties at 777, no change Is it something to set within FCK editor ? Could you help ? Thanks very much Quote
Jack_mcs Posted October 3, 2006 Posted October 3, 2006 The fopen problem sounds like a server setting problem. You should ask your host to see if they are preventing that. For the second problem, the instructions say to setup th epath like this $oFCKeditor -> BasePath = 'http://www.yoursite.com/FCKeditor/'; I've found it works best, in most shops, if it is $oFCKeditor -> BasePath = 'FCKeditor/'; That might be the cause of it. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
jpcarre Posted October 4, 2006 Author Posted October 4, 2006 (edited) The fopen problem sounds like a server setting problem. You should ask your host to see if they are preventing that. For the second problem, the instructions say to setup th epath like this $oFCKeditor -> BasePath = 'http://www.yoursite.com/FCKeditor/'; I've found it works best, in most shops, if it is $oFCKeditor -> BasePath = 'FCKeditor/'; That might be the cause of it. Jack Edited October 4, 2006 by jpcarre Quote
jpcarre Posted October 4, 2006 Author Posted October 4, 2006 OK for the first it's now solved. The second still there, I've changed the basepath as suggested, no change I relocated FCKeditor folder out of admin folder, no change. I am getting an error message out of html_output .... seems this modules has something amazing. The genuine module looks not correct, so when adding the auto emailer lines at the end, the code looks abnormal... end of Genuine code : //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } ?> When adding the auto emailer lines //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'FCKeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } ?> I get the following error when opening the admin page: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/azteledo/laboiteasucres.com/admin/includes/functions/html_output.php on line 289 Can you help , thanks Quote
Jack_mcs Posted October 4, 2006 Posted October 4, 2006 The error means you have made a mistake in the changes for the html_output.php file. You should restore that file to the original, make sure the shop works (except this contribution) and then make the changes to the file once again. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.