• Here’s an error code I’m getting: Debug is saying there’s an error on line 36 but I don’t see it. Help?

    function remove_page_from_query_string($query_string)
    {
    if ($query_string[‘name’] == ‘page’ && isset($query_string[‘page’])) {
    unset($query_string[‘name’]);
    // ‘page’ in the query_string looks like ‘/2’, so i’m spliting it out
    list($delim, $page_index) = split(‘/’, $query_string[‘page’]);
    $query_string[‘paged’] = $page_index;
    }
    return $query_string;

    TIA

Viewing 8 replies - 1 through 8 (of 8 total)
  • I could be wrong, but I don’t recall that being a WordPress core file. Are we talking about a plugin, or a theme related issue?

    [edit] Just a guess mind you, but – if this is the plugin you pulled that code from, please read the compatibility information to the right of, and warnings posted at the top of the page..

    https://wordpress.org/plugins/category-pagination-fix/

    Debug is saying there’s an error on line 36

    what is the exact full text of the error message?

    what file is named in the error message?

    Thread Starter MyMetMedia

    (@mymetmedia)

    Here’s the code:

    Name in /home/wp_xbi867/mymetmedia.com/wp-content/plugins/category-pagination-fix/category-pagefix.php on line 36

    This code shows up on the “Posts” page.

    Yes, I am using this plugin:
    https://wordpress.org/plugins/category-pagination-fix/

    Could the warning/out of date be the issue here? Should I just delete this plugin and use another (recommended) plugin?

    Thank you

    Requires: 2.0.2 or higher
    Compatible up to: 3.2.2
    Last Updated: 4 years ago

    It appears it hasn’t been under development for at least 4 years. I would try to find another plugin based on that alone.

    Thread Starter MyMetMedia

    (@mymetmedia)

    Any recommendations which category-pagination fix plugin you like? I see a few listed. I’m looking for one that’s recently updated.

    I wish I could steer you in the right direction, but I’ve never used any of them.

    Thread Starter MyMetMedia

    (@mymetmedia)

    I tried Pagination by BestWebSoft but it didn’t fix the problem.

    I think I need to take the site down, reload WordPress, update the theme, deactivate all the plugins and start anew. It was scheduled for today but audience needs mean I had to delay.

    Thanks

    If you start a new thread and describe in some detail the exact issue or behavior you’re trying to overcome or modify, someone might recognize the symptom and be able to point you in a more helpful direction.

    A new topic might get better visibility at this point, while a good description of what’s happening (or not happening) might attract the attention of someone who’s previously found a good solution for the same issue.

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

The topic ‘Error code in category-pagefix.php’ is closed to new replies.