Post by maskcomp » Thu Jan 08, 2009 11:29 am

I'm getting this error when I try and add a product. It started after I tried the Export/Import feature.

Warning: vsprintf() [function.vsprintf]: Too few arguments in /home/maskcomp/public_html/WFVcart/cart/upload/library/database/database.php on line 43
Error: Query was empty
Error No: 1065

How can I fix it?

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by maskcomp » Thu Jan 08, 2009 11:47 am

Here's line 43

return vsprintf(str_replace('?', '%s', $sql), array_map('mysql_real_escape_string', $args));
}

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by Qphoria » Thu Jan 08, 2009 12:14 pm

That's the database query, but the error is due to the controller not passing the right amount of arguments. Need to know the page you were trying to load that caused this. Sounds like you are seeing it on product insert. Unless you are seeing it on import from the import contrib

please clarify

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by maskcomp » Thu Jan 08, 2009 12:36 pm

The problem is on the product insert. When I try and add product information and click save I get that error message.

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by Qphoria » Thu Jan 08, 2009 1:23 pm

Did you upgrade anything after the image link field I made for you? because that could be part of it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by maskcomp » Thu Jan 08, 2009 10:57 pm

No..I didn't add any updates. However, I did copy the product.tpl from the default folder to the Webdesign folder because the image link was not working. After I did that the image link worked. Other then that, no changes.

How do you send a private message?

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by Qphoria » Thu Jan 08, 2009 11:03 pm

Click the username you see on the left of every post and choose "Send private message".
If you recreate the temporary accounts you made for me last time, I can take another look.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Thu Jan 08, 2009 11:46 pm

OK I fixed it. I forgot to shift the ')' at the end of the line when I added the image_link thing.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 3 guests