• Resolved fightmatchpromotions

    (@fightmatchpromotions)


    Notice: Undefined offset: 1 in /home/fightmat/public_html/wp-content/themes/fightmatch/templates/content-author.php on line 138

    Anyone understand this? Also anyone know anyone I can get to fix this? And finally how can this error just appear?

    It is displayed on front end…

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter fightmatchpromotions

    (@fightmatchpromotions)

    $video_id = explode( “&”, $video_id[1] ); // Deleting any other params

    This is the code in line 138…Can anyone help?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Where did you get the “fightmatch” theme from? I can’t find it.

    Thread Starter fightmatchpromotions

    (@fightmatchpromotions)

    Sage starter theme…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    So it’s your programming error? πŸ™‚ OK

    The error says you’re looking at $video_id[1] when the array does not a “oneth” element. You need to test to see if the element exists before trying to use it…

    Something like

    if( isset( $video_id[1] ) ) {
          $video_id = explode( β€œ&”, $video_id[1] ); 
       } else {
          $video_id = false;
       }
    Thread Starter fightmatchpromotions

    (@fightmatchpromotions)

    I’m not a programmer the site was perfect till a couple of weeks ago…I’ve had some css done on my events page, but can’t see that this would impact this…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s irrelevant. You have a coding error, probably because this one author does not have the videos in his profile. Contact the person who developed this custom theme for you.

    Thread Starter fightmatchpromotions

    (@fightmatchpromotions)

    So contact roots the theme together or the dev who put the site together, the baffling thing is not all users have the problem. Cheers anyway…

    Thread Starter fightmatchpromotions

    (@fightmatchpromotions)

    Not together, I meant developer…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Contact the developer; it’s not a sage issue.

    Thread Starter fightmatchpromotions

    (@fightmatchpromotions)

    Thanks Steve 😊

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘WordPress error’ is closed to new replies.