Page MenuHomePhabricator

where can i add the right url for picture upload
Closed, InvalidPublic

Description

Author: MichaelMellinger

Description:
my page is hosted by a free hoster ander this url:
http://andrologie.crazy-hosting.de/
my client name ist web32,

the database (mysql) ist on
http://www.youspace.de
my client name there ist web115

a get access to the database on youspace.

  1. but i can't get access to the uploaded pictures there
  2. i can't upload new images - you can try it ones

i get the following onscreen faultmessages:
<b>Warning</b>: mkdir(web115.confixx.youspace.de/zyklus/images/4): No such file
or directory in <b>/srv/www/htdocs/web32/html/andro/includes/Image.php</b> on
line <b>724</b><br />
<b>Warning</b>: mkdir(web115.confixx.youspace.de/zyklus/images/4/4f): No such
file or directory in <b>/srv/www/htdocs/web32/html/andro/includes/Image.php</b>
on line <b>726</b><br />
<b>Warning</b>:
move_uploaded_file(web115.confixx.youspace.de/zyklus/images/4/4f/Fragezeichen.png):
failed to open stream: No such file or directory in
<b>/srv/www/htdocs/web32/html/andro/includes/SpecialUpload.php</b> on line
<b>316</b><br />
<b>Warning</b>: move_uploaded_file(): Unable to move
'/srv/www/htdocs/web32/phptmp/php6nClsI' to
'web115.confixx.youspace.de/zyklus/images/4/4f/Fragezeichen.png' in
<b>/srv/www/htdocs/web32/html/andro/includes/SpecialUpload.php</b> on line
<b>316</b><br />


Version: 1.4.x
Severity: normal
OS: Windows XP
Platform: PC
URL: http://andrologie.crazy-hosting.de/andro/index.php/Hauptseite

Details

Reference
bz3247

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:47 PM
bzimport set Reference to bz3247.
bzimport added a subscriber: Unknown Object (MLST).

Changed subject to reflect the issue.

The script attempt to create a directory in
web115.confixx.youspace.de/zyklus/images/
although mediawiki seems to be in /srv/www/htdocs/web32/html/andro

You should check your LocalSettings.php variables such as
$wgUploadDirectory which should be "$IP/images" where $IP is probably
already set to /srv/www/htdocs/web32/html/andro .

MichaelMellinger wrote:

this is the first idea i try.

I set the following arguments, no one match.
$wgUploadDirectory = "web115.confixx.youspace.de/zyklus"
$wgUploadDirectory = "web115.youspace.de/zyklus"
$wgUploadDirectory = "web115.confixx.youspace.de"
$wgUploadDirectory = "web115.confixx.youspace.de/zyklus/images"
$wgUploadDirectory = "youspace.de/zyklus"
I think this is the right adress to my webspace:
web115.confixx.youspace.de/

in the warning message can you see the argument:
web115.confixx.youspace.de is it show because i set it in local.php

if i call specialpages, then "special:Newimages"
i should see my uploaded pictuers, but there is only
shown the spaceholder. if i click on the picturepage
is there no picture, there is only the messeg
picture not available. After this i click on the link
is show. i new browserwindow is open with the following
url.
http://andrologie.crazy-hosting.de/index.php/web115.confixx.youspace.de/zyklus/images/9/9b
-------------^my host^----------------------.-----------^my
database^-------------------

MichaelMellinger wrote:

this is the first idea i try.

I set the following arguments, no one match.
$wgUploadDirectory = "web115.confixx.youspace.de/zyklus"
$wgUploadDirectory = "web115.youspace.de/zyklus"
$wgUploadDirectory = "web115.confixx.youspace.de"
$wgUploadDirectory = "web115.confixx.youspace.de/zyklus/images"
$wgUploadDirectory = "youspace.de/zyklus"
I think this is the right adress to my webspace:
web115.confixx.youspace.de/

in the warning message can you see the argument:
web115.confixx.youspace.de is it show because i set it in local.php

if i call specialpages, then "special:Newimages"
i should see my uploaded pictuers, but there is only
shown the spaceholder. if i click on the picturepage
is there no picture, there is only the messeg
picture not available. After this i click on the link
is show. i new browserwindow is open with the following
url.
http://andrologie.crazy-hosting.de/index.php/web115.confixx.youspace.de/zyklus/images/9/9b
-------------^my host^----------------------.-----------^my database^----

jeluf wrote:

The $wgUploadDirectory is a host directory, not a URL path. It has to be either
absolute or relative to your index.php file.

MichaelMellinger wrote:

(In reply to comment #4)

The $wgUploadDirectory is a host directory, not a URL path. It has to be either
absolute or relative to your index.php file.

Which is the right parameter i have to change?

MichaelMellinger wrote:

(Add reply to comment #5)
Is the answer from JeLuF right. Where can i add/change the right url for the
picture adress?

robchur wrote:

MediaWiki ships with an images directory, which contains a readme file by
default. What you'll most likely need to do is set $wgUploadDirectory =
"{$wgScriptPath}/images"; in LocalSettings.php, and make that directory writable
by the web server (CHMOD 777); then enable uploads by setting $wgEnableUploads =
true; (also in LocalSettings.php).

Resolving INVALID.