Bobcares

How to fix Joomla error ‘PHP temporary directory is not set’

by | Nov 19, 2016

In Joomla, while accessing the ‘Extension Manager’ feature in Admin panel, a commonly noticed warning is ‘PHP temporary directory is not set’.

Extension Manager is used to manage the Joomla extensions via the Admin panel and any warnings in the page can cause a hindrance in updating and installing them.

Extensions such as plugins, modules, templates, etc. helps to add on to the functionality of Joomla. Today we’ll see what causes this joomla error and how to fix it.

What is PHP temporary directory

The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla can access this file.

In a webserver, the PHP temporary directory parameter is configured in the php.ini file. There would be a server-wide php.ini file to configure PHP settings.

Many servers allow users to have custom php settings in their accounts for their software. They will have PHP settings defined in local php.ini or ‘.htaccess’ files.

The PHP temporary directory, can thus be a server directory such as ‘/tmp’, or any tmp folder configured in the user’s document root.

PHP parameter ‘upload_tmp_dir’ is used to set the PHP temporary directory in the php.ini settings.

What causes ‘PHP temporary directory is not set’ error

The warning shown in Joomla page happens because the Joomla software is unable to access or write into the PHP server’s temporary directory.

 

Joomla PHP temporary directory warning

Joomla PHP temporary directory warning

 

The Joomla error ‘PHP temporary directory is not set’ happens due to these reasons:

1. PHP temporary directory defined in php.ini is missing 

2. PHP temporary directory is not set in the php.ini file

3. The permissions of the PHP temporary directory are incorrect

How to fix ‘PHP temporary directory is not set’

Here is the step-by-step approach to fix this warning:

  1. Using the ‘phpinfo’ page for the website, identify the php.ini file that is used for configuring PHP.
  2. Check for the ‘/tmp’ folder in the server. If there isn’t one, create it.
  3. Make sure that the ‘/tmp’ folder has adequate read and write permissions (777 with a sticky bit).
  4. Verify the parameter ‘upload_tmp_dir‘ and confirm that it shows the ‘/tmp’ directory.
  5. For users with custom php ini and temporary directory, make the corresponding updates.
  6. The path to this temporary directory (/tmp) should be updated in Joomla ‘Global Configuration’ using the option “Site > Global Configuration > Server“.

Now reload the ‘Extension Manager’ page in Joomla Administration page and the warnings would be gone!

 

Joomla Extension Manager without warnings

Joomla Extension Manager without warnings

 

To summarize..

Today we saw how to fix the Joomla error ‘PHP temporary directory is not set’ by configuring the PHP temporary directory settings.

In some cases, the parameter ‘session.save_path’ also need to be checked. It is the path where session files are created. It is defined in the php.ini file and default value is ‘/tmp’.

If you’d like to know how to manage your Joomla websites with zero downtime and no errors, we’d be happy to talk to you.

 

Get a FREE consultation

Do you spend all day answering technical support queries?

Wish you had more time to focus on your business? Let us help you.

We free up your time by taking care of your customers and servers. Our engineers monitor your servers 24/7, and support your customers over help desk, live chat and phone.

Talk to our technical support specialist today to know how we can keep your service top notch!

TALK TO AN EXPERT NOW!

var google_conversion_label = "Blp0CLCojHIQ0aD71QM";


Bobcares provides Outsourced Hosting Support and Outsourced Server Management for online businesses. Our services include Hosting Support Services, server support, help desk support, live chat support and phone support.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF