Skip to main content

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
0 answers
35 views

When xdebug is enabled bin/magento commands won't work

I'm using Mark Shuts docker version, If xdebug is enabled, bin/magento commands won't work, and let's say if i run bin/magento cache:clean PhpStorm starts to debug out of nothing. Also I get this ...
elunicotomas's user avatar
1 vote
1 answer
33 views

How to write integration test for below condition?

I am trying to write integration Test for my custom module that have very basic functionality to block the frontend page. 1 . created one controller to submit the password and on that basis we return ...
Yogendra - eCommerce Developer's user avatar
0 votes
1 answer
204 views

Add magento 2 module in ubuntu error

Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 117.0 MiBsyntax error, unexpected token "&", expecting "function" or "const"#0 /...
Noor Mohamed's user avatar
2 votes
1 answer
36 views

Template hints showing path from cache instead of original file path

In Vanilla magento2, the file path showing original file path as you can see in below screenshot the file path is showing from vendor after doc root. In one of my working project where cache path is ...
Rajkumar Vellaiswamy's user avatar
0 votes
1 answer
428 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
M2 Dev's user avatar
  • 548
0 votes
1 answer
96 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. ...
Justin Collins's user avatar
1 vote
1 answer
243 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&...
Akif's user avatar
  • 1,551
3 votes
1 answer
1k 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 ...
Adarsh M's user avatar
  • 594
1 vote
1 answer
2k 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 ...
Shekhar Suman's user avatar
0 votes
1 answer
113 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/...
Moshe Shperling's user avatar
5 votes
1 answer
909 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 ...
Pasquale's user avatar
  • 218
0 votes
1 answer
44 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 ...
Yuri Borges's user avatar
1 vote
1 answer
895 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 ...
Jonas de Herdt's user avatar
3 votes
2 answers
3k 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 ...
Tjitse's user avatar
  • 1,310
1 vote
1 answer
577 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 ...
Oscprofessionals's user avatar
3 votes
0 answers
58 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 ...
Anthony's user avatar
  • 431
2 votes
1 answer
430 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. ...
TheKitMurkit's user avatar
3 votes
1 answer
3k 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 ...
Theodor_D.'s user avatar
4 votes
5 answers
3k 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 ...
PhantomS's user avatar
  • 503
2 votes
1 answer
837 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 ...
szabkel's user avatar
  • 143
2 votes
1 answer
740 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: ...
Marie Schreiber's user avatar
3 votes
1 answer
558 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 ...
fantasticrice's user avatar
2 votes
0 answers
62 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
prabhakaran7's user avatar
  • 1,097
2 votes
1 answer
66 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 ...
Scruffy Paws's user avatar
3 votes
1 answer
319 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.
fudu's user avatar
  • 1,288
3 votes
2 answers
1k 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?
aregowe's user avatar
  • 163
2 votes
2 answers
802 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 ...
Key Shang's user avatar
  • 3,425
1 vote
0 answers
68 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 ...
Vick's user avatar
  • 163
12 votes
4 answers
9k 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?
user2366074's user avatar
2 votes
0 answers
862 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 ...
Hoàng Nguyễn's 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 ...
circlesix's user avatar
  • 4,313
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 ...
TanguyB's user avatar
  • 213
1 vote
1 answer
697 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 ...
D.R.'s user avatar
  • 315
0 votes
1 answer
156 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 ...
zhartaunik's user avatar
  • 3,846
1 vote
1 answer
127 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 ...
TanguyB's 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 ...
Daniel Ifrim's user avatar
  • 3,404
1 vote
1 answer
2k 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 ...
Mike Levy's user avatar
  • 795
4 votes
2 answers
502 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. ...
MauroNigrele's user avatar
  • 3,005
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 ...
Akif's user avatar
  • 1,551
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 ...
Alex's user avatar
  • 13.9k
4 votes
2 answers
240 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 ...
Alex Chastain's 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 ...
Mohamed Osman's user avatar
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 ...
Luis Valencia's user avatar
6 votes
3 answers
5k 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 ...
Niloct's user avatar
  • 812
0 votes
1 answer
768 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: ...
Magento Nav's 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/...
Magento Nav's 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 ...
Magento Nav's 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\...
Manoj Kumar's user avatar
  • 1,348
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 ...
Manoj Kumar's user avatar
  • 1,348
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 ...
Manoj Kumar's user avatar
  • 1,348