Questions tagged [bin-magento]

Denotes question regarding Magento command-line interface (bin/magento)

5
votes
0answers
81 views

php bin/magento app:config:dump gives me [Magento\Framework\Exception\ValidatorException] Path “app/etc” cannot be used with “app/etc”

I'm trying to change some settings, and this answer has already been very helpful. But now php bin/magento app:config:dump gives me [Magento\Framework\Exception\ValidatorException] Path "/var/...
1
vote
1answer
62 views

The value you set has already been locked. To change the value, use the --lock-env option

I'm trying to do php -f bin/magento config:set dev/js/enable_js_bundling 1 But I get: The value you set has already been locked. To change the value, use the --lock-env option. What does this ...
0
votes
1answer
313 views

Calling bin/magento return an exception

I have a Magento 2.3.0 website that works correctly but suddenly (maybe after a products import, but also other various activities were done) when I try to call ANY (reindex, deploy...) command of "...
0
votes
1answer
554 views

Magento 2.3 - php 7.2.10 - Reindex error - bin/magento is not opening -

MacOS High Sierra MAMP php webserver - 7.2.10 /Applications/MAMP/bin/php/php7.2.10/bin//php- 7.2.10 -- usr/bin/php - 7.1.16 Nittns-MacBook-Air:~ baanallc$ cd /applications/MAMP/htdocs/23/ Nittns-...
1
vote
1answer
326 views

remove 'pub/' folder for URLs from command line

For increased security, we configured the DocumentRoot for our Magento application to be in the pub/ directory of the Magento installation, as described in the official documentation. However, there ...
0
votes
0answers
160 views

Magento 2: InvalidArgumentException There are no commands defined in the “cache” namespace

I have facing issue while run command. I can't use any bin/cli commands in magento 2. I keep getting below generic error messages. Error: InvalidArgumentException There are no commands defined in ...
0
votes
0answers
194 views

Autoload error: We can't read some files that are required to run the Magento application. This usually means file permissions are set incorrectly

I can't run anything from bin... Such an obscure error.. I don't have too much more to reference. Anybody have any ideas on this one? My permissions are set to 777 atm so that shouldn't be the ...
1
vote
3answers
223 views

Magento 2 why always need to run static content deploy every after upgrade?

I'm using Magento 2.2.6 version, I already set to developer mode, but when I ran setup:upgrade, and when I open my Magento project the css and js not loaded. But after I ran setup:static-content:...
1
vote
1answer
142 views

Magento 2 bin folder missing can't run any cli commands

I am working on a client's shop, and the bin folder is missing, how can that be possible? Can I recreate it with the files inside? Its a noob question but I never faced this issue... -rw-r--r-- 1 ...
0
votes
1answer
347 views

SSH Command Line Error on fresh install of Magento 2.2.5 on Bitnami

I have tried numerous installations of magento on Bitnami and I keep getting the below error when trying to upgrade using 'sudo php /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:upgrade': ...
1
vote
1answer
42 views

Magento 2 : var/Generation Magento Tutorial

Can you Suggest any tutorial for var/generation and Patterns in Magento 2. Please Provide video Related materials. Thanks
1
vote
1answer
116 views

Magento 2 : How to create our own bin script [duplicate]

I am trying to create my own script to be placed in my extension /bin folder so that once I finished it, it should work in this way bin/mycommandname my-customcommand instead of running the ...
0
votes
0answers
60 views

Upgrading to 2.2.3 /bin is then empty

I want to upgrade from 2.2.2 to 2.2.3 and I ran the following commands composer require magento/product-community-edition 2.2.3 --no-update composer update Then when I try to do php bin/magento ...
1
vote
1answer
220 views

Magento2 : Theme scripts symlinks not created in developer mode

I'm struggling with an issue for hours now and I really don't get it. I'm using Magento 2.2.1 in developer mode and my scripts symlinks are not created. Here is my project structure --app/ ----...
2
votes
2answers
2k views

Magento 2 run php bin/magento without command line [duplicate]

