Topic on Project:Support desk

Can see thumbnails but not full-sized images

11
Summary by TheBGPMan

Issue was in the two following lines, as pointed in Mark's response:

$wgUploadDirectory = "images";

$wgUploadPath = "images/img";


Which were changed to:

$wgUploadDirectory = "$IP/images/img";

$wgUploadPath = "$wgScriptPath/images/img";

86.49.182.250 (talkcontribs)

When I upload an image I can see the thumbnail in my article.


But when I click the thumbnail I cannot see the full-sized image.


Any idea as of why this would be happening?

AhmadF.Cheema (talkcontribs)

On viewing the full-sized image, does the Console section of the browser developer tools (F12) give any errors?

86.49.182.250 (talkcontribs)
MarkAHershberger (talkcontribs)

It looks like $wgServer or a related setting is wrong. It should not have "index.php" in it.

TheBGPMan (talkcontribs)

I just created an account.


My $wgServer line reads as following:

$wgServer = "h ttp: // example. com:9000";

I was having issues with it before so I had to edit it to include the port number since I'm not using port 80.


I'm still trying to isolate what could be causing this issue.

MarkAHershberger (talkcontribs)

Is index.php mentioned anywhere in your LocalSettings.php? If not, could you paste it here with your passwords removed?

TheBGPMan (talkcontribs)

I have edited the personal information, passwords and keys:

TheBGPMan (talkcontribs)

There's only one line with index.php but it's just a comment.

MarkAHershberger (talkcontribs)

Do you have short urls enabled on your wiki? Or anything in a .htaccess file at the top level?

MarkAHershberger (talkcontribs)

Your problem is likely the $wgUploadDirectory and/or $wgUploadPath. You probably want something like:

$wgUploadDirectory = "$IP/images";
$wgUploadPath = "$wgScriptPath/images/img";
TheBGPMan (talkcontribs)

Hi Mark, sorry for the delayed response. I just came back home.

You were right on point, I changed those fields to the following:

$wgUploadDirectory = "$IP/images/img";

$wgUploadPath = "$wgScriptPath/images/img";


And now everything is working just fine.


Thanks a lot!