symfony 3 curl_exec(): Unable to create temporary file - symfony

I am getting:
Warning: curl_exec(): Unable to create temporary file, Check permissions in temporary files directory.
EDIT:
ERROR:
Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: curl_exec(): Unable to create temporary file, Check permissions in temporary files directory." at /data/web/virtuals/180989/virtual/www/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 40
I have tried to clear cache, to set some directories chmod 777, nothing changed.
Everything works perfectly until i uploaded my project on a hosting when I visit specific url it shows me an error.
What should i do with that?

Related

Failed to open temporary output file: Permission denied

ubuntu 20.04 install azeronthcore with docker,run ./acore.sh docker build , i had tried
several times but still not working.anyone could help me with this?thx!
root#ubuntu:~/azerothcore-wotlk#
dos2unix: Failed to open temporary output file: Permission denied
dos2unix: problems converting file env/dist/etc/authserver.conf.dockerdist to file
env/dist/etc/authserver.conf.dockerdist
dos2unix: Failed to open temporary output file: Permission denied
dos2unix: problems converting file env/dist/etc/worldserver.conf.dockerdist to file
env/dist/etc/worldserver.conf.dockerdist
Make sure you have permission to create a file in directory env/dist/etc/. dos2unix writes the result first to a temporary file. When something goes wrong in the middle, you still have the original file.

How to solve this error in moodle ? and setup in localhost?

Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
You need to check 'config.php' in your moodle installation files directory.
There you can find a line like below, which shows your directory name (it seems empty as per your error, you need to define path here) - in this directory/folder your moodle media uploads get store.
$CFG->dataroot = '/var/moodledata';
Moreover, after define this you will require to give Read,Write,Execute permissions to this folder.
(here '/var...' mentioned as Ubuntu directory structure, in localhost you need to mention respectively)

Drupal 8.2.6 /tmp

Drupal 8.2.6
Media Entity 8.x-1.0-alpha4
Ctools 8.x-3.0-alpha27
So after turn on CSS/JS aggregation I noticed that I can not upload images anymore. When I try to upload an image it gave me an error. So I changed my tmp directory to
sites/default/files/tmp
but that didn't help and gave me an error of
The file could not be saved. An unknown error has occurred.
File upload error. Could not move uploaded file.
This value should not be null.
I checked the permissions. default folder is 755. files folder is 755. tmp folder is 755. This also started affecting my Drupal 7 website after I enabled aggregation, so I am certain this is what is affecting my site.
Any information or leads would be very helpful, as I've been stuck.
After a long 2 days struggling to find the answer, I finally found a temporary solution. I used the command chmod -R 1777 /tmp . Then in admin/config/media/file-system I set directory to /tmp . Might have security vulnerabilities, but it works for me.

Destination directory is not properly configured for Drupal

I keep getting the error on my Drupal 7 site - even after I have configured the logging and errrors to 'none'
I have made my tmp file writeable 777 and checked the file directory is correct under 'file system' I have made my sites/default/files directory writeable also
Cannot seem to get rid of this error - it reads:
The specified file temporary://fileg2e71m could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
Any suggestions?
Have resolved the issue:
It was an ownership issue where the files are owned by the Apache user. I Set PHP 5 to run in cgi-mode on my cPanel.
Drupal 7 and drupal 8 and 9:
After importing a Database, some paths are not quite well defined. Go to /admin/config/media/file-system and hit "Save Configuration". Now the Translations-import works fine.

WordPress update failing

I'm having a problem when trying to update WordPress to the latest version I get the following error:
Download failed.: Destination directory for file streaming does not exist or is not writable.
Installation Failed
I'm also having the same problem when uploading images, it fails and gives the following error
has failed to upload due to an error
The uploaded file could not be moved to "the website path and then uploads directory"
I have checked the permissions of the folders and the folders themselves are set to 755 & the files inside them set to 644.
Could anyone tell me why it would be doing this?
Where running a plesk server.
Thank You,
Mark
Are there any more error messages, probably also in the servers log files? Probably the download for the update should be done to /tmp and you are not allowed to store files there? Try setting the constant WP_TEMP_DIR which should change the directory. Put something like this in your wp_config.php:
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
The permissions you're using seem reasonable, but they will only work if the FTP user that WordPress is using (set in your wp_config.php file) is the same as the owner of those files/folders.

Resources