Post by jokernippe » Thu Jun 19, 2014 9:23 pm

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

Active Member

Posts

Joined
Fri Aug 02, 2013 1:44 am

Post by agrimabo » Fri Jun 20, 2014 2:39 pm

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).

Newbie

Posts

Joined
Fri Nov 01, 2013 8:04 am

Post by jokernippe » Sat Jun 21, 2014 11:02 pm

Thanks!! It Works!

Active Member

Posts

Joined
Fri Aug 02, 2013 1:44 am
Who is online

Users browsing this forum: No registered users and 315 guests