Page 1 of 1

How do I remove this!!!!!

Posted: Thu Jun 19, 2014 9:23 pm
by jokernippe
Hi,

I need help to remove this! it comes when someone have registrated...

Warning: sprintf(): Too few arguments in /home/hangonpu/public_html/shop/catalog/model/account/customer.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/hangonpu/public_html/shop/index.php:102) in /home/hangonpu/public_html/shop/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/hangonpu/public_html/shop/index.php:102) in /home/hangonpu/public_html/shop/system/engine/controller.php on line 29


Thanks!

Tom

Re: How do I remove this!!!!!

Posted: Fri Jun 20, 2014 2:39 pm
by agrimabo
For the sprintf() error, below is an example of how it works:

$format = 'There are %d monkeys in the %s';
echo sprintf($format, $num, $location);

So whomever edited or added the sprintf function didn't set it up properly.

Search your catalog/model/account/customer.php file for the sprintf function, and make sure you have an equal number of %s/%d items for every variable.

In the above example, there is %s and %d (2), which are filled in with $num and $location (2).

Re: How do I remove this!!!!!

Posted: Sat Jun 21, 2014 11:02 pm
by jokernippe
Thanks!! It Works!