? ?
avatar sisko1990
sisko1990
25 Mar 2015

It would be great if Joomla! can autodetect the tmp-Path by getting the environment variable "$TMP" (as well: "$TEMP" or "$TMPDIR").
Some users don't know exactly the tmp-Path, so if they provide something wrong, there is no posibility for Joomla! to install extensions, because it can not write to the wrong provieded tmp-Path.

avatar sisko1990 sisko1990 - open - 25 Mar 2015
avatar sisko1990 sisko1990 - change - 25 Mar 2015
Labels Removed: ?
avatar brianteeman brianteeman - change - 25 Mar 2015
Category Administration Installation Administration Feature Request Installation
avatar bertmert
bertmert - comment - 25 Mar 2015

tmp directory of server environment and tmp directory of Joomla configuration are different things.

avatar joomdonation
joomdonation - comment - 26 Mar 2015

I think there is a "Reset" or "Set Default" button to allow reset the temp path would be good. When users click on reset, we can set that path to JPATH_ROOT . '/tmp' folder. It would help end users reset that path when they need (for example, when they move the site to different server or after uploading file from local computer to server....)

avatar mbabker
mbabker - comment - 26 Mar 2015

It's already an option in the Global Config to change the temp path. Short of a system health screen somewhere, I don't think we need to be adding more buttons or options to an already busy interface.

avatar joomdonation
joomdonation - comment - 26 Mar 2015

I know there is option to change the temp path. However, how an end-user who doesn't know the root path of the site (JPATH_ROOT) can change it to correct path? Maybe I missed that option somewhere?

avatar joomdonation
joomdonation - comment - 26 Mar 2015

For now, when I have to fix that path for customers, I have to upload a PHP file to server, run it to get the root path, and then update the temp path config option to correct value (so that extensions could be installed....).

avatar mbabker
mbabker - comment - 26 Mar 2015

I'm not saying it's a completely bad idea. I just don't want us adding more buttons or options basically anywhere right now without thinking it through fully. We already have too many options by trying to let the user configure everything in the GUI.

If we're going to start adding system health functions, this scenario being one of them, I'd rather see focus on a buildout of that type of feature with a full suite of checks versus having a button for this in the Global Config, the Database "Fix" view in the Extension Manager, etc.

avatar phproberto
phproberto - comment - 26 Mar 2015

I know there is option to change the temp path. However, how an end-user who doesn't know the root path of the site (JPATH_ROOT) can change it to correct path? Maybe I missed that option somewhere?

Maybe just a message showing the results of getcwd() as "Suggested path"

avatar joomdonation
joomdonation - comment - 26 Mar 2015

@phproberto I think "Suggested path" could simply be JPATH_ROOT . '/tmp'. I just don't know how/where we should/can display it.

avatar brianteeman brianteeman - change - 26 Mar 2015
Labels Added: ?
avatar brianteeman
brianteeman - comment - 12 Nov 2015

I am a bit confused how you get a situation with incorrect tmp and log folder paths. The joomla installer creates these - the end user does not need to know anything about their server setup as Joomla has set these up for them


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6579.

avatar bertmert
bertmert - comment - 12 Nov 2015

I am a bit confused how you get a situation with incorrect tmp and log folder paths

E.g. when you move / copy a page. Often asked and answered in forums how to correct these paths and how to determine it. And even if I know how to I would be happy sometimes to see a hint in the backend "absolute path to your Joomla" ;-) Also the most popular extension to copy / move Joomla e.g, to another folder on same server keeps the old paths if you don't pay attention.

avatar brianteeman
brianteeman - comment - 12 Nov 2015

I assume you mean move a site not move a page

I dont see why you would ever use that "most popular extension" when you
only need to move a site on the same server. But even if you did the "hard
bit" on finding the path, the absolute root, will not have changed. It
would only change on a new server and that "most popular extension" will
detect a new server and correctly write the paths

But PR always welcome if you really think it is needed

On 12 November 2015 at 21:49, bertmert notifications@github.com wrote:

I am a bit confused how you get a situation with incorrect tmp and log
folder paths

E.g. when you move a page. Often asked and answered in forums how to
correct these paths and how to determine it. And even if I know how to I
would be happy sometimes to see a hint in the backend "absolute path to
your Joomla" ;-) Also the most popular extension to copy / move Joomla e.g,
to another folder on same server keeps the old paths if you don't pay
attention.


Reply to this email directly or view it on GitHub
#6579 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar bertmert
bertmert - comment - 13 Nov 2015

But the last foldername has changed in the absolute path. E.g. when you copy a site to another folder on the same server old tmp and log paths work fine for e.g. a temporarily subdomain until you delete or rename the old folder. Suddenly installations fail and so on.

I don't know, too, where to show this information so that it is really helpul when a """normal""" user needs it. I made some fruitless PR trials in March.

avatar PhilETaylor
PhilETaylor - comment - 12 Jul 2016

This just needs closing...

avatar brianteeman
brianteeman - comment - 12 Jul 2016

Why - it's a reasonable request

On 12 Jul 2016 8:07 p.m., "Phil Taylor" notifications@github.com wrote:

This just needs closing...


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6579 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABPH8S1huatOO1FxZtUjH5xFPDVjhnnzks5qU-XegaJpZM4D0bq-
.

avatar brianteeman
brianteeman - comment - 12 Jul 2016

Ignore my last comment

avatar PhilETaylor
PhilETaylor - comment - 12 Jul 2016

If you are trying to install extensions and cannot because you have an invalid tmp_path then one hopes that you are also the same person that has access to Joomla Global Configuration, the System Information page and a tiny bit of knowledge of the server environment your site is on, or can create ANY folder and set the tmp path to that.

Joomla makes assumptions on first installation. These are correct assumptions and sets the paths right

If a "web master" subsequently moves the site and then doesn't update his paths then maybe he should consider his credentials for moving sites... it should not be up to Joomla to think "oh this path doesnt exist and you are trying to upload an extension... hmm... let me GUESS where to store my tmp data for you.... "

There is no reason for Joomla to ever have to guess where to put its tmp data. It should be specified by the "web master" in control of the site.

avatar PhilETaylor
PhilETaylor - comment - 12 Jul 2016

ah - duly ignored @brianteeman :)

avatar brianteeman brianteeman - change - 5 Aug 2016
Labels Added: ?
avatar rdeutz
rdeutz - comment - 17 Aug 2016

This should be the responsible of the "site owner/Webmaster", closing

avatar rdeutz rdeutz - change - 17 Aug 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-08-17 20:08:29
Closed_By rdeutz
avatar rdeutz rdeutz - close - 17 Aug 2016

Add a Comment

Login with GitHub to post a comment