Jump to content

Archived

This topic is now archived and is closed to further replies.

Nathali

error upgrading from mysql4 to mysql5

Recommended Posts

Hi,

 

After upgrading from SQL4 to SQL5 I found this error:

 

Warning: Missing argument 5 for tep_draw_textarea_field(), called in /home/XXXXXX/public_html/admin/mail.php on line 228 and defined in /home/XXXXXX/public_html/admin/includes/functions/html_output.php on line 236

 

LINE 228: <td><?php echo tep_draw_textarea_field('message', 'soft', '60', '15'); ?></td>

 

LINE 235:

// Output a form textarea field
 function tep_draw_textarea_field($name, $wrap, $width, $height, $class, $text = '', $parameters = '', $reinsert_value = true) {
   $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($class))  $field .= ' ' .  'class="' . tep_output_string($class) . '"';
   if (tep_not_null($parameters)) $field .= ' ' . $parameters;
   $field .= '>';

   if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
     $field .= tep_output_string_protected(stripslashes($GLOBALS[$name]));
   } elseif (tep_not_null($text)) {
     $field .= tep_output_string_protected($text);
   }

   $field .= '</textarea>';

   return $field;
 }

 

Could someone please help what should I correct?

 

Thanks and Regards,

Nathali


Best Regards,

Nathali

Share this post


Link to post
Share on other sites

After upgrading from SQL4 to SQL5 I found this error:

This has nothing to do with going to MySQL5. Looks like you added some contribution that changes the function tep_draw_textarea_field because $class is not standard in there:

function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true)

You probably can get away with adding just to single quotes and a comma to that particular line:

<td><?php echo tep_draw_textarea_field('message', 'soft', '60', '15', ''); ?></td>

You probably would be better off finding all instances of the use of tep_draw_textarea_field in the admin and add that change (provided it works).

Share this post


Link to post
Share on other sites

This has nothing to do with going to MySQL5. Looks like you added some contribution that changes the function tep_draw_textarea_field because $class is not standard in there:

function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true)

You probably can get away with adding just to single quotes and a comma to that particular line:

<td><?php echo tep_draw_textarea_field('message', 'soft', '60', '15', ''); ?></td>

You probably would be better off finding all instances of the use of tep_draw_textarea_field in the admin and add that change (provided it works).

 

Thank you Jan!

That solved the issue!

 

Best Regards,

Nathali


Best Regards,

Nathali

Share this post


Link to post
Share on other sites

×