menu_manager creates empty link for gallery index on live site

fretzl Administrator, Developer
Latest nightly, Zenpage theme:

The menu_manager creates an empty link for the gallery index (and only for the gallery index)on a remote host.
On my local install it works just fine.
Any ideas ?
Thanks.

Comments

  • fretzl Administrator, Developer
    edit:
    My local install is in a subfolder.
    The remote install is in the root.
  • Try changing line 167 of menu_manager.php change the "WEBPATH" references to "FULLWEBPATH"
  • Try changing line 167 of menu_manager.php change the "WEBPATH" references to "FULLWEBPATH"
  • fretzl Administrator, Developer
    Thanks, that works :-)

    But now I see that the $css_class_topactive (in the printCustomMenu()) is not assigned to the active gallery index anymore.

    Any ideas ?
  • If it was before, it is probably because the link is no longer blank. Have to look and see what can be done.
  • fretzl Administrator, Developer
    Hi sbillard, I saw what you did in `changeset[6192]` but that does not solve it.
    I still have to use the `FULLWEBPATH` to create a link to the gallery index.
    And somehow that causes the $css_class_topactive not to be assigned to the active gallery index.
  • FULLWEBPATH will cause that problem with the class. What is not happening with the link? The actual link should be to the full web path.
  • fretzl Administrator, Developer
    The Gallery index link works fine when I use the FULLWEBPATH.
    It's just that the class $css_class_topactive is not assigned to it when it is actually active.
    I'll find a workaround.
    Thanks.
  • You answered the wrong question. What is wrong with the changeset [6192] implementation. As I said, using FULLWEBPATH will NOT work for the class stuff. WEBPATH is required for that. But that is only for the particular function and subsequent uses of its output. The place in printCustomMenu() where the actual URL is emitted does detect that it is empty and substitutes FULLWEBPATH in the href.

    I have tested this on my test site and it is working there. Perhaps there is something specific about your menu set. Maybe we need to see it in its full.
  • fretzl Administrator, Developer
    Changeset[6192] works fine. I just did not understand FULLWEBPATH/class implication.

    Question:
    The fact that I need to use FULLWEBPATH with this remote host, has that something to do with their server configuration ?
  • Not a server issue, just a problem we have in general with root installs. If the actual URI is empty it is equivalent to pointing to the current page. Most of our testing is with root installs.
Sign In or Register to comment.