Questions tagged [command-line]
Denotes questions related to command line.
151
questions
1
vote
0answers
16 views
Magento2.3.2: Undefined Index when run magento commands
I just tried to run the magento commands.
I just noticed that the following error.
Notice: Undefined index: SCRIPT_FILENAME in /home/admin/public_html/setup/config/states.install.config.php on line ...
1
vote
1answer
35 views
Magento 2.3.3 Incompatible argument type
Interception cache generation... 6/7 [========================>---] 85% 50 secs 351.0 MiBErrors during compilation:
Vendor\Module\Model\ResourceModel\Brand\Collection
Incompatible ...
1
vote
1answer
36 views
How to Disable Inventory Management In Magento 2.x
It may be necessary to disable Inventory Management modules to:
Speed up the upgrade process for merchants migrating from 2.0.x, 2.1.x, or 2.2.x to 2.3.x.
Use custom or third party inventory and ...
1
vote
1answer
30 views
How to use config:sensitive:set command in Magento 2 CLI?
I notice there are two commands, config:set to Change system configuration and config:sensitive:set to Set sensitive configuration values.
I learned Sensitive configuration values hold restricted or ...
0
votes
1answer
29 views
No command works in Magento 2.x
I used sudo php bin/magento setup:upgrade command but get
[InvalidArgumentException]
There are no commands defined in the "deploy:mode" namespace.
after ...
0
votes
1answer
45 views
Magento 2 Maintenance Mode IP filtering not working
I hope you can help me with this issue.
I already enabled the maintenance mode and set up the IP filter, but it's not working. Although I configured to access the site with my IP I'm unable to see ...
0
votes
0answers
40 views
Error While Upgrading Magento 2.2.9 to Magento 2.3.3
I am getting an error while upgrading the Magento 2.3.3. I already update the composer file, but I keep getting this error. I am running PHP 7.1, 2GB RAM and all the required PHP extension are ...
0
votes
2answers
37 views
Error while sudo php bin/magento setup:upgrade
Replace App And Pub Folder of Theme In Magento2.
After that Run Following Command : **sudo php bin/magento setup:upgrade**
Show Following error :
> PHP Fatal error: Cannot redeclare __() (...
0
votes
1answer
52 views
Error when execute sudo php bin/magento setup:upgrade
PHP Warning: require(/var/www/html/magento2/bin/../app/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/magento2/bin/magento on line 14
PHP Fatal error: require(): ...
0
votes
1answer
83 views
cron:remove and cron:install command is not working. Magento 2
I'm trying to remove cron but it is not working and as well on install as well it is not working but in case of cron:run it works while I run the above two commands it give me an error C:\xamppp\...
0
votes
0answers
32 views
Magento 2.2.8 Error After Update
have in local a Clone of my site online, have update with composer from 2.2.8 to 2.3.2, have reproduced all steps from Magento 2 Guide
https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade....
0
votes
0answers
32 views
Magento Command Run Using .bat file
How to Use Magento 2 CMD Command using the .bat file
I am Wrtting this Commands but still it is not working
D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\bin\magento cron:run
D:\xampp7.2\php\php....
2
votes
3answers
79 views
How Uninstall Theme Using command line in Magento 2
How to uninstall or remove a theme using the command line In Magento 2.
Thank You...
0
votes
2answers
68 views
Magento 2 - How to truncate table using SSH?
I want to truncate database tables using command line.
Any directions will be highly appreciated.
0
votes
2answers
47 views
SQL error when run command line upgrade Magento 2
When I run the following commmand:
php bin/magento s:up;
It throws the following error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'admin_magen34.mg7a_sm_products_filter' doesn't ...
0
votes
1answer
211 views
all magento2 command error
Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Cache\FrontendInterface in /home/chicpla1/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:...
3
votes
0answers
254 views
Facing issue when running the command php bin/magento setup:upgrade
Facing issue when running the command php bin/magento setup:upgrade
The XML in file "D:/wamp64/www/porto/vendor/magento/module-inventory-catalog/etc/communication.xml" is invalid:
Element 'topic', ...
0
votes
1answer
2k views
Installation failed, reverting ./composer.json to its original content Magento 2
when i try to run require extention-name it gives me following error, i tried many possibilities but it not worked. any advice highly appriciated
i'm using cpanel, centOS 6. and trying to install ...
0
votes
1answer
668 views
To enable extensions, verify that they are enabled in your .ini files
Any Help
To enable extensions, verify that they are enabled in your .ini files:
- /opt/cpanel/ea-php72/root/etc/php.ini
- /opt/cpanel/ea-php72/root/etc/php.d/20-bcmath.ini
- /opt/...
0
votes
1answer
87 views
Magento 2 Enable maintenance mode except my ip
I want to enable maintenance mode except my ip and I have run below command in CLI tool
php bin/magento maintenance:enable --ip= 180.233.1--.1-- (this is my ip)
this enables the maintenance mode ...
0
votes
1answer
28 views
How to stop run command line after changed in Magento 2?
Can anyone help me how to change the content in Magento without using the command line like
php bin/magento cache:clean
or
php bin/magento cache:flush
I always have to run this command after any ...
0
votes
3answers
35 views
Is there any alternative for commands in Magento?
We are all known that there are commands we need to run at some instances in Magento.Is there any possibilities to make things work without running commands?
For example, we can flush the cacheeven ...
1
vote
1answer
34 views
Is it possible to run commands for the Magento in xampp from another device?
My colleague installed Magento in xampp on his system and I can browse the site frontend and backend on my system using his system IP.
Is it possible to develop and run commands in my system though ...
0
votes
1answer
47 views
Is it possible Magento 2 site work without ssh/command prompt? [closed]
I am installed Magento 231 site. After that, I want to installed Magento extension and theme but I have no ssh or command prompt?
Someone help me how can I achieve this.
Thanks in advance.
0
votes
2answers
53 views
Custom Console command creation error in Magento 2
I am creating console command to input values into the database, there is some argument missing an error. I have gone through several tutorials but to me, the code looks fine. The error is:
Not ...
0
votes
0answers
46 views
Magento2: setup:di:compile issue
Got the error below when I run the setup:di:compile command
[Magento\Framework\Exception\LocalizedException]
Source class "\Magento\Framework\EntityManager\OperationInterface" for
"Magento\...
1
vote
2answers
147 views
Magento 2 - Area code not set when running script via command line CLI
I have created module for exporting my product data to script outside of Magento2.
This is my Data.php
<?php
namespace Oktarin\Nabavanet\Helper;
class Data extends \Magento\Framework\App\Helper\...
0
votes
1answer
56 views
SSH “Could not open input file: bin/magento” in Magento2
I try to install: https://www.magesolution.com/front-end-cms-page-builder.html
in Magesolution document told run ssh command:
unzip -o Extension_Package_Name.zip
but the problem is when run unzip -...
3
votes
0answers
34 views
Fatal Error in Magento Command Line
Trying to do a module check from the command line gets me a Fatal Error.
I'm using XAMPP to run Magento 2.3
0
votes
0answers
127 views
How to fix “There are no commands define in the namespace” error?
I have upgraded the Magento version from 2.2.6 to 2.3.0 via composer. I have tried running the command php bin/magento setup:upgrade but it says the below error
There are no commands defined in the ...
2
votes
2answers
103 views
My live site page has unaligned
It's urgent my live site website has unaligned after running;
"sudo bin/magento-cli setup:static-content:deploy" command.
All page alignment has changed.
Please help to fix this solution.
Please ...
0
votes
1answer
32 views
Magento 1 : Get product collection using command line throwing error
I have a script file like getproducts.php & have placed it under script/getproducts.php. I want to get products collection in my script file.
code in my file:
<?php
require_once('../app/Mage....
1
vote
0answers
56 views
Plesk Hosting Magento 2 commands not working
I'm Using Plesk Hosting Magento 2 installed but i can't use commands any kind of command not working.
i'have tried many different commands all gives error
some can advice will be highly appreciated.
0
votes
0answers
17 views
How to create symlinks to all source files after changing git branch?
I am working in git workflow. I want to know how I can create symlinks to source files after changing git branch?
Let's say I have three root source files in my theme that are located as below.
app\...
1
vote
0answers
44 views
How to change admin secure value and generate integration keys for api?
I've developed a script which sets up my magento installations from scratch to production mode with ssl etc.
I have on tiny problem and that is, I am not sure which command to use in order to change ...
0
votes
4answers
59 views
Magento 2 indexer:reindex Command Not Working
when i run command
php bin/magento indexer:reindex
it don't reindex all indexers.
but when i run
php -dmemory_limit=6G bin/magento indexer:reindex
the the following error
Please advice your ...
2
votes
2answers
111 views
Magento Commands Not working
Any one can help will be highly appriciated, i'm running magento 2.2.6
Deprecated Functionality: The each() function is deprecated. This
message will be suppressed on further calls in
/home/...
1
vote
2answers
71 views
Magic Method unsItemName()
I'm trying to use an unset magic method to delete a row from the table.
Following is the line of code from execute method of my CLI command.
$item->unsEquipmentName($input->getArgument(self::...
1
vote
1answer
28 views
Magento 2, plugin for MaintenanceEnableCommand does not get executed
Considering below in etc/di.xml:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type ...
0
votes
1answer
114 views
How to walk through a collection with pagination
I working on a command line which is fetching all the products in the database, using the Magento\Catalog\Model\ResourceModel\Product\CollectionFactory object.
In order to avoid memory problems, I'm ...
0
votes
2answers
416 views
Magento 2 - bin/magento Commands not working in Cpanel Terminal
I have an issue while try to run commands bin/magento in terminal. Commands not working. No command run after bin directory. You can see the below screenshot about the error.
Basically yesterday I ...
1
vote
1answer
419 views
How the catalog:product:attributes:clean works?
I have used the below command in Magento CLI,
php bin/magento catalog:product:attributes:clean
I read the description for this command in forums and stack overflow, they only say Removes unused ...
1
vote
1answer
269 views
Create admin user in magento 2 using commmand line [closed]
create admin user using command line...
php bin/magento admin:user:create --admin-user='username' --admin-password='password' --admin-email='admin@admin.com' --admin-firstname='Admin' --admin-...
6
votes
2answers
906 views
Commands are not working even when I tried to give permissions
I am trying to run commands through ssh, but commands are not working. Please check the screenshot.
2
votes
1answer
292 views
“Area code not set” error. Still getting this error after a lot of search?
First of all, I have to tell you that I have spent a lot of time researching and I have done all the solutions I have came across but I'm still getting this error when I run setup:di:compile
The full ...
3
votes
2answers
67 views
All necessary commands for Using Magento 2 - For beginner
ALL Basic Commands
I am new in Magento 2 but require I necessary commands including bash commands and git command to working with Linux based system ,
5
votes
1answer
155 views
Problem with CLI
Hello i have an error of every command i press in CLI.
Following this Error
Deprecated Functionality: The each() function is deprecated. This
message will be suppressed on further calls in
/var/...
3
votes
2answers
145 views
Magento 2: Implementing module with cli
I'm trying to implement a banner slider without Commands
I have already pasted the folder into public_html/app/code/
And I created a PHP file in public_html and tried to run it but nothing happens
...
0
votes
1answer
33 views
Magento 2 - Module Instalation without CLI
Hey guys I have created a php file in the public_html folder and writed the following code:
<?php system('php bin\magento module:enable Wisedat_PDFInvoiceFile');
system('php bin/magento setup:...
1
vote
1answer
259 views
Magento 2.2.5 shell script PHP Memory size of 2097152 bytes exhausted (tried to allocate 32768 bytes)
I have a magento 2 script which runs through shell so to not have a timeout issue. It uses php multi curl request and it was running fine. But recently asked our hosting server to increase the PHP cli ...