News:

Join the Facebook Fan Page.

Main Menu

8: Undefined index: icon

Started by nazamarya, May 12, 2012, 06:23:02 PM

Previous topic - Next topic

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: $_POST['icon'] = !empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['icon'];



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.

Matthew K.

Try this...
$_POST['icon'] = !empty($_POST['icon']) ? (!empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['code']) : '';

nazamarya

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

I changed with this;

$_POST['icon'] = !empty($_POST['icon']) ? (!empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['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

$_POST['icon'] = !empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['icon'];
Add @ ike this
@$_POST['icon'] = !empty($attachIDs) && @$_POST['icon'] == 'xx' ? 'clip' : @$_POST['icon'];
Try!
Money making guru

Matthew K.

It's not a good practice to suppress.

nazamarya

Quote from: shulk on May 14, 2012, 07:15:03 AM
$_POST['icon'] = !empty($attachIDs) && $_POST['icon'] == 'xx' ? 'clip' : $_POST['icon'];
Add @ ike this
@$_POST['icon'] = !empty($attachIDs) && @$_POST['icon'] == 'xx' ? 'clip' : @$_POST['icon'];
Try!

Thanks shulk. problem solved in this way. I dont take this error: 8: Undefined index: icon.

Quote from: Labradoodle-360 on May 14, 2012, 10:55:49 AM
It's not a good practice to suppress.

Labradoodle-360, Why isn't this a good practice?

shulk

Money making guru

Matthew K.

Suppressing variables is very rarely acceptable. It's just not a good practice, period.

Advertisement: