Could not read config file while deploying static content in Magento 2? - magento2

It shows error in FileResolver file.

Check {your_theme_dir}/etc/view.xml file,
then, if empty, copy it from Magento_blank theme and run setup:static-content:deploy again.

Related

How to recover frontend and backend css after deploy command

I have done below steps but after this frontend and backend css fonts will not working properly in magento2.
Remove pub/static //not .htaccess
Remove var/cache
Remove var/composer_home
Remove var/generation
Remove var/page_cache
Remove var/view_preprocessed
Then open up app/etc/di.xml find the path
Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
and replace it with Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
And finally run this:
php bin/magento setup:static-content:deploy
I have been facing strange issue, as the part moving modifications in static content. we removed pub/static and deployed setup:static-content:deploy.
After doing this, files are generated properly in pub/static folder but when i load front end, styles are vanished.
As in the source the file paths are loading with version1483082446
root/static/version1483082446/frontend/Smartwave/porto/en_US/mage/calendar.css
I have followed below commands, but my styles are not loading in frontend.
Delete var/cache var/page_cache generated var/view_proceesed pub/static/frontend pub/static/adminhtml
Perform setup:upgrade di:compile content:deploy cache:flush
Give 777 permission to the pub var and generated folder.

Where i can find Php.ini file in eclipse

I am trying to upload an image in my PHP program using eclipse, but here i am not able to find php.ini file.
please help for this
thank you
Here is how you can find your php.ini file regardless of what operating system you are using!
First make a new php file called info.php or some other file name, and deploy it to the document folder, with the following code in it:
<?php
echo phpinfo();
?>
Then access that new php page through the web browser (if the server is working right, the URL is something like http://localhost/php.info maybe).
Then it shows a ton of info including the location of the php.info file.
For me it says "Configuration File (php.ini) Path /etc/php5/fpm" since I am using linux.
Also I think in Windows you can use a file find operation to locate your configuration file.
open up your terminal / command line and enter in the following to find your php.ini file
php -i | grep /php.ini

Upload Image issue in Magento wysiwyg editor

I got problem with upload image in Magento in wysiwyg editor.
error showing The directory is not writable by server. I've checked all rest setting but somehow everything is showing perfect. can any one solve it?
To getrid off the error message you are getting "The directory is not writable by server".
Please firist check "wysiwyg" Folder exist In the Media folder on root folder of your project
If it is not there please create it.
If it is already there please check the permission on folder, it should be 755 or if server settings not allowing give it 777 and try
Hope it will fix this.
First of all before work on magento please run magento-check php file. This file will check all required permission in your magneto setup and applied required permission also.
After that please try to upload image in "wysiwyg" editor. If you are still having this issue. Please check that "wysiwyg" folder is created or not. If it is not created, please create it and try to apply 777 permission.

there has been an error processing your request magento 1.7

There has been an error processing your request magento 1.7
Exception printing is disabled by default for security reasons.
Error log record number: 1116398732
Someone has a solution for this error? Please solve my problem
report number represent specific files in var/report folder in magento root
open var/report/ in your magento root dir,
open file called same as your report number , in this case: '1116398732'
paste contents here and we will proceed with finding out what was wrong
You can check the report by going to /var/report
Usually it occurs because of uncleared cache. Just go to /var/cache and delete all the files in cache folder. Refresh the page, it should work.
There are three simple steps to resolve this issue:
1- create tmp directory in your magento site
2- go to magento site/errors directory and update local.xml.sample to local.xml
3- go to magento site/lib/Zend/Cache/Backend/File.php and replace 'cache_dir' => null, to 'cache_dir' => 'tmp',
NOTE:tmp directory permission should be #777
Delete the generated/code directory rm -rf generated/code
Then run
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
chmo -R 0777 var/ pub/ generated/
Now try to run the site, it should be perfect now. Cheers

Pack a Zend Framework app and deploy it on Zend Server

I created a small Zend Framework application from command prompt using Zend_Tool.
I deployed it in apache server htdocs folder and it is running fine.
Now I need to deploy it to Zend Server. For that i used a command zdpack pack appname.
While trying that i am getting lot of errors like
deployment.xml is missing
I created it in the app root folder.
Then i got
appnaama/data folder is missing error
I created a data folder.
Then
zend-scripts missing
error....
Please help me in deploying an applicaiton created from zf create project projname in Zend server and run it in the browser.
You need to come out of the directory when calling zdpack pack command. If you pack the file inside the project directory you get the "deployment.xml is missing" error.
Pass the following commands at the location where you are creating the
zpk file. For illustration, I will be doing it in the myapp folder of my desktop.
C:\Users\lura\Desktop\myapp> zdpack.exe create demoapp
Move into the directory using cd demoapp and list the directory. Copy your php codes into the data folder. The scripts folder and deployment.xml file can be left as it is. Next run the validate command when inside the directory.
C:\Users\lura\Desktop\myapp\demoapp> zdpack.exe validate --schema="C:\Program Files (x86)\Zend\ZendServer\share\deployment.xsd" deployment.xml
now you can move a folder back with the command cd .. and execute the following.
C:\Users\lura\Desktop\myapp>zdpack pack demoapp
That's it! The zpk file is created! A screenshot of my cmd.
This YouTube tutorial will help, if your still confused. To execute on Linux and for more info read this documentation from zend.
You are using zdpack command wrong!
Step 1: Open shell and ls or cd into the zend workspace.
Step 2: use "zdpack create <ProjectName>" command. It will create deployment.xml, data and script directories. Refresh project explorer you will see changes.
Step 3: Configure deployment.xml if needed.
Step 4: Use "zdpack pack <ProjectName>" command to create zpk file.
That's all.
I think you just pass incorrect path to the app.
Try following this scheme:
zdpack pack <path>/ProjectName
to generate required files.
Step 1: Create skeleton from the zend server zdpack command
#/usr/local/zend/bin/zdpack create <project-name>
It will create project skeleton.
Step 2: Configure deployment.xml if needed.After that check your Deployment.xml is valid.
# /usr/local/zend/bin/zdpack validate --schema="/usr/local/zend/share/deployment.xsd" deployment.xml
Step 3: Now create the zpk file for the aplication
# /usr/local/zend/bin/zdpack pack <project-name>