Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Many problems after updating to 7.02.03..check it out.

Asked Modified Viewed 1,836 times
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
asked
Member

This is the first one in my error log

Undefined index: rowstart in my news archive in this line:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }[/syntaxhighlighter]

Undefined index: version in PDP in this line:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $ver = stripinput($_POST['version']);[/syntaxhighlighter] then the same thing for $_POST['desc']
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$desc = stripinput($_POST['desc']);[/syntaxhighlighter]

As you can see most of my errors are with $_POST and $_GET. Unfortunately i dont know how to fix them. Can you give me any fixes?
0 replies

2 posts

P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

if (isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }

change to
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }[/syntaxhighlighter]

Also change these 2 strings to:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$ver = (isset($_POST['version'])?stripinput($_POST['version']):'');
$desc = (isset($_POST['desc'])?stripinput($_POST['desc']):'');[/syntaxhighlighter]

PS '' can be your def. value - '1.0' or something.
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

Thank you! Now it's OK. Can you (or anyone else) help me with these errors?

Undefined index: article_cat_id from Extended Articles infusion:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
$cat_info = cat_info($cat_id);
echo " » <a href='".$cat_info['article_cat_id']."' alt='".$cat_info['article_cat_name']."'>".$cat_info['article_cat_name']."</a>";[/syntaxhighlighter]
the error is in the second line.

Here is another error (Undefined index: news_en) with $_GET:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if ($_GET['news_en'] == "ok") {[/syntaxhighlighter]

also here... It shows me Undefined offset: 4 on the 3rd line.:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $exploded_tags = explode(", ", $news_tags);
for ($i = 0; $i <= 15; $i++) {
if ($exploded_tags[$i] == "") {
break;
}
echo "<a href='".BASEDIR."search.php?method=OR&fields=0&stext=".$exploded_tags[$i]."&stype=news&submit.x=24&submit.y=20' alt=''
title='$exploded_tags[$i]'><span>$exploded_tags[$i]</span></a>, ";
}
} [/syntaxhighlighter]


and finally this line [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]foreach(glob("$dir/*") as $item){$sort[]= end(explode('/',$item));}[/syntaxhighlighter]
it's showing me this Only variables should be passed by reference

Merged on Aug 27 2011 at 23:58:02:
Anyone?
Edited by StoyaN on 28-08-2011 00:58,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

S
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet