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
1 answer
114 views

PHP Codesniffer and CS fixrer no response

I am having issue with PHP codesniffer and csfixer with PHPSTORM.it is always showing warning like below screenshot. I am using PHPSTORM 2021.3 licences version any tip to fix this issue
user avatar
  • 84
0 votes
1 answer
24 views

What function do I use to replace the depreciated escapeJs()?

I am using Magento2.4. In my phtml template, I am trying to escape an a argument that is being passed into a javascript file via requireJS, but PhpStorm is warning me that escapeJs() is depreciated. ...
user avatar
0 votes
1 answer
32 views

Is it possible for PHPStorm to follow Magento syntax module/template declaration in XML files?

Simple questions. Is it possible for PHPStorm to follow Magento syntax module/template declaration in XML files? If yes, how would I achieve that? <block class="Magento\Wishlist\Block\Rss\Link&...
user avatar
  • 1,311
2 votes
1 answer
348 views

How to enable GraphQL schema intelligence?

Magento has numerous schema. graphics files spread across its modules. It also has custom directives such as @docand@resolver`. When I'm using PhpStorm with the JS GraphQL plugin, what is the best way ...
user avatar
  • 492
1 vote
1 answer
874 views

Waiting for incoming connection with ide key 'xxxxx'

In phpstrom variable getting "Waiting for incoming connection with ide key 18836" while trying to run debug magento2 using xdebug. Xdebug is installed correctly in my Ubuntu system,checked ...
user avatar
0 votes
1 answer
68 views

Debugging Magento 2.4 on windows

Here is the setup: Magento 2.4 up and running Windows 10 & Xampp Php 7.3.25 Xdebug enabled.Below is php.ini configuration, xdebug section [XDEBUG] zend_extension = "C:/xampp/php/ext/...
user avatar
5 votes
1 answer
405 views

Unkown directive in JS GraphQL

I'm experiencing the following issue in the graphql schema declaration in Magento2. I use PhpStorm for development and, after installing the plugin JS GraphQL, it keeps prompting me errors on common ...
user avatar
  • 218
0 votes
1 answer
37 views

How to deal with API integrations and deployment when developing locally for magento?

I'm trying to set up a nice development environment for magento. Naturally, I also try to take deployment into consideration. This is why I chose to implement docker containers. My project is very ...
user avatar
1 vote
1 answer
375 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 1,228
1 vote
1 answer
437 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 ...
user avatar
3 votes
0 answers
52 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 ...
user avatar
  • 421
2 votes
1 answer
279 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. ...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
4 votes
5 answers
2k 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 ...
user avatar
  • 503
2 votes
1 answer
529 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 ...
user avatar
  • 141
2 votes
1 answer
627 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: ...
user avatar
2 votes
1 answer
349 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 ...
user avatar
2 votes
0 answers
55 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
user avatar
  • 1,047
2 votes
1 answer
61 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 ...
user avatar
3 votes
1 answer
279 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.
user avatar
  • 1,178
3 votes
2 answers
884 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?
user avatar
  • 163
2 votes
2 answers
624 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 ...
user avatar
  • 3,205
1 vote
0 answers
64 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 ...
user avatar
  • 163
11 votes
4 answers
8k 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?
user avatar
2 votes
0 answers
828 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 ...
user avatar
3 votes
2 answers
3k 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 ...
user avatar
  • 4,163
0 votes
1 answer
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 ...
user avatar
  • 213
1 vote
1 answer
608 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 ...
user avatar
  • 315
0 votes
1 answer
147 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 ...
user avatar
  • 3,788
1 vote
1 answer
120 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 ...
user avatar
  • 213
6 votes
1 answer
4k 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 ...
user avatar
  • 3,252
1 vote
1 answer
1k 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 ...
user avatar
  • 775
4 votes
2 answers
435 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. ...
user avatar
  • 2,985
5 votes
1 answer
1k 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 ...
user avatar
  • 1,311
3 votes
2 answers
2k 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 ...
user avatar
  • 14.7k
4 votes
2 answers
226 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 ...
user avatar
2 votes
2 answers
3k 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 ...
user avatar
  • 105
2 votes
1 answer
2k 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 ...
user avatar
6 votes
3 answers
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 ...
user avatar
  • 812
0 votes
1 answer
716 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: ...
user avatar
1 vote
1 answer
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/...
user avatar
0 votes
1 answer
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 ...
user avatar
-1 votes
1 answer
6k 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\...
user avatar
  • 1,338
2 votes
1 answer
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 ...
user avatar
  • 1,338
1 vote
1 answer
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 ...
user avatar
  • 1,338
1 vote
1 answer
4k 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-...
user avatar
  • 1,338
0 votes
1 answer
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. ...
user avatar
  • 1,338
1 vote
0 answers
759 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: ...
user avatar
  • 1,338
0 votes
2 answers
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"?&...
user avatar
  • 1,338