ZenphotoCMS Forum
404 error on breadcrumbs of zpMobile theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: 404 error on breadcrumbs of zpMobile theme (/thread-12752.html)



404 error on breadcrumbs of zpMobile theme - sama55 - 2015-06-19

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); // 



404 error on breadcrumbs of zpMobile theme - acrylian - 2015-06-19

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.




404 error on breadcrumbs of zpMobile theme - sama55 - 2015-06-20

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.




404 error on breadcrumbs of zpMobile theme - acrylian - 2015-06-20

It is a problem with the function itself and the gallery index being not the site index. We'll look at it.