I have Magento 2 store and I need to run php bin/magento setup:upgrade. But the problem is that client has just a basic webhosting, so there is no command line. Is it possible to create php file that ...
0
votes
0answers
29 views

Magento just loading frontend

Anyone who experience that your frontend website is just loading just like this? But the backend works properly. this is a Magento 2.2 platform. I am stuck on this please anyone can help me? thank ...
1
vote
0answers
60 views

Component dependency failure on 2.2 upgrade

Please view the attached image for details: When I want to install update from my Magento marketplace, it gives me the attached error.
0
votes
1answer
2k views

Static Deploy gives error

When I do the this php bin/magento setup:static-content:deploy it gives me error of [Magento\Framework\Exception\LocalizedException] NOTE: Manual static content deployment is not required in "...
10
votes
3answers
22k views

Magento2 - setup:di:compile

I have been working in a project with some custom code... this is our first "medium" Magento 2 project, so (as all people here I think) every day we learn new things, and we have to change the way to ...
4
votes
4answers
1k views

Magento 2: Installing with Redis by Default

Magento 2's CLI has a setup:install command that will let you generate an initial configuration php bin/magento setup:install --admin-email astorm@example.com --admin-firstname Alan --admin-lastname ...
2
votes
3answers
2k views

/bin/magento file cannot be opened (Magento 2.1)

I am trying to find my way to reindex the system using cli (in cms graphical interface on save and schedule corn jobs did not work). Diverse commands were tried: - php /bin/magento indexer:reindex [...
0
votes
2answers
429 views

Can't deploy Magento2 theme locally on MAMP

I am supposed to rework a front end design of an existing Magento2 website, I already have a local installation of Magento2 on MAMP with composer. I used my project's git repo so all the files in app/...
1
vote
2answers
2k views

Magento 2.1.2 - PHP Parse Error in Bootstrap.php when trying to execute bin/magento commands

Can't seem to find a fix for this issue. I'm running Magento 2.1.2 with PHP 7.0.16, however there are different versions of PHP installed on different websites on the same VPS. When trying to execute ...
3
votes
2answers
3k views

Error when running bin/magento setup:upgrade after creating Module on Magento 2

I'm trying to create a module on a local installation of Magento 2.1.4. i'm getting this error when running bin/magento setup:upgrade: [Zend_Db_Adapter_Exception] SQLSTATE[...
0
votes
2answers
990 views

Enabling a module for the first time via admin panel

I have created a very simple module. I can see it listed as disabled when I check via cli php bin/magento module:status, but when I go to admin panel Advanced -> Advanced I do not see it listed ...
0
votes
2answers
1k views

How to change /usr/bin/php to /Applications/AMPPS/php/bin/php on magento?

When I try to run "which php" from my magento root folder , this say: /usr/bin/php But, I need that this point php to: /Applications/AMPPS/php/bin/php How can I do it?
0
votes
1answer
747 views

“Zend_Json_Exeption Decoding Failed: syntax error” on module:enabled

When I try to enable my module with bin/magento module:enabled I am getting an error in console: Zend_Json_Exeption Decoding Failed: Syntax error How can I fix this? When I enabled the same ...
8
votes
2answers
21k views

When exactly to use php bin/magento setup:upgrade

There are lots of situations in which I change some files in my module in the developer mode but the changes didn't take place in frontend until I run php bin/magento setup:upgrade Just wanted to ...
2
votes
2answers
6k views

After upgrading to php 7 bin/magento CLI commands not working Magento 2.0.2 CE

I've upgraded the php version of the apache2.4 server from 5.6 to 7.0. OS version Ubuntu 14.04 LTS. After this update, despite the fact that I've installed php7.0-cli, when i try to run php7.0 bin/...
5
votes
1answer
856 views

Magento 2: Command to Clear view_preprocessed

Is there a Magento 2 bin/magento command to clear the var/view_preprocessed cache/pre-process folder without doing a full static asset refresh? The cache:clean command doesn't clear this folder.