Hello
We are new here and would like to create our online shop with Magento 2.1.
Unfortunately we have a problem with different languages.
We want to create our online shop in 5 different languages
We have added a Romanian language and that way
We have on vendor / magento / created a directory language-ro_ro and uploaded the files there.
Well, if you choose the Romanian language, it will always be displayed in English.
What do we have to do to choose the Romanian language?
greeting
Matthias
Solved! Go to Solution.
Your error log says that you Var/Generation directory is not writable.
As per the standard Var directory and for magento 2.2 on wards generated directory both needed writable permission.
So you need to give permission to those directories , and below are the commands for that.
cd <your Magento install dir> find . -type f -exec chmod 644 {} \; // 644 permission for files
find . -type d -exec chmod 775 {} \; // 775 permission for directory
find ./var -type d -exec chmod 775 {} \; // 775 permission for var folder
find ./pub/media -type d -exec chmod 775 {} \; find ./pub/static -type d -exec chmod 775 {} \; chmod 775 ./app/etc chmod 644 ./app/etc/*.xml chown -R :<web server group> . chmod u+x bin/magento
For more details refer this link - http://devdocs.magento.com/guides/v2.0/config-guide/prod/prod_file-sys-perms.html
if issue solved, Click kudos/Accept as solutions.
Hi Matthias
Instead of adding your language pack to vendor directory - add language pack to app/i18n directory.
Below is the detailed instructions step to make second store in Romanian(ro_RO) language.
For More Details refer this link - https://github.com/EaDesgin/magento2-romanian-language-pack
Note : While doing this all make sure you are in developer mode - as magento 2.2.2 version you can not change locale while your in production mode.
if issue solved, Click kudos/Accept as solutions.
Hello
Whenever I execute this command, he makes the update
but after that I always get this message in the browser
and I can not get on Magento
"An error has happened during application run. See exception log for details."
what do you have to do now?
greeting
Matthias
Hi @demamaschinen,
Check into your Magento directory: /path/to/magento/var/log
Probably you'll get an exception.log file with some messages.
An error has happened during application run. See exception log for details
To solve this issue we need to follow the below steps.
Now check it will works !! If issue is still not solved , then post your exception log file code over here .
if issue solved, Click kudos/Accept as solutions.
after these executions of these commands come these error messages
Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/vhosts/domain.de/shop2018.domain.com/var/cache/" is not writable in /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/var...') #1 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/var/www/vhosts...') #2 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen. in /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/zendframework1/library/Zend/Cache.php on line 209
in the log file that is in there
[2018-01-20 08:27:37] main.CRITICAL: RuntimeException: Can't create directory /var/www/vhosts/domain.de/shop2018.domain.com/var/generation/Magento/Framework/App/Response/Http/. in /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/Code/Generator.php:115
Stack trace:
#0 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\\Framewo...')
#1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\\Framewo...')
#2 [internal function]: spl_autoload_call('Magento\\Framewo...')
#3 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\\Framewo...')
#4 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Framewo...')
#5 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(71): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Framewo...')
#6 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#7 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#8 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'response', 'Magento\\Framewo...')
#9 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Framewo...', Array, Array)
#10 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#11 /var/www/vhosts/domain.de/shop2018.domain.com/vendor/magento/framework/App/Bootstrap.php(233): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#12 /var/www/vhosts/domain.de/shop2018.domain.com/index.php(38): Magento\Framework\App\Bootstrap->createApplication('Magento\\Framewo...')
#13 {main} [] []
What do I have to do?
Your error log says that you Var/Generation directory is not writable.
As per the standard Var directory and for magento 2.2 on wards generated directory both needed writable permission.
So you need to give permission to those directories , and below are the commands for that.
cd <your Magento install dir> find . -type f -exec chmod 644 {} \; // 644 permission for files
find . -type d -exec chmod 775 {} \; // 775 permission for directory
find ./var -type d -exec chmod 775 {} \; // 775 permission for var folder
find ./pub/media -type d -exec chmod 775 {} \; find ./pub/static -type d -exec chmod 775 {} \; chmod 775 ./app/etc chmod 644 ./app/etc/*.xml chown -R :<web server group> . chmod u+x bin/magento
For more details refer this link - http://devdocs.magento.com/guides/v2.0/config-guide/prod/prod_file-sys-perms.html
if issue solved, Click kudos/Accept as solutions.