warning The PHP temporary folder is not set

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
blondie63
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Aug 26, 2012 8:38 am

warning The PHP temporary folder is not set

Post by blondie63 » Sat Jan 22, 2022 11:34 am

Hi, i've many sites with JM3 and now some new JM4 sites in hosting on servers managed by Runcloud.io
All JM4 works fine but i've this warning:
"The PHP temporary folder is not set."

On jm/server settings/Path to Temp Folder i've an existing path and on runcloud webapp settings i've included this path on open_basedir, anyway the warning still here !

Is it a Joomla 4 bug ?

Olympe30
Joomla! Intern
Joomla! Intern
Posts: 79
Joined: Sun Dec 12, 2021 9:28 am

Re: warning The PHP temporary folder is not set

Post by Olympe30 » Sat Jan 22, 2022 11:39 am

No
You have to access at your php.ini file and configure temporary folder:

upload_tmp_dir = (an existing folder tmp on your site)

Beware: delete the ";" at the head of the line

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4628
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: warning The PHP temporary folder is not set

Post by gws » Sat Jan 22, 2022 11:51 am

Just ignore it,its a warning only.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28824
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: warning The PHP temporary folder is not set

Post by Per Yngve Berg » Sat Jan 22, 2022 2:11 pm

Using open_basedir, is old school. Not recommended any more. Use User folder permissions instead.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 41259
Joined: Sat Apr 05, 2008 9:58 pm

Re: warning The PHP temporary folder is not set

Post by Webdongle » Sat Jan 22, 2022 3:22 pm

If it works don't fix it. When the php tmp file is not set in the master php.ini file then the path for tmp defaults to /tmp. Joomla already has a /tmp folder so (providing the rest of the server is configured correctly) your site should work as expected.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

blondie63
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Aug 26, 2012 8:38 am

Re: warning The PHP temporary folder is not set

Post by blondie63 » Sat Jan 22, 2022 4:14 pm

ok, my question is "why joomla this false warning" ?

Olympe30
Joomla! Intern
Joomla! Intern
Posts: 79
Joined: Sun Dec 12, 2021 9:28 am

Re: warning The PHP temporary folder is not set

Post by Olympe30 » Sat Jan 22, 2022 6:16 pm

It is not a false warning.
Just a warning is not a fatal error and may be forgotten.
Else, do that I've written.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 41259
Joined: Sat Apr 05, 2008 9:58 pm

Re: warning The PHP temporary folder is not set

Post by Webdongle » Sat Jan 22, 2022 6:47 pm

Not a false warning. It just warns that the tmp folder is not defined in the master php.ini file. If your site is working I recommend not messing as the php default value works (even though the notification does not state that).
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

MK1
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Oct 12, 2017 8:21 am

Re: warning The PHP temporary folder is not set

Post by MK1 » Wed Jan 26, 2022 10:17 am

Easiest solution is:

Open root public_html

Click folder "administrator"

add file and name it php.ini

add code:
upload_tmp_dir = //home/put your directory name here/public_html/tmp/


Save

Problem solved

Some people will not have a php.ini file, you can also edit .htaccess file but adding above is simple enough!

blondie63
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Aug 26, 2012 8:38 am

Re: warning The PHP temporary folder is not set

Post by blondie63 » Wed Jan 26, 2022 3:36 pm

i cannot user php.ini on my hosting but i've to use a file named .user.ini with same parameters
i've just code upload_tmp_dir = //home/put your directory name

but joomla 4 show this warning the same..
joomla 3 does'nt have this warning

anyway, is not so important :)

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28824
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: warning The PHP temporary folder is not set

Post by Per Yngve Berg » Wed Jan 26, 2022 3:52 pm

A path does not start with double slash in Linux.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 41259
Joined: Sat Apr 05, 2008 9:58 pm

Re: warning The PHP temporary folder is not set

Post by Webdongle » Wed Jan 26, 2022 4:01 pm

If it not in the master php.ini file them the command will not be executed will it.
Besides which, defining the path is for when default path /tmp does not relate to the sites /tmp folder.
I repeat if it works don't fix it. The not set warning is just that 'Not set'. It does not check to see if the default path works or not.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

blondie63
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Aug 26, 2012 8:38 am

Re: warning The PHP temporary folder is not set

Post by blondie63 » Wed Jan 26, 2022 4:02 pm

Per Yngve Berg wrote:
Wed Jan 26, 2022 3:52 pm
A path does not start with double slash in Linux.
yes I know, it was just an example


Post Reply

Return to “Administration Joomla! 4.x”