Question:
Website php error help?
2011-06-04 20:00:37 UTC
I get this on only 1 of my blog posts "Warning: sprintf() [function.sprintf]: Too few arguments in /home2/socomfan/public_html/poputop/wp-content/plugins/addthis/addthis_social_widget.php on line 1200"
idk what it is. It only happens on this post when I add Google's +1 button to my posts. All of the other posts are fine but this one. Right when I add +1 to it, none of the social plugs come up and I get that error thing! You can see it here: http://www.poputop.com/google%E2%80%99s-1-button-challenges-facebook%E2%80%99s-like-button/ Irronically it happens on a post about +1 Is this fixable and why is it happening
Three answers:
Richard S
2011-06-04 20:07:27 UTC
It sounds like you accidentally performed an injection attack on yourself. If you wrote the posting software yourself, you need to sanitize your database inputs.



Basically, you need to drop some of the things like " and )( and ;, as your php is parsing them as code. This reveals a very insecure posting program.
?
2016-09-28 08:34:21 UTC
If I have an understanding of your query thoroughly, surroundings the PHP engine errors reporting to zero simply signifies that whilst it hits mistakes on your application, it simply stops, as an alternative than providing you with significant know-how on solving the mistake. I suppose the quantity of CPU and assets to print out the mistake are so small that it isn't measurable, however theoretically there. I might certainly depart the mistake reporting became on. That being stated, your techniques will have to be written in order that they trap their possess mistakes. Like whilst variables comprises values out of variety, you will have to notice that earlier than (for instance) your components motives a divide-by way of-zero errors.
2011-06-04 20:08:43 UTC
That link you supplied, is that the actual error you are getting on your site? I'm a little confused as to what you have linked to there, please edit.

The problem is that when i viewed the source code, that error is actually written into the code, so that's why i'm asking what that link is. Also, could you reference the actual button so i can compare them?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...