News:

Wondering if this will always be free?  See why free is better.

Main Menu

Bad Behavior for SMF mod

Started by butchs, April 12, 2010, 05:23:56 PM

Previous topic - Next topic

awolexpat

Hi there,
I have had BB installed on my forum for some time now and it does a good job. However I have been plagued with one error in my log almost from day one, as follows:
Quotehttp://www.awolonline.net/forum/index.php?action=register
28: Array to string conversion
File: /home3/awolonl1/public_html/forum/Sources/BadBehavior-mysql.php
Line: 220

I have over 100 of these errors currently from 27th December to date, and I have just been deleting them but now would really like to get to the bottom of why they are appearing and prevent them.

The bit of code it refers to is this:
218: if (!strcasecmp($request_method, "POST")) {
219: foreach ($package['request_entity'] as $h => $v) {
==>220: $request_entity .= bb2_db_escape("$h: $v\n\r");
221: }
222: unset($v);


I have a lot of mods installed (see list below) so it could be a conflict with one of them but I wanted to ask here first before going through the laborious process of trying to find out which one might be causing a problem. I don't understand the code well enough to know what it refers to either. I am using custom themes (Blackhead and Flagrant_alt from Crip, and Clear Sky from zutzu) but I am certain that it all installed properly. I am on SMF 2.0.3 and Bad Behavior 1.5.13.

Mods:
1.   6 Custom buttons / tabs with Sub Menus (4)    0.5     Thursday, 07 July, 2011, 04:42 PM
2.   Ad Managment    3.0.1     Thursday, 07 July, 2011, 05:46 PM
3.   Add And Remove Buttons    0.4     Thursday, 22 September, 2011, 03:12 PM
4.   Aeva Media    1.4w     Thursday, 07 July, 2011, 03:13 PM
5.   AJAX Recent Topics    1.1     Sunday, 11 September, 2011, 03:09 PM
6.   Align text with Smiley    1.2     Thursday, 17 November, 2011, 02:01 PM
7.   Apache Error Handler    1.2     Wednesday, 16 November, 2011, 10:43 PM
8.   Bad Behavior mod    1.5.13     Friday, 30 November, 2012, 11:17 AM
9.   BlogBridger    1.1.4     Monday, 27 February, 2012, 03:22 PM
10.   Board Notices    1.0.2     Friday, 19 October, 2012, 01:11 PM
11.   Bookmarks    2.3     Wednesday, 31 August, 2011, 10:23 PM
12.   Button 1 Menu Extender for 6 custom buttons mod    1.0     Thursday, 22 September, 2011, 02:43 PM
13.   Contact Page    3.0     Wednesday, 07 December, 2011, 01:05 PM
14.   Country Flags    1.1.2     Friday, 16 September, 2011, 10:25 PM
15.   Custom Copyright    1.0.2     Friday, 16 September, 2011, 10:19 PM
16.   Custom Pages and Tabs (2) SMF 2 - RC3    1.1     Saturday, 29 October, 2011, 04:49 PM
17.   Custom_Top_menu    1.4     Monday, 05 December, 2011, 11:53 AM
18.   Default Avatar    2.2     Thursday, 17 November, 2011, 02:15 PM
19.   Downloads System    1.4.1     Sunday, 04 December, 2011, 12:27 PM
20.   Email Template Editor    1.0     Friday, 20 January, 2012, 10:21 AM
21.   FAQ Mod    1.2     Thursday, 28 June, 2012, 10:11 AM
22.   Footer Menu v.1    v.1     Monday, 26 September, 2011, 10:45 PM
23.   Google +1    1.0     Thursday, 17 November, 2011, 02:22 PM
24.   Google Analytics Code    1.4     Monday, 03 October, 2011, 04:50 PM
25.   Ignore Board In New Posts    1.0     Tuesday, 27 September, 2011, 08:54 AM
26.   InLine Attachments    1.11     Thursday, 17 November, 2011, 02:31 PM
27.   JumpToSelectBoard By Smfsimple.com    V1     Friday, 02 September, 2011, 04:58 PM
28.   New Layout for Last Post Info    1.5     Thursday, 17 November, 2011, 03:03 PM
29.   New Manual Look    1.1     Thursday, 07 July, 2011, 04:49 PM
30.   New Topic Button By Smfsimple.com    V1     Thursday, 07 July, 2011, 05:04 PM
31.   Next Post Level    1.3.3     Wednesday, 31 August, 2011, 11:23 PM
32.   PM to New Members    1.2     Saturday, 03 September, 2011, 03:29 PM
33.   Post_Board_Select    1.3     Thursday, 07 July, 2011, 05:05 PM
34.   Prevent Adding Signature Images And Links    2.0     Tuesday, 06 March, 2012, 04:10 PM
35.   Profile Statuses    3.1     Friday, 02 September, 2011, 12:23 PM
36.   Project Snow 1.1    1.1     Tuesday, 22 November, 2011, 10:03 AM
37.   Random News Fader    1.0     Thursday, 07 July, 2011, 04:51 PM
38.   Recent Topics On "Recent Posts" Page    1.2     Friday, 16 September, 2011, 10:17 PM
39.   Recent Topics On Board Index    1.03     Thursday, 07 July, 2011, 04:52 PM
40.   Reply Button in All Posts    1.1     Sunday, 04 September, 2011, 11:09 AM
41.   RSS Feed Icon    1.1     Thursday, 07 July, 2011, 03:09 PM
42.   RSS Feeder    1.1.5     Saturday, 03 December, 2011, 02:14 PM
43.   SA Affiliates    3.3.5.6     Thursday, 07 July, 2011, 10:44 PM
44.   SA Chat    RC1 Rev59     Sunday, 16 September, 2012, 03:17 PM
45.   SA Facebook    2.0 RC3-1 Rev56     Saturday, 17 March, 2012, 03:45 PM
46.   SA Twitter    0.6 REV 30     Monday, 28 May, 2012, 03:20 PM
47.   Separate Replies and Views Column    1.9     Thursday, 07 July, 2011, 09:07 PM
48.   Separated Birthdays from Events    1.1.7     Thursday, 07 July, 2011, 04:57 PM
49.   Signature Option Post    1.1.1     Thursday, 28 June, 2012, 10:32 AM
50.   Simple Twitter    1.2     Thursday, 28 June, 2012, 10:40 AM
51.   SimplePortal    2.3.5     Thursday, 14 June, 2012, 03:32 PM
52.   Sitemap    2.2.0     Sunday, 20 November, 2011, 10:05 PM
53.   Smart Pagination    0.8     Wednesday, 16 November, 2011, 11:22 PM
54.   SMF 1.0.20 / 1.1.12 Update    1.0
55.   SMF 1.0.21 / 1.1.13 Update    1.0
56.   SMF 1.1.14 Update    1.0
57.   SMF 2.0.1 Update    1.0     Thursday, 22 September, 2011, 08:44 AM
58.   SMF 2.0.2 Update    1.0     Tuesday, 27 December, 2011, 11:20 AM
59.   SMF 2.0.3 Update    1.0     Friday, 21 December, 2012, 09:25 AM
60.   Socialize    1.8     Thursday, 17 November, 2011, 01:38 PM
61.   Sortable Packages (and Installed Time)    1.3     Wednesday, 09 November, 2011, 09:51 PM
62.   Stop Spammer    2.3.9     Tuesday, 25 October, 2011, 09:42 PM
63.   SubAccounts Mod    1.0.1     Thursday, 17 November, 2011, 03:20 PM
64.   Tabbed smileys    0.3.99b     Friday, 02 September, 2011, 03:37 PM
65.   Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.2     Sunday, 10 June, 2012, 10:03 PM
66.   Topics Filter    3.2     Wednesday, 28 September, 2011, 02:11 PM
67.   TopicStarter Mod    1.6     Wednesday, 05 October, 2011, 09:13 AM
68.   User Control Panel By Alan S    2.2     Thursday, 22 September, 2011, 09:28 PM
69.   Users Online Today    2.0     Friday, 16 September, 2011, 10:11 PM
70.   VB Style Board Index    1.91     Saturday, 17 September, 2011, 11:57 AM
71.   VigLink    1.3     Wednesday, 05 October, 2011, 09:40 AM
72.   Welcome Topic Mod    2.1     Thursday, 07 July, 2011, 09:11 PM
73.   Word Count Limits    1.3b     Thursday, 18 October, 2012, 11:19 PM

I hope somebody out there can help!

butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

awolexpat

Hi,
OK I have done that and will report back either way - hopefully this will fix it though.

butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

awolexpat

I have just checked again and I have had 17 of the same error since Sunday, so the updated version did not fix it for me. I will now try the beta file you have suggested, thanks.

awolexpat

Hi again,
The beta file has not fixed the issue either I am afraid - I have had 16 more errors in the log since yesterday.

butchs

If so the line in the error log changed.  PLease post it.  Then I can look at the next option.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

awolexpat

Hi,
Yes it had and I didn't notice it! here it is:
Quotehttp://www.awolonline.net/forum/index.php?action=register2
8: Array to string conversion
File: /home3/awolonl1/public_html/forum/Sources/BadBehavior-mysql.php
Line: 220

butchs

That line should not get that error.  Either you did not install the attachment or you need to flush your cache.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

T3CHN0

This didn't work

<p><a href="http://www.bad-behavior.ioerror.us/">
<img src="http://www.yoursite.com/bad-behavior-80x15.png"
alt="Bad Behavior" height="15" width="80" /></a></p>>


So I changed it to


<p><a href="http://bad-behavior.ioerror.us/">
<img src="http://webmasters.winnfreenet.com/images/bad-behavior-80x15.png"
alt="Bad Behavior" height="15" width="80" /></a></p>>


And now it works

Just letting you know

butchs

FYI- That is not part of the mod.  That is manual install option from the mod page.

You are supposed to copy the image to your site and replace the link in "http://www.yoursite.com/bad-behavior-80x15.png" with the link to the image file your site.

Using someone else's site is a security issue.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

T3CHN0

Quote from: butchs on January 18, 2013, 08:06:44 PM
FYI- That is not part of the mod.  That is manual install option from the mod page.

You are supposed to copy the image to your site and replace the link in "http://www.yoursite.com/bad-behavior-80x15.png" with the link to the image file your site.

Using someone else's site is a security issue.

Yeah that's ok & I understand that thanks, I was pointing out this link
<p><a href="http://www.bad-behavior.ioerror.us/"> does not work, but remove the www and then it does work
I don't know why!
But wouldn't you rather add a link for spammers that works.

I was only pointing out the link, it don't really matter. I changed mine but you need not change it at all.

awolexpat

Quote from: butchs on January 18, 2013, 07:16:24 AM
That line should not get that error.  Either you did not install the attachment or you need to flush your cache.

I can assure you that I did install the attachment. I have now emptied the file cache, which is what I assume you meant by 'flush your cache'? I have also deleted the existing errors from the log and will report back if any more appear.

butchs

The code that originally caused the error is not on line 220 anymore.  So if you saw an error with the new code the line number will change.  You may have a server permission issue so check to see if the file actually changed.  Then clean your Cloudflare (if you have), Forum and Server cache.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

butchs

Quote from: T3CHN0 on January 18, 2013, 10:02:50 PM
But wouldn't you rather add a link for spammers that works.

Thank you.  It will be included in the next release.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

awolexpat

I think it must have been Cloudflare causing the later issue as over 24 hours now and no further evidence of an error of any description. Thank you butchs.

butchs

Your welcome.

With CloudFlare you need to log in and purge the cache whenever you make a change to your site.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.


Kindred

turn off eval first of all...   then you'll have an idea where the real proble is...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Blade_Runner

Quote from: Kindred on January 21, 2013, 11:55:22 PM
turn off eval first of all...   then you'll have an idea where the real proble is...

thxs for the advice. once i turn off eval, i get the following error when i clicked on googletagged in admin modification setting.
---------------------------------------
http://talkcarmod.com/forum/index.php?action=admin;area=modsettings;sa=googletagged;fdbebdca608=4802294707854f9754919fbf066d9d6c
8: Undefined index: googletagged_together
File: /var/www/vhosts/talkcarmod.com/httpdocs/forum/Themes/default/GoogleTagged.template.php
Line: 205

Advertisement: