Roster 2.0 install error after install

Installation issues with WoWRoster

Roster 2.0 install error after install

Postby akiko » Tue Sep 23, 2008 8:59 pm

Hello,

I just installed roster 2.0 but there is a problem that isn't tracable for me.

The install is on a subdomain. In the db the website_address is correct, but all the links aren't using that url but the main domain. I looked in all the config files and db, but nowhere is the main domain present only the subdomain. But he still picks up the main domain.

Where does the php scripts get the config info? real-time or really from the db? Also i see roster_url and roster_path in the php code, but nowhere in the db conf.

So short:
The links are http://www.domain.com and should be http://sub.domain.com

Someone got some tips to where i have to dig to get it working ok?

I do still use roster 1.73 and also on a subdomain, never had this problem there.

Thanks for your time.
Last edited by akiko on Tue Sep 23, 2008 9:03 pm, edited 1 time in total.
akiko
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Wed Jul 11, 2007 10:07 pm

Roster 2.0 install error after install

Postby PleegWat » Wed Sep 24, 2008 2:39 am

The URL is detected from the PHP environment in lib/cmslink.lib.php. This has been known to go wrong with subdomains on some installations.

If you're struck by this issue, you can workaround it by finding this line in lilb/cmslink.lib.php

Code: Select all
define('ROSTER_URL',$url); 


and changing it into

Code: Select all
define('ROSTER_URL','www.example.com/roster'); 
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Roster 2.0 install error after install

Postby akiko » Wed Sep 24, 2008 10:18 pm

Cool thx... was looking for those 2 lines for hours, but couldnt find them.. :D So now i can build on that to make it work... :D

Maybe an idea, wouldnt it be easier to just put that url manually into the db? Or just use the website_address from the db?
akiko
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Wed Jul 11, 2007 10:07 pm

Roster 2.0 install error after install

Postby zanix » Thu Sep 25, 2008 7:19 am

No, it's easier to use the php server variable as this works for most people

And PleegWat just told you how to make it work
You are looking for this line
Code: Select all
define('ROSTER_URL',$url); 


And you should change it to your url to Roster
Code: Select all
define('ROSTER_URL','http://sub.domain.com/roster'); 

Make sure this is the full url path to where index.php of Roster is located
Last edited by zanix on Thu Sep 25, 2008 7:19 am, edited 1 time in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron