Author Topic: [SOLVED] baseurl missing from "Other" submenus  (Read 1400 times)

Offline hanshansen

  • Junior Indexer
  • **
  • Posts: 41
  • Helpful: +1/-0
[SOLVED] baseurl missing from "Other" submenus
« on: 2016-08-17, 02:28:46 PM »
I hope this is the right place for posting bugs.

The baseurl is missing from the links under the "Other" menu. So if you don't use apache's docroot as nZEDb's root,  the links don't work. It also applies to "nZEDb" on the left in the upper menu.
« Last Edit: 2016-08-20, 03:21:55 AM by Wally73 »

Offline Wally73

  • Overlord
  • ******
  • Posts: 235
  • Helpful: +24/-1
  • i'm nuts
Re: baseurl missing from "Other" submenus
« Reply #1 on: 2016-08-18, 10:02:16 AM »
the right place for bugs is on github

see http://forums.nzedb.com/index.php?topic=1877.0

i have no problems at all with any links in the menu's so what do you mean??

Offline hanshansen

  • Junior Indexer
  • **
  • Posts: 41
  • Helpful: +1/-0
Re: baseurl missing from "Other" submenus
« Reply #2 on: 2016-08-18, 03:09:09 PM »
the right place for bugs is on github

see http://forums.nzedb.com/index.php?topic=1877.0

i have no problems at all with any links in the menu's so what do you mean??

Do you access nzedb with http://ip/mZEDb/www/ or just with http://ip/? In the first case all links in the submenus normally look like http://ip/nZEDb/www/browse?t=7000 and so on. Only the submenus under "Other" look like http://ip/browse?t=0010 etc.
"nZEDb/www/" is missing from these links. The same applies to "nZEDb" in the upper menu. it points to http://ip/ and not to http://ip/nZEDb/www

Offline Darius

  • Enforcer
  • *****
  • Posts: 104
  • Helpful: +6/-1
Re: baseurl missing from "Other" submenus
« Reply #3 on: 2016-08-18, 11:40:22 PM »
You have not set your document root properly. You need to edit /etc/apache2/sites-available/nZEDb.conf or one for nginx, if you use it, to accommodate your folder structure. The way it is set now on your server, it will never work properly.

Offline hanshansen

  • Junior Indexer
  • **
  • Posts: 41
  • Helpful: +1/-0
Re: baseurl missing from "Other" submenus
« Reply #4 on: 2016-08-19, 03:06:21 AM »
You have not set your document root properly. You need to edit /etc/apache2/sites-available/nZEDb.conf or one for nginx, if you use it, to accommodate your folder structure. The way it is set now on your server, it will never work properly.

Yeah, right. And that's why all links work but 4. Did you even read my post? If my config would be wrong, then all links would not work.

It worked before I updated. With the update, "Other" got moved from the left in the menu to the second to the right. Maybe somebody hard coded the path into the code.

Edit: I dug into the code and found the mistake. "{$smarty.const.WWW_TOP}" was missing for these links in www/themes/Alpha/templates/headermenu.tpl

I will report the bug on Github as Wally73 suggested.

Offline Darius

  • Enforcer
  • *****
  • Posts: 104
  • Helpful: +6/-1
Re: baseurl missing from "Other" submenus
« Reply #5 on: 2016-08-19, 04:33:52 AM »
Ah, you are right on this.