WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. agencecleatis
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  3. crispyfried
    Member
    Posted 1 year 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
    Member
    Theme Author

    Posted 1 year 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] ) {

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.