Error Missing a temporary folder

I just tried to upload a single PDF file and received the following error:
Error Missing a temporary folder

I tried uploading via the Incoming Directory and it worked fine.

I don’t see any previous issues with this error in the forums. What’s the folder that’s missing?

Core Version - 9.1.3

Is there a tmp directory in /application/files? If not, there should be. If there is, it might not be permissioned correctly. You might reach out to your hosting provider for assistance.

Apparently the Default Temporary folder was missing and it was added to Concrete’s’s temporary folder with full permission inside PHP settings.

1 Like

Huh, weird. Glad you were able to get it resolved!

Which default temp file? The one in /application/files?

That’s the one I was referencing, yeah.

Thanks. I do have that folder, but I’m still getting the message the folder is missing. And the files all have appropriate file permissions.

This is an area where the concreteCMS vendor could very clearly make some solid suggestions as to where to look to track this down, or at least explain how they do this… maybe even update their software so you put the setting inside concreteCMS rather than through PHP directives so this enver happens again, (strong suggestion here. :))) )…

So we have built several sites with concreteCMS for clients. Suddently one of them has this problem. We did not make any modifications and neither did the client. We suspect some upgrade happened on the CPANEL/WHM server to which we are unaware. So we checked and

  • they are both using the same PHP (php.ini) config,
  • have the same directory permissions, configurations and
  • have the same .user.ini and php.ini files in the project directories.
  • ./applications/files/tmp exists with 755 permissions

The Concrete->Dashboard->Reports->Logs shows nothing related.

So we dug and dug deeply and what we found is that the directory where concretecms is installed has both a php.ini and a .user.ini and a .htaccess that is being completely ignored for any directory that would modify the behavior of php. Not sure if it’s being caused by cloudlinux, cagefs, or immunify360… but ultimately the only way we got it fixed was to directly modify this file (requires root permissions):

  • somehow the /opt/capnel/ea-php83/root/etc/php-fpm.d/.conf

and put in this line

  • php_admin_value[upload_tmp_dir] = /home//tmp

Once we did that we restarted apache-fpm as root:

  • /scripts/restartsrv_apache_php_fpm

At that point the site is now working.

We did find that there was a file:

  • /opt/cpanel/ea-php83/root/etc/php-fpm.d/.conf.save

And we have wondered if that caused fpm to not regenerate some things properly. If someone knows the intracies of WHM/CPANEL and can explain better than I, please add.

If you need help with stuff like this, reach out to support@tekops.com, we might be able to help.

THIS IS NOT the way we like to fix things because it can get over-written later on from cpanel or WHM, but right now, we don’t seem to have any options. Again, THIS pathway should either be hard-coded to /tmp, ~/tmp or user-specified within the concreteCMS application and let the user create an upload/temp directory where they want.

Thanks
David