http://pyrocms.com/documentation/pyrocms/v3.1#installation/installing-pyrocms/running-the-installer
Getting this error
"An exception has been thrown during the rendering of a template ("file_put_contents(app/default/assets/admin/theme.css): failed to open stream: No such file or directory") in "theme::partials/metadata" at line 24."
What I tried so far?
- changing the permission of storage and bootstrap\chache to 777
- php artisan asset:clear
You need to set the following directories writable by your web server:
storage
public/app
bootstrap/cache
In your case, its public/app that you have missed.
Related
When i try to run a laravel application, I get this error :
file_put_contents(C:\xampp\htdocs\academy\storage\framework/sessions/yYtLcWMJlFDNXQf3lfs5Pfv0ImwmiwjvhW8Oxkyy):
failed to open stream: No such file or directory
I have installed composer, php every thing.
Database is created and when i give command in power shell it is showing server started but when i try to open it through crome it give me this error.
I am new to laravel and I run my website on localhost. It runs correctly but when I upload it on cpanel, it raises these errors :
Warning:
require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in
/home/didfilei/public_html/app/vendor/composer/autoload_real.php on
line 66
Warning:
require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in
/home/didfilei/public_html/app/vendor/composer/autoload_real.php on
line 66
Fatal error: require(): Failed opening required
'/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php'
(include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in
/home/didfilei/public_html/app/vendor/composer/autoload_real.php on
line 66
I solved it. I realized that after extracting the zip file with cpanel, some folders were deleted (eg '/ symfony'), so I got more space from the hosts, then my project extract correctly
Since you do not have access to SSH, you should upload the vendor files along with the rest of your project.
Be careful that if your dev machine is windows, you might face some issues with paths and case sensitivity.
You also need to check how php is executed in your host. You might have to fiddle around with file ownership and access rights.
Especially if suphp is used, your user must be the owner of everything in your folder, all files must be set to 644 and all folders to 755
SSH into your server and run composer update in the root of your project. This will pull in the required vendor files that you are missing.
When I navigate to Laravel app on my CentOS server, it gives HTTP ERROR 500
So, when I checked my server error log, it says this error
PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107\nStack trace:\n#0
I have already set 777 permission to storage and bootstrap directories.
This very Laravel application runs fine on another server. So, what's the big deal here ?
This error can be fixed by disabling SE-Linux.
Check if it has been enabled by typing...
$ sestatus
So, disable it by typing...
# setenforce 0
It is said that the system needs to be restarted to to take effect the changes.
However, for me, restarting Apache was enough and fixed the problem :-)
Hope this helps!
If your application is laravel and you use sail so add these lines in end of .env file:
WWWGROUP=1000
WWWUSER=1000
I know its late to answer but maybe helps for others.
My dev environment works correctly. But when I switch to production I get this error:
Fatal error: Uncaught exception 'UnexpectedValueException'
with message
'The stream or file "C:/wamp/www/merlin/Symfony/app/logs/prod.log" could not be opened: failed to open stream: No such file or directory' in C:\wamp\www\merlin\app\cache\prod\classes.php on line 4958
What is wrong ?
I have my app folder in
C:/wamp/www/merlin/app/ why symfony search files in C:/wamp/www/merlin/Symfony/app ?
Is file C:/wamp/www/merlin/Symfony/app/logs/prod.log exists? If no, try to create them manually. Also, for testing, change permissions of this file to 777 and permissions of C:/wamp/www/merlin/Symfony/app/logs dir to 777 too. Then try to manually remove all cache in C:/wamp/www/merlin/Symfony/app/cache dir.
I installed Drupal 7 in a web host successfully.
After installing a module, I got an error errors and and status report gave me this error message:
File system Not writable
The directory /Applications/MAMP/tmp/php does not exist.
You may need to set the correct directory at the file system settings page or
change the current directory's permissions so that it is writable.
I check the permissions for (sites/default/files) and it has 755 permissions and I change it to 777 but nothing happened so I return it back.
I have the following setting for (Home » Administration » Configuration » Media):
Public file system path
sites/default/files
Temporary directory
/Applications/MAMP/tmp/php
and here is the error I am getting:
Warning: file_put_contents(temporary://fileDyFbDg) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file could not be created.
Warning: file_put_contents(temporary://fileeTFMpl) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file could not be created.
Warning: file_put_contents(temporary://fileuB8Tdu) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file could not be created.
Warning: file_put_contents(temporary://filea1KYXG) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1898 of /home/imamus/public_html/includes/file.inc).
The file could not be created.
Please advice.
I check the permissions for (sites/default/files) and it has 755 permissions and I change it to 777 but nothing happened so I return it back.
do the same for /Applications/MAMP/tmp/php
This reply is for non-windows sites :
In my case, the sites/default/files/ folder was set to 775 ( not a good idea to have it set to 777 )
I had to delete the following folder :
rm -rf /tmp/devel_themer/
Then it worked !
The error happens, because your temporary directory is not writable by your web server user.
You may check that in admin panel by going to Reports and Status report at: /admin/reports/status.
To fix it, you've to got to File system in Configuration (at /admin/config/media/file-system), then change your temporary directory to point to your writable directory. If that's correct, then make you set the right permission on it, e.g.
sudo chmod -R 777 /Applications/MAMP/tmp/php
and the same for default files folder:
sudo chmod -R 777 sites/default/files
Drush
If you're using drush, check which folder is set currently by:
drush vget file_temporary_path
Then to fix it, try:
drush vset file_temporary_path /tmp
Here are default temporary directories:
OS X: /private/tmp, for MAMP: /Applications/MAMP/tmp/php
Linux/Unix: /tmp