Sampression Lite
[resolved] /sampression-lite/index.php on line 33 (4 posts)

  1. agencecleatis
    Posted 3 years ago #

    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!

  2. agencecleatis
    Posted 3 years ago #

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

  3. crispyfried
    Posted 3 years ago #

    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.

  4. Sampression
    Theme Author

    Posted 3 years ago #

    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] ) {


    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.