Temporary folder could not be found (fixed)

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
bongmaster
Registered User
Posts: 13
Joined: Mon Apr 17, 2006 2:49 pm

Temporary folder could not be found (fixed)

Post by bongmaster » Tue Nov 20, 2007 11:15 pm

Your board's URL: http://bonsharde.bounceme.net/phpBB2
Version of phpBB3: 3.0.RC5
Was this a fresh install or a(n) update/upgrade/conversion (please be specific)? Fresh install
Was this an install through your host? no, My own server
MODs you have installed: none
When the problem started: from moment of install

i get the error:

Code: Select all

 Temporary folder could not be found. Please check your PHP installation.
this is when anyone tries to upload an avatar to my board, or any attachments

I also get this in the admin panel when i try to edit a forum section or category in 'manage forums'

Code: Select all

General Error
SQL ERROR [ mysqli ]

Can't create/write to file '/tmp/#sql_20ca_0.MYI' (Errcode: 13) [1]

SQL

SELECT f2.* FROM phpbb_forums f1 LEFT JOIN phpbb_forums f2 ON (f2.left_id BETWEEN f1.left_id AND f1.right_id) WHERE f1.forum_id = 1 ORDER BY f2.left_id ASC

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: includes/functions_admin.php
LINE: 333
CALL: dbal_mysqli->sql_query()

FILE: includes/acp/acp_forums.php
LINE: 425
CALL: get_forum_branch()

FILE: includes/functions_module.php
LINE: 463
CALL: acp_forums->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
i dont know why this is happening and it never happened before now. i am using the same server software i used before. the only difference is the phpBB3 im using..

can anyone tell me how to fix this?
Last edited by cybrid23 on Thu Nov 22, 2007 1:16 am, edited 2 times in total.
Reason: Topic Icon Changed

cybrid23
Former Team Member
Posts: 9877
Joined: Wed Jun 29, 2005 5:55 am
Location: Somewhere in the Midwest...
Contact:

Re: Temporary folder could not be found

Post by cybrid23 » Wed Nov 21, 2007 3:25 am

The /tmp folder is missing, or unwritable.

See if it is there, and check the permissions.
---Never leave home without a towel and your peril sensitive sunglasses.
---Do Not PM Me For Support. It will go unanswered.
Thanks.

bongmaster
Registered User
Posts: 13
Joined: Mon Apr 17, 2006 2:49 pm

Re: Temporary folder could not be found

Post by bongmaster » Wed Nov 21, 2007 5:31 am

exactly where is the tmp folder supposed to be? in the phpBBx root?or elsewhere?

It isn't in the phpBBx root folder.

My server must have been made by the Cirrus Cybernetics Corporation :(

cybrid23
Former Team Member
Posts: 9877
Joined: Wed Jun 29, 2005 5:55 am
Location: Somewhere in the Midwest...
Contact:

Re: Temporary folder could not be found

Post by cybrid23 » Wed Nov 21, 2007 12:21 pm

Depends on your server config.

Mine is in the root directory of the server.
---Never leave home without a towel and your peril sensitive sunglasses.
---Do Not PM Me For Support. It will go unanswered.
Thanks.

bongmaster
Registered User
Posts: 13
Joined: Mon Apr 17, 2006 2:49 pm

Re: Temporary folder could not be found

Post by bongmaster » Wed Nov 21, 2007 6:09 pm

I tracked it down and set the permissions :) now it seems to be working properly :)

Thanks for the help :D

jaco0331
Registered User
Posts: 7
Joined: Wed Nov 14, 2007 5:31 pm

Re: Temporary folder could not be found (fixed)

Post by jaco0331 » Thu Jan 10, 2008 11:36 am

I know it already says fixed in the title, but I have the same problem.
I can't find a tmp folder anywhere, and when I look in the ACP under PHP installation, both the local value and the master value for upload_tmp_dir says no value

Dosage
Registered User
Posts: 4
Joined: Sat Apr 26, 2008 11:01 pm

Re: Temporary folder could not be found (fixed)

Post by Dosage » Sat Apr 26, 2008 11:19 pm

General Error
SQL ERROR [ mysqli ]

Can't create/write to file '/tmp/#sql_20ca_0.MYI' (Errcode: 13) [1]
this error does not have anything to do with any directory on your web hosting. it is a MySQL error from the MySQL server.

I have seen this before on MySQL for one of our customers. and the permissions were fine and the directory was not full or anything like that.

To fix it I just deleted the file it was trying to write to '/tmp/#sql_c6b_0.MYD' (since it already existed). After i deleted the file I did not get the error anymore.

This was on MySQL running on a Linux server not Windows. I imagine the fix might still work on windows though.

Since its a temp item it may get deleted/purged eventually and your site will work again. but to force it, just have your server admin delete the file manually.

Georges S.
Crystaltech Web Hosting
Server Support Specialist
*removed*
Last edited by Noxwizard on Sun Apr 27, 2008 1:04 am, edited 1 time in total.
Reason: Removed link

Vermus
Registered User
Posts: 2
Joined: Sat Nov 28, 2009 6:12 pm

Re: Temporary folder could not be found

Post by Vermus » Sat Nov 28, 2009 6:16 pm

cybrid23 wrote:The /tmp folder is missing, or unwritable.

See if it is there, and check the permissions.
My hosting provider don't allow to rigth permission to system temp directory.
How to use custom dir?

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 2523
Joined: Mon Jul 10, 2006 9:58 pm
Name: Andreas Fischer

