404 error on breadcrumbs of zpMobile theme

Thank you for your great product. I am a engineer to use this system for the first time. Now, I am testing it with zpMobile theme. I was confirmed one problem.

Issue summary:
When I click the first links to gallery pages in the breadcrumb, it becomes 404 error.

Occurrence condition:
2 or more pages of links to gallery pages (First page is OK). Pagination is moving correctly. But, breadcrumb is moving incorrectly.

My investigation:
getGalleryIndexURL() in zp-core/template-functions.php (around L534)

if (($page = $album->getGalleryPage()) > 1) {
$link = rewrite_path('/' . _PAGE_ . '/' . $page, "/index.php?" . "page=" . $page); // <<== Problem occurs here.
}

_PAGE_ :

/page/? <<== NG
/page/gallery/? <<== OK

Side note:
I tested two themes under the same conditions.
Libratus is OK (This theme does not support pagination on breadcrumb).
zpMobile is NG (This theme support pagination on breadcrumb).

Thanks again.

Comments

  • acrylian Administrator, Developer
    There is actually no breadcrumb on zpMobile's gallery page. Are you referring to an album page and its pagination?

    Update: I see what you mean but you indeed refer to an album page. We'll take a look.
  • sama55 Member
    Thank you for your quick response. This phenomenon seems to occur at both of sub album and image pages. Since there are also the same code in other themes, I feel theme logic is correct. Core problem? Rewrite rule of apache?
    Thanks.
  • acrylian Administrator, Developer
    It is a problem with the function itself and the gallery index being not the site index. We'll look at it.
Sign In or Register to comment.