Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: sprintf(): Too few arguments


patrickbailey1

Recommended Posts

Posted

I get this error:

 

Warning: sprintf(): Too few arguments in /hsphere/local/home/havenbiz/havenelectronics.com/catalog/includes/functions/general.php on line

 

after editing english.php. Here's what i added:

 

define('TEXT_GREETING_GUEST', '<p> </p>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
       <tr> 
         <td align="center" valign="top" width="33%"> <img name="images/1.jpg" width="100" height="100"></td>
         <td align="center" valign="top" width="33%"> <img name="images/2.jpg" width="100" height="100"></td>
         <td align="center" valign="top" width="33%"> <img name="images/3.jpg" width="100" height="100"></td>
       </tr>
       <tr> 
         <td align="center" valign="top" colspan="1"><strong><font color="red">S</font>tyle</strong></td>
         <td align="center" valign="top" colspan="1"><strong><font color="red">F</font>unction</strong></td>
         <td align="center" valign="top" colspan="1"><strong><font color="red">C</font>larity</strong></td>
 </tr>
</table>
');

 

Any ideas?

 

Patrick

Patrick Bailey

www.DisplayHaven.com

Posted

sprintf('Look, %s is %s word.', 'name', 'the')

prints out

Look, name is the word
A % is a special character in an sprintf format string. To output a normal % you put in %%. I'm not sure what a %" is, but it made it look for something to put there.

 

Hth,

Matt

Always back up before making changes.

Archived

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

×
×
  • Create New...