blr044 Posted July 11, 2010 Share Posted July 11, 2010 Would appreciate with some help or where I may find a solution. In doing a google search, it reads this error has something to do with SSL sites. But never seen this error before. The error I get at product_reviews_write is: Warning: Missing argument 4 for tep_draw_textarea_field(), called in /xxxx/xxx/xxxxxxx/xxxx/xxxx/product_reviews_write.php on line 165 and defined in /xxxx/xxx/xxxxxxx/xxxx/xxxx/includes/functions/html_output.php on line 281 Line 165 is: <td class="main"><?php echo tep_draw_textarea.field('review', '60', '15'); ?></td> Line 279 thru 303 from html_output: //// // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) { if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) { $field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name])); } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) { $field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name])); } } elseif (tep_not_null($text)) { $field .= tep_output_string_protected($text); } $field .= '</textarea>'; return $field; } Thank you. Bennett Link to comment Share on other sites More sharing options...
MrPhil Posted July 12, 2010 Share Posted July 12, 2010 In my vanilla copy of osC 2.2 RC2a, the line is <td class="main"><?php echo tep_draw_textarea_field('review', 'soft', 60, 15); ?></td> You're missing the "wrap" argument, which is the string "soft" in this case. It appears that somehow your code got corrupted. What osC version are you using? The code has not changed since at least as far back as 2.2 MS2. Link to comment Share on other sites More sharing options...
blr044 Posted July 13, 2010 Author Share Posted July 13, 2010 In my vanilla copy of osC 2.2 RC2a, the line is <td class="main"><?php echo tep_draw_textarea_field('review', 'soft', 60, 15); ?></td> You're missing the "wrap" argument, which is the string "soft" in this case. It appears that somehow your code got corrupted. What osC version are you using? The code has not changed since at least as far back as 2.2 MS2. I was almost there. Version of my store is RC2a. While I did try inserting soft into the code, but what I did over wrote review with soft. I did look in my vanilla osc, this is what I seen, so not sure why the differences. <tr> <td class="main"><?php echo tep_draw_textarea_field('review', '60', '15'); ?></td> </tr> But guess I need to download a fresh RC2a so I will have a correct one for reference. So anyway, all back to normal again. Thanks. Link to comment Share on other sites More sharing options...
MrPhil Posted July 13, 2010 Share Posted July 13, 2010 While I did try inserting soft into the code, but what I did over wrote review with soft. Eh? What editor are you using? ViM and Notepad++ come very highly recommended. Never ever use Dreamweaver or Frontpage or any other WYSIWYG page builder to edit PHP code. Anyway, the other possibility is that the file is corrupted with invisible control characters that prevent you from editing with a normal editor, but that's uncommon. Hopefully you can figure out how to get the wrap argument back in there. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.