No you see it, now you don't...

If you are having problems with GuMax, post here.
Post Reply
User avatar
shieldfire
Rank 0
Rank 0
Posts: 4
Joined: August 1st, 2008, 4:00 am

No you see it, now you don't...

Post by shieldfire »

The large front page image (not the small logo) is missing from one host to another. On host A I can see, and copying everything over to host B I expect to see it there as well (skins/gumax, shins/common, and the gumax.php files in /skins). But it isn't displayed! Very weird. The image has been moved over, I've checked. What more can I check - I must be missing something.
User avatar
bryand
Rank 0
Rank 0
Posts: 3
Joined: August 7th, 2008, 10:28 pm

Re: No you see it, now you don't...

Post by bryand »

I'm having a very similar problem -- Paul, can you help us?

In MY case, I have multiple domains. http://www.domain1.com and http://www.domain2.com.

I use GoDaddy shared hosting -- so as such, http://www.domain1.com is my PRIMARY hosting account and all of my other domains (domain2.com) are pointed at http://www.domain1.com/subdir

I installed WikiMedia to domain1.com/testdir. Once I had it looking the way I wanted, I redirected GoDaddy's servers to make domain2.com point to domain1.com/testdir

Then I edited the WikiMedia LocalSettings php file and changed:
$wgScriptPath = "/testdir";
to
$wgScriptPath = "";

The site now comes up when I enter http://www.domain2.com in my browser, but the dynamic graphic (article image) no longer works.

What did I do??
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: No you see it, now you don't...

Post by Paul »

To identify the problem, you can view the source code, then find the section gumax-article-picture, check the picture path, I think the skin cannot get right picture path through this:
$_SERVER['DOCUMENT_ROOT'] . '/' . $this->data['stylepath'] . '/' . $this->data['stylename'] . '/images/header/'

then you can find which variable is not working properly... or you can put absolute path if you cannot figure it out, replace the above statement to "/testdir/skins/gumax/images/header/" .
User avatar
bryand
Rank 0
Rank 0
Posts: 3
Joined: August 7th, 2008, 10:28 pm

Re: No you see it, now you don't...

Post by bryand »

Thanks Paul -- unfortunately I don't know enough about PHP to determine which variable was causing the problems, but replacing it with the static url appears to have solved the problem.

I do, however, want to try to figure out what caused the problem to begin with, because I'm afraid that if this problem happened to the dynamic article picture -- it probably happened to something else that I just can't see at the moment.

Can you think of anything that might have caused the complication?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: No you see it, now you don't...

Post by Paul »

I don't think this will affect the skin, but it might has impact on wiki. You need to test it out ... :D
Post Reply