• I get the following message when trying to display an archive list of posts for a particular date:

    Notice: Undefined offset: 2 in /Library/WebServer/Documents/wp-linda/wp-content/themes/portfolio-press/extensions/portfolio-helpers.php on line 154

    I had a quick look at the code which is not checking the length of the $matches array returned and hence it can fail if the array has only one element.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Devin Price

    (@downstairsdev)

    Are you using the latest version of the theme? Is there a live link that I could look at somewhere?

    Thread Starter Steve Davison

    (@steve-davison)

    I was at the time I posted. I have had to take some time off from the project but I’ll be back into it in a couple of weeks. I seem to remember that it came about because I was using the wrong post type – so really it was generated by user error. However, the line of code I quoted could be improved to trap that issue. Hope that helps. Happy to look again in more detail when I get back into it.

    BTW It’s a great plug-in from my early look at it.

    Theme Author Devin Price

    (@downstairsdev)

    Thanks, I opened a ticket for this:
    https://github.com/devinsays/portfolio-press/issues/99

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: Undefined offset when viewing posts archive’ is closed to new replies.