ZenphotoCMS Forum
Moved ZenPhoto to Root - Gallery Index Link No Longer Works - 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: Moved ZenPhoto to Root - Gallery Index Link No Longer Works (/thread-7341.html)



Moved ZenPhoto to Root - Gallery Index Link No Longer Works - marcy_sss - 2010-07-16

I moved Zenphoto to the root of my client's server and everything works fine, except the Gallery Index link (index.php) in my custom menu is now empty. Is there a trick to getting this link working again without hard coding it?

I changed the RewriteBase in .htaccess to / instead of /zenphoto , and that is when the problem occurred... So I ran setup.php but it kept it the same.

This is what my menu output looks like (spaces added for viewing), as you can see the href for Gallery is empty:

`

[list]
< a href="" title="Gallery">Gallery< /a>< /li>

< a href="/page/collections" title="Collections">Collections< /a>< /li>

< a href="/pages/about" title="About">About< /a>< /li>

< a href="/pages/events" title="Events">Events< /a>< /li>

< a href="/pages/studio" title="Studio">Studio< /a>< /li>

< a href="/pages/custom" title="Custom">Custom< /a>< /li>

< a href="/pages/community" title="Community">Community< /a>< /li>

< a href="/pages/sustainability" title="Sustainability">Sustainability< /a>< /li>

< a href="/page/contact" title="Contact">Contact< /a>< /li>

[/list]

`




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - acrylian - 2010-07-16

Please see the troubleshooting on "how to move my installation".




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - marcy_sss - 2010-07-16

I actually did look there before I posted, but I'm not moving it to another server -- just to the root of the same server. Running setup.php isn't correcting the link issue.

The Gallery Index link is just empty, so it doesn't go anywhere. My menu was created with the Menu Manager plugin, and the link in question should just go to index.php. I added a hard-coded menu item for now, but it lost the association with the page and doesn't highlight the link automatically (if I have to i'll use jQuery).




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - acrylian - 2010-07-16

Ah, ok, sorry. Did you try to create a new gallery index link with the menu manager?




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - marcy_sss - 2010-07-16

I did try adding another "Gallery Index" link, but it is still empty. In the Menu Manager area, the "View" button is grayed out and there is no link or slug.




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - acrylian - 2010-07-16

No, it is grayed out because it is normally automatically generated by Zenphoto (btw. the "index.php" is not really necessary for the index link normally). No idea right now. Try a custom link with the direct web url for now. Maybe my collegue will have an idea later.




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - marcy_sss - 2010-07-16

Ok, thanks for your replies, I really appreciate it. I just put in a custom link with the URL for now... but I wanted to keep the 'www' part of it dynamic (to have or not to have), hence the desire for the automatic link. I was able to highlight the menu item using jQuery, which actually has worked really well for other sections.




Moved ZenPhoto to Root - Gallery Index Link No Longer Works - acrylian - 2010-07-17

Hm, actually the index link should do that using the WEBPAT constant. On my test site it is just "/". Just "/index.php" should also work as a index link, normally no need to include the domain part.