Posted on: 07/24/03 08:33am
By: tstockma
I\'ve been playing around in the config.php with this, and setting the site_admin_url doesn\'t seem to help it.
New installation of 1.3.8, on a domain that\'s not published in DNS yet, so the path is http://www.domain.com/southparkcity for the site. Everything\'s working pretty well until I hit any of the \'admins only\' functions.
At that point, the scripts invoked drop the \"/southparkcity\" out of the path, so it\'s trying to execute \"http://www.domain.com/admin/story.php\", and chokes. I can then insert southparkcity into the path, so I have \"http://www.domain.com/southparkcity/admin/story.php\", and it works until a call is made to the next php script, then I get the same problem!
I saw somewhere in the code, late in the night, where at least one of the scripts doesn\'t use the site_admin_url, but instead calls scripts with a path starting with \"/admin\", which I think is the problem.
Is there just one or two admin scripts that do this, so I could possibly correct just one or two scripts, or is this pervasive throughout the admin scripts? Thanks for any help!
BTW This is my first exposure to geeklog, and I\'m liking it a whole lot. Nice work, all!
Tom Stockman
ftuck@frii.com
Re:prblm in admin path
Posted on: 07/24/03 08:55am
By: rawdata
As far as I know, the only script which calls /admin/story.php is the main one. I don\'t think there\'s any places (or at least none I\'ve seen so far) where the cp is ever called using /admin. Some addons may have used /admin but not the main one.
It kinda sounds like this variable in config.php may be off:
$_CONF[\'site_admin_url\'] = $_CONF[\'site_url\'] . \'/admin\';
Make sure it is pointing properly to your admin directory. $_CONF[\'site_url\'] should be set at http://www.domain.com/southparkcity in the same file. If you moved things around then make sure the right side has the proper url to the admin dir.
Re:prblm in admin path
Posted on: 07/24/03 09:02am
By: Dirk
If you set the site_url variable to http://www.domain.com/southparkcity and leave site_admin_url as it is (in the original config.php), it should really work.
[QUOTE BY= tstockma]I saw somewhere in the code, late in the night, where at least one of the scripts doesn\'t use the site_admin_url, but instead calls scripts with a path starting with \"/admin\", which I think is the problem.[/QUOTE]
Well, that would indeed be a problem but I\'m pretty sure that at least the core Geeklog files don\'t do that (can\'t guarantee that for all plugins, though). For example, my local development setup is http://localhost/~dirk/somedir, so if it would really be using /admin (without the actual URL) somewhere, I would hit upon that pretty soon ...
Don\'t really know what to tell you. Can you give an example of a link where it drops the \"southparkcity\" from the URL?
bye, Dirk
Re:prblm in admin path
Posted on: 07/24/03 09:42am
By: tstockma
You guys rock! Problem solved, silly error caused by me still being a hack at PHP.
Dirk, every single time I\'d try _anything_ from \"admin functions\" on the right, it\'d happen.
Rawdata, spot on, it was my admin path after all, you posting the assignment statement led me right to it. I\'d replaced \'site_url\' in the right side of the expression with the literal path, giving me this:
$_CONF[\'site_admin_url\'] =
$_CONF[\'www.domain.com/southparkcity\'] . \'/admin\';
...which resulted in my site_admin_url being \"/admin\". Duh...and thanks a million, guys! I\'m off to the races.
Tom