Re: Temporary folder could not be found

Post by bantu » Sat Nov 28, 2009 9:33 pm

Vermus wrote:
cybrid23 wrote:The /tmp folder is missing, or unwritable.

See if it is there, and check the permissions.
My hosting provider don't allow to rigth permission to system temp directory.
How to use custom dir?
This is nothing you can fix. It has to be fixed by the MySQL Administrator or Server Administrator.
Powered by Coffee

Vermus
Registered User
Posts: 2
Joined: Sat Nov 28, 2009 6:12 pm

Re: Temporary folder could not be found

Post by Vermus » Sun Nov 29, 2009 10:17 am

bantu wrote:This is nothing you can fix. It has to be fixed by the MySQL Administrator or Server Administrator.
Other CMS has settings, that allow to use for temporary files directory another then system temp (dir in home path of shared hosting). phpBB3 don't have this one?

khanhtrong
Registered User
Posts: 1
Joined: Mon Jul 12, 2010 3:20 pm

Re: Temporary folder could not be found (fixed)

Post by khanhtrong » Mon Jul 12, 2010 3:29 pm

bongmaster wrote:Your board's URL: http://bonsharde.bounceme.net/phpBB2
Version of phpBB3: 3.0.RC5
Was this a fresh install or a(n) update/upgrade/conversion (please be specific)? Fresh install
Was this an install through your host? no, My own server
MODs you have installed: none
When the problem started: from moment of install

i get the error:

Code: Select all

 Temporary folder could not be found. Please check your PHP installation.
this is when anyone tries to upload an avatar to my board, or any attachments

I also get this in the admin panel when i try to edit a forum section or category in 'manage forums'

Code: Select all

General Error
SQL ERROR [ mysqli ]

Can't create/write to file '/tmp/#sql_20ca_0.MYI' (Errcode: 13) [1]

SQL

SELECT f2.* FROM phpbb_forums f1 LEFT JOIN phpbb_forums f2 ON (f2.left_id BETWEEN f1.left_id AND f1.right_id) WHERE f1.forum_id = 1 ORDER BY f2.left_id ASC

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: includes/functions_admin.php
LINE: 333
CALL: dbal_mysqli->sql_query()

FILE: includes/acp/acp_forums.php
LINE: 425
CALL: get_forum_branch()

FILE: includes/functions_module.php
LINE: 463
CALL: acp_forums->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
i dont know why this is happening and it never happened before now. i am using the same server software i used before. the only difference is the phpBB3 im using..

can anyone tell me how to fix this?
1. Create a folder named "temp" in C: drive (C:\temp\)
2. Set modify right to everyone
3. Open "php.ini" and find "upload_tmp_dir" then set to enable and type the value "upload_tmp_dir = "C:\temp\"
4. Restart your IIS server or your Webserver => fixed this error!

dncollins
Registered User
Posts: 127
Joined: Sat Feb 14, 2009 9:06 am

Re: Temporary folder could not be found (fixed)

Post by dncollins » Thu Dec 02, 2010 11:16 pm

I recently began having this problem too, when attempting to upload attachments to my board.

This is likely related to the fact that my board server's admin (nethere.net) recently configured my website to use PHP 5.2.x (was using PHP 4.x)

I do notice that the PHP upload_tmp_dir value is set to "no value". I have a query out to my server admin asking them if this is something they can change or if it is something that's assigned on a per-user basis and it's something I change.

I'm thinking that there is a possibility that when one installs phpBB (or upgrades to a new version), the installation process may take care of configuring the location of the temporary folder for uploads. If true, this would explain why I have the problem ... because I didn't reinstall phpBB after my server switched to PHP 5.2.x

I have tried to deduce from the phpBB script files where specification of the temp folder occurs (if it does occur), but layers and layers of indirect references in the script have got me stumped so far.

If anyone can help, please chime in.

Hoarhey
Registered User
Posts: 8
Joined: Mon Jun 01, 2009 6:26 am

Re: Temporary folder could not be found (fixed)

Post by Hoarhey » Sun Feb 13, 2011 4:52 am

Temporary folder could not be found. Please check your PHP installation

Hello,

I have users starting to get this message when trying to change there avatar. I have read this topic but cant really work out what the fix is. Could someone please explain what I need to do to fix this problem. I have the current version of PHPBB3.

Kind regards

dncollins
Registered User
Posts: 127
Joined: Sat Feb 14, 2009 9:06 am

Re: Temporary folder could not be found (fixed)

Post by dncollins » Sun Feb 13, 2011 7:29 am

My problem was cured when my server admin added the /var/tmp folder to my open_base directive in my php.ini file. It turns out, that's something that I could have done myself using the ftp access privileges granted by my web host (nethere.net).

So, though at least one person above is pretty sure this is a MySQL problem, it appears that there are cases where correctly specifying a tmp directory in the php.ini file fixes it.

The right answer may be related to what, if any, updates or modifications you've made to your phpBB installation lately. Have you added a MOD? Did you change versions of PHP you're using? Did you do anything that would have modified or updated your database structure?

Hoarhey
Registered User
Posts: 8
Joined: Mon Jun 01, 2009 6:26 am

Re: Temporary folder could not be found (fixed)

Post by Hoarhey » Sun Feb 13, 2011 11:32 am

Thanks for the reply,

The only thing I have done recently was upgraded to the latest version from 3.0.7
I have a FAQ mod and that is it.

Still stuck??

Locked

Return to “[3.0.x] Support Forum”