TGM plugin error in Theme Check Plugin

Concerning your question: Can my theme be submitted for approval with these errors? I’m assuming you’re asking whether your plugin, while throwing an error upon activation using TGM library, can still be submitted and accepted to official WordPress repository. My answer would be, no, it cannot. It seems like you made your plugin work once … Read more

Undefined offset: 2

You will have those notices, if either of those $pages indexes are not set. Check for the existence of the key before trying to use it. if (isset($pages[$current-1])) $prevID = $pages[$current-1]; if (isset($pages[$current+1])) $nextID = $pages[$current+1]; Or something along these lines … $prevID = (isset($pages[$current-1])) ? $pages[$current-1] : ”; $nextID = (isset($pages[$current+1])) ? $pages[$current+1] : … Read more