Notice: Undefined offset: error message in blog-archive page

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Dec 10, 2012 9:21 am
Reply with quote
Report this post
we get this error (or better notice) message on some content pages:

"Notice: Undefined offset: 1 in /my-url/templates/gk_creative/html/pagination.php on line 18"
same notice with other line #

we tried in php.ini
displayerrors=off

How we can hide this messages?
User avatar
Fresh Boarder

Konrad M
Mon Dec 10, 2012 12:18 pm
Reply with quote
Report this post
User avatar

GK User
Mon Dec 10, 2012 2:57 pm
Reply with quote
Report this post
hi Konrad,

we added
"error_reporting (E_ALL ^ E_NOTICE); "
to the php.ini but this doesn´t help

error messages are still visible
User avatar
Fresh Boarder

Konrad M
Tue Dec 11, 2012 2:11 pm
Reply with quote
Report this post
Please try this one:
Code: Select all
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
User avatar

GK User
Mon Dec 17, 2012 6:38 pm
Reply with quote
Report this post
nothing changed, error messages still there

Any idea to change the "pagination.php" to avoid this error message?
User avatar
Fresh Boarder

Konrad M
Tue Dec 18, 2012 9:13 am
Reply with quote
Report this post
Please try find in html/pagination.php (line 18)
Code: Select all
if($list['pages'][$i]['active'] != 1) {
   $founded = $i;
   break;
}
         


and change to:
Code: Select all
if(isset($list['pages'][$i]['active'])){
   if($list['pages'][$i]['active'] != 1) {
      $founded = $i;
      break;
   }
 }
User avatar

GK User
Tue Dec 18, 2012 1:26 pm
Reply with quote
Report this post
ok, this works for error in line 18

now same error message with "line 36"

i will try to get support from hosting company

Thanks for support
User avatar
Fresh Boarder


cron