SMF Support > SMF 2.0.x Support

8: Undefined index: icon

(1/2) > >>

nazamarya:
Hi.
When I look to smf_log_errors, There are a lots of same errors. I'm cleaning to smf_log_errors but same errors are consisting again 2 hours later . If I dont empty smf_log_errors a day, total 1000 same errors are consist.

8: Undefined index: icon
?action=post2;start=0;board=432
line 1943
Post.php

this line is:
--- Code: ---$_POST['icon'] = !empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['icon'];
--- End code ---



my packages:

1.    Google Analytics Code    
2.    Stop Forum Spam    
3.    Anti-Spam Links    
4.    Bot Buster    
5.    Stop Spammer    
6.    Highslide 4 SMF    
7.    Seo 4 SMF 2.0    
8.    Simple Spoiler    
9.    Aligned and Bilateral Child Boards    
10.    FlowPlayer    
11.    MetaTags Modification    
12.    SimplePortal    
13.    Registered Links    
14.    Contact Page    

thanks for all helps.

Labradoodle-360:
Try this...

--- Code: ---$_POST['icon'] = !empty($_POST['icon']) ? (!empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['code']) : '';
--- End code ---

nazamarya:

--- Code: ---$_POST['icon'] = !empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['icon'];
--- End code ---

I changed with this;


--- Code: ---$_POST['icon'] = !empty($_POST['icon']) ? (!empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['code']) : '';
--- End code ---


Now I'm taking this error:

?action=post2;start=0;board=12
8: Undefined index: code
/home/divxodas/public_html/Sources/Post.php
line: 1943

shulk:

--- Code: ---$_POST['icon'] = !empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['icon'];
--- End code ---
Add @ ike this

--- Code: ---@$_POST['icon'] = !empty($attachIDs) && @$_POST['icon'] == 'xx' ? 'clip' : @$_POST['icon'];
--- End code ---
Try!

Labradoodle-360:
It's not a good practice to suppress.

Navigation

[0] Message Index

[#] Next page

Go to full version