Support » Theme: Sampression Lite » /sampression-lite/index.php on line 33

  • Resolved agencecleatis

    (@agencecleatis)


    On my website, i have this kind of error :

    Notice: Undefined offset: 0 in /www/wp-content/themes/sampression-lite/index.php on line 33

    Thank u for your feed back!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter agencecleatis

    (@agencecleatis)

    Sorry, here is my website : http://communiques-web.fr/

    As far as I know, that code means you’re referring to an array key that doesn’t exist. “Offset” refers to the integer key of a numeric array.

    Check your index.php on that line and see what’s there, and post it, maybe that would help determine the problem.

    Hi agencecleatis,

    Here are the fixes:
    First method
    Go to the index.php file in theme directory /wp-content/themes/sampression-lite/index.php and change the following code at line

    if ( $sticky[0] ) {

    to

    if ( count($sticky)>0 ) {

    Second Method
    Turn off the errors, warning and notices by going to the wp-config.php at your root folder (/communiques-web.fr/)
    and change

    define('WP_DEBUG', true);

    at line 81 to

    define('WP_DEBUG', false);

    Hope this helps.

    Sampression Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘/sampression-lite/index.php on line 33’ is closed to new replies.