Questions tagged [phpstorm]

JetBrains PhpStorm is a commercial IDE for PHP built on JetBrains' IntelliJ IDEA. PhpStorm provides an intelligent editor for PHP, HTML, CSS and JavaScript with refactoring and on-the-fly code analysis.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Configure path mapping for Magento 2 xdebug in phpstorm

I have xdebug set up in phpstorm. However every time I load my Magento 2 app the script get.php opens 3 times in the debugger and breaks. I also get the error "The script '/pub/get.php' is ...
0
votes
0answers
16 views

how to install plain magento (docker not supported) on windows ? php storm

how to install plain Magento 235 (docker not supported) on windows 10- with xampp ? Nothing I found on the internet is working in 2020 - PHP storm env I need it in dev mode for debugging
0
votes
0answers
14 views

PHPStorm, xDebug and Remote Debugging Are Not Communicating

I am using PHPStorm 2019.3.3, xdebug 2.9.4, PHP 7.2.24 and CentOS 6.10. I have xdebug configured to allow remote connections and I was able to validate successfully, but PHPStorm never receives ...
0
votes
0answers
24 views

How to make PHPStorm complain about “_construct()” code ? Tried: @noinspection SpellCheckingInspection

I want to create a entity in Magento 2.3 and there for i need to create a function like: /** * @noinspection SpellCheckingInspection */ public function _construct(): void { $this->_init(...
1
vote
1answer
335 views

How to debug Magento 2.3 queue's consumers with Xdebug?

I'm working with a Magento 2 queue at the moment. To debug Magento 2 console scripts I normally just hit 'listen to external connections' in PHPstorm and execute the CLI script (i'm using Valet+ with ...
1
vote
1answer
85 views

Debug in Remote Server Configuration with PHP Storm unsuccessful on Breakpoints

Scenario: We have code on our local machine and are remotely handling the code and database on a Remote Server (Virtual Machine). Now we want to Debug our Code. This is how we have configured ...
3
votes
0answers
37 views

clean-docker/Magento2 and PHPStorm

Is anyone else here using cleaning docker (or similar) with PHPStorm? If so, could you please point me in the direction of a few guides to help with getting PHPStorm configured to work? Clean-docker ...
1
vote
1answer
116 views

How to get Magento 2 phpstorm namespace and code suggestions

Namespace suggestions: the code dir is marked as Sources Root but I don't get any. I just can't find any info about it. Looks like everyone in video tutorials just have it and nobody pays attention. ...
1
vote
0answers
261 views

magento dev:urn-catalog:generate command fails to detect secret file

I'm running the following command "magento dev:urn-catalog:generate .idea/misc.xml " to use the functionality of Magento 2 to automatically resolve all my URN's so PhpStorm will stop giving me ...
4
votes
3answers
1k views

Fatal error: Class 'Codeception\Platform\Extension' not found. Issue occurred after magento 2.3.0 upgrade to 2.3.1

Preconditions (*) 1.Magento 2.3.1 upgraded from Magento 2.3.0 Php 7.2.15 OS : Ubuntu 18.04 Bionic Phpstorm 2019.1.1 Evnironemnt : Magento development Steps to reproduce (*) Issue appears after ...
2
votes
1answer
327 views

How to setup permissions for Bitnami Virtual Machine and PhpStorm?

I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve ...
2
votes
1answer
170 views

Magento2 Development - System Requirements

Hi Magento2 Developers, In your experience, what are the system requirements (cpu, ram, etc...) for a fully featured development machine and what softwares are you using? "fully featured" meaning: ...
2
votes
1answer
90 views

PHPDoc hints for magic methods

I have grown accustomed to the better PHPDoc coverage of Magento 2, so now it bothers me when the magic getters and setters are highlighted in red in my PhpStorm project files. In classes that I ...
2
votes
0answers
49 views

How do i debug full project in phpstorm via xdebug - magento 2

I have setup magento localhost phpstorm project with xdebug how to i debug full project procedure
2
votes
1answer
54 views

Is there a good way to ignore comment-only changes in Magento version upgrades?

Since Magento changes the year in the comments of ever single file, does anyone have a recommended or battle-tested way to properly audit the actual changes for each version? Ideally a solution using ...
3
votes
1answer
201 views

Xdebug PhpStorm: Explain about the step into and step out

I want to understand about what is step into and step out in xdebug phpstorm, and what is the difference between them, and what should i use most in debugging with xdebug phpstorm.
3
votes
2answers
406 views

default.xml showing error “Cannot resolve symbol 'string'” in PHP Storm IDE

default.xml showing error "Cannot resolve symbol 'string'" in PHP Storm IDE, but it's not effecting anything. Is this ok? Or is there something wrong?
2
votes
2answers
434 views

Magento 2 UI component- Element argument is not allowed here

After upgrade to Magento 2, in IDE PhpStorm, the UI component file show a lot of errors , like Element argument is not allowed here, Element xxx is not allowed here etc. But, the UI component file is ...
1
vote
0answers
60 views

Store Landing Page [closed]

I have 3 stores under a website. I want to create a website Landing page that allow to choose the store website. When any user land on the website by default it should display on the Store View ...
10
votes
3answers
6k views

What are the top useful Phpstorm plugins for Magento 2 development?

What are the list of useful magento2 development tools? What are the top phpstorm useful plugins for magento2 development?
2
votes
0answers
683 views

Can not debug magento 2 use phpstorm with xdebug

When I try to debug magento2 by phpstorm and xdebug I got this error: /opt/lampp/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 ...
2
votes
2answers
2k views

Which Magento 2 directories can I exclude in PhpStorm?

I'm looking to try and speed up the indexing process in PhpStorm, so I'm looking to find out what directories can I safely ignore without compromising the code completion and hinting. The only source ...
0
votes
1answer
2k views

Magento 1.9 REST API Callback

so I just set up my M1.9 store, and want to set up a REST API. I wanted to test it out by retrieving a list of products. I only don't know what to put in the callbackurl field, online they say the ...
1
vote
1answer
503 views

If it is possible to debug PHP of the admin side in Magento2?

General question Just interesting, if it is possible to debug the admin side in Manento2. If it is, wold be glad to saw some hints. Debug process now For now I'm using PhpStorm with XDebug. If I ...
0
votes
1answer
141 views

Magicento 2.9 in PHPStorm 2016.1.2 causes an error (Ubuntu 14.04)

Magicento causes a lot of erorrs like below. Errors went one by one with the same text. java.lang.ClassNotFoundException: com.magicento.models.xml.config.AdminRoutersIdArgsModulesXmlTag ...
1
vote
1answer
112 views

How to program with the Object manager through PHPStorm Magento 2 [closed]

I'm fairly new to the programming part of Magento 2, I've been using rest calls with PHP, but I want to change method as I'm opening up a second shop. Now I would like to know if it is possible to ...
6
votes
1answer
3k views

Magento 2 - How to configure Grunt in PhpStorm

I'm trying to configure Grunt in PhpStorm. I have set for Grunt: Node interpreter: /usr/bin/node (exists) Package grunt-cli: [path to Magento 2 dir] I get the error bellow when I 'Reload tasks' in ...
1
vote
1answer
864 views

Can't trace code in PHPStorm

I'm going to start by apologizing because I'm a little fuzzy on the terminology here. I'm evaluating PHPStorm for use at work. Normally I use Eclipse because it's free and it works well most of the ...
4
votes
2answers
325 views

Magento2 + PhpStorm + LESS Variables

I'm just started playing with magento2 frontend dev tools so I'm wondering if there is some configuration we can make in order to help PhpStorm to resolve the less variables like colours, sizes etc. ...
5
votes
1answer
816 views

Magento 2: Is it possible autoload Factories into PhpStorm?

I have loaded Magento 2 files and XML validation into PHPStorm which is very convenient. Is it also possible to do this (automatically) with factory classes and maybee other generated files? Since ...
3
votes
2answers
1k views

What are the Magento2 code formating settings for PHPStorm?

When editing Magento2 .phtml files, it would be nice to use the code formating function of PhpStorm, but without changing the original layout (just format added stuff). So did anybody already set up ...
4
votes
2answers
210 views

Workflow for development using IDE and SVN

Before I ask this I realize the answer is going to be different for everyone, but I think that the majority of magento pro's will have some amount of common ground on this. What is the ideal workflow ...
2
votes
2answers
2k views

Magicento not working fine in PHPStorm IDE

I recently installed PHPStorm and Magicento plugin to develop new magento extension but it doesn't works fine for me when i press ( alt + M ) it say that Magicento is disabled, when i check it in the ...
2
votes
1answer
1k views

How to debug php code in remote server with phpstorm [closed]

I come from the .net world, where F5 on visual studio just triggers debug and hits the breakpoints easily. I dont have a local dev server, but I do have a remote dev server and I already setup the ...
6
votes
2answers
4k views

Making PHPStorm recognize magic getter

I got accustomed to using PHPStorm's validation feature, the yellow flags on right of editor showing whenever a method could not be found. I found that it doesn't recognize magic getter methods, for ...
0
votes
1answer
466 views

image is not displaying in mail

I have created the custom module, in this I have send an email with product information with product image. working fine but Image is not displaying, only url is displaying in mail. my code is: ...
1
vote
1answer
3k views

admin customer Edit form is not getting record id in magento

I am new to magento, I have created custom module front and backend(admin) module, working fine except edit. in grid bind the data correctly with id http://localhost/magento/index.php/test/...
0
votes
1answer
2k views

Default form action isn't working in magento

I am new to magento, I created the button in magento\app\design\frontend\base\default\template\catalog\product\list.phtml for sending emails for quote information. It's showing the button and When ...
-1
votes
1answer
5k views

Fatal error: Call to undefined method Mage_Checkout_QuoteController::_getSession() in Magento

I'm new to magento, and My intention is create Request for Quote like this link.So for this I have created the custom module for Request the Quote. In this I have add the Add quote buttons in \app\...
2
votes
1answer
4k views

send an email based on smtp.gmail.com from magento

I don't have any mail servers. So how to configure the mail settings(settings->configuration->advanced->system->Mail sending settings) in magento admin panel using smtp.gmail.com and ...
1
vote
1answer
1k views

how to Send an EMail with attachement in custom module

I'm new to magento I created custom module for customer quote request, In that after filling quote request we need to send an email. So that I wrote fallowing code. I add the Add Quote button in ...
1
vote
1answer
3k views

Call to a member function getProductId() on a non-object?

I have created custom module, In that I have just override the Mage_Catalog_Block_Product class to get the getPrice(). But it's returning an error Call to a member function getProductId() on a non-...
0
votes
1answer
1k views

Invalid api path?

I have created v1 & v2 API successfully and invoking the all methods to fallow the Marius & Sylvain instructions. v1 & v2 all methods are successfully running except v1: update method. ...
1
vote
0answers
756 views

my custom api returning inserted record_id but data is inserting null? [closed]

I have created the custom magento SOAP/XML-RPC API successfully to fallow the Marius and Sylvain instructions. And my php file invoking the those two methods which is create and info. my v1 code is: ...
0
votes
2answers
4k views

I can't access my custom magento API?

I am new to magento. I have created the custom Magento Api to follow the Marius instructions. my code is: app/code/local/Course/Mca/etc/api.xml - the api declaration file. <?xml version="1.0"?&...
3
votes
1answer
2k views

Set debugging phpStorm for magento application?

I'm new to Magento. I'm used to working in dot net, where you can place the debugger where you need, so that you can identify bugs and other issues. So, now I am learning Magento with phpStorm. ...