Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange Error on Index Page


Guest

Recommended Posts

I was editing the text in my english.php and am now getting this error on my homepage:

 

Warning: sprintf(): Too few arguments in /home/craftyg/public_html/includes/functions/general.php on line 940

 

I have not even touched the file specified in the error. Any idea what this is all about?

 

I appreciate any help! Feeling a little desperate.

 

Liz

Link to comment
Share on other sites

could you post your english.php on here

 

Here is the code that I was editing:

 

define('TEXT_GREETING_GUEST', '<b>Welcome!<br><tr><td width="100%"><div align="center"><table border="0" cellpadding="0" cellspacing="10" style="border-collapse: collapse" bordercolor="#66cc66" width="1%" id="AutoNumber2" align="center"><tr><td width="35%"><p align="center"><border="0" src="images/smalla.jpg" width="100" height="100"><br><b><font size="1" face="Verdana"></a></td><td width="30%"><p align="center"><img border="0" src="images/smallb.jpg" width="100" height="100"><br><b><font face="Verdana" size="1"></a></td><td width="35%"><p align="center"><img border="0" src="images/smallc.jpg"width="100" height="100"><br><b><font face="Verdana" size="1"></td></tr></table></div></td><font color="000000"><br>
</i></b></p></font><font color="000000"><p align="left">Summer sings of long, sunny days and warm, starry nights. Thus, a popular season for weddings and anniversaries. View our unique selection of <a href="http://www.craftygiftcreations.com/index.php?cPath=39_45"><b>wedding and anniversary</a></b> gifts. To make your selection easier, all <a href="http://www.craftygiftcreations.com/specials.php"><b>picnic baskets</a></b> are now 15% off.<br><br>Enjoy a flat shipping fee of $8.50 per item for regular delivery.<br><br><b>July Holidays ~ </b>4th Independence Day * 30th Father-in-Law Day<tbody>  <tr> 
<td colspan="2"><font face="Verdana" size="2"><p align="left"><b>News and Notables:</b><br><br>Fill out your e-mail address 
  to receive gift giving tips, ideas, features and specials in our monthly newsletter!</font></td><tr>
<form method=post action=http://www.ymlp.com/subscribe.php?eltsmith>	
<td valign="middle"> 
  <input style="background-color: rgb(255, 255, 160);" name="YMLP0" size="20" type="text">
  <input value="Submit" type="submit">
</td></form>');

Link to comment
Share on other sites

Changing that gave me this error:

 

Warning: main(includes/languages/english.php): failed to open stream: No such file or directory in /home/craftyg/public_html/includes/application_top.php on line 283

Warning: main(includes/languages/english.php): failed to open stream: No such file or directory in /home/craftyg/public_html/includes/application_top.php on line 283

Fatal error: main(): Failed opening required 'includes/languages/english.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craftyg/public_html/includes/application_top.php on line 283

Link to comment
Share on other sites

well ok, probably you have other problems. Goto your catalog\includes\functions\general.php backup the file then,

 

locate this

$greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));

 

change it to this

$greeting_string = TEXT_GREETING_PERSONAL;

 

couple of lines further down find this:

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

change it to this

$greeting_string = TEXT_GREETING_PERSONAL;

 

 

of course if your english.php is missing is a totally different issue.

Link to comment
Share on other sites

well ok, probably you have other problems. Goto your catalog\includes\functions\general.php backup the file then,

 

locate this

$greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));

 

change it to this

$greeting_string = TEXT_GREETING_PERSONAL;

 

couple of lines further down find this:

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

change it to this

$greeting_string = TEXT_GREETING_PERSONAL;

of course if your english.php is missing is a totally different issue.

 

On the assumption that you meant to say, on the second edit, TEXT_GREETING_GUEST; ...

 

problem solved! Thanks so much.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...