cosmocode / dokuwiki-plugin-farmer

Completely manages a DokuWiki farm setup
https://www.dokuwiki.org/plugin:farmer
GNU General Public License v2.0
11 stars 6 forks source link

problem with assets url #51

Open miki-shalala opened 6 years ago

miki-shalala commented 6 years ago

hello. im having a problem while trying to use the farmer plugin

my farmer is here: http://doku.cienciadeesencia.org/

my animal is here: http://doku.cienciadeesencia.org/!somother/doku.php

when you enter the animal the urls generated for assets and scripts: http://doku.cienciadeesencia.org/http:/doku.cienciadeesencia.org/!somother/lib/plugins/widearea/widearea/widearea.css

as you can see, it duplicates the domain url section.

what could possibly cause this? (i just installed it and nothing more)

im using vector template, but the same occurs with dokuwiki template anything im missing?

EDIT

more info: my dokuwiki animals folder is outside the dokuwiki root folder, probably that causes this: so, i added the file animal/conf/local.protected.php and added a config line: $conf['basedir'] = '../../';

sadly this is what the js renders: DOKU_BASE='http://doku.cienciadeesencia.org/http:/doku.cienciadeesencia.org/../../!somother/';

so, this si probably why i cant login to my wiki

any ideas?

CruxCraft commented 4 years ago

well maybe this explains my issue as well as my animals are also outside the root directory of my domain... Maybe I will cut a lot of work out if I just move the directory...

Getting https://wiki.mydomain.com/https:/wiki.mydomain.com/!test/Welcome?do=index which ends up showing the farmer site index instead of the animal

splitbrain commented 4 years ago

@miki-shalala your basedir is wrong. basedir sets the web directory relative to the domain.

What's your baseurl setting?