Questions tagged [code-generation]
The code-generation tag has no summary.
60 questions
0 votes
0 answers
18 views
Get a specific value from Magento Admin Panel from a certain Attribute ID
I need a value from Magento2 Admin Panel identified by the Attribute ID (267) for this Admin Panel Attribute in PHP Magento Code. For manipulating an expression. This is experimental so dont mind ...
0 votes
1 answer
576 views
how to locate source code of page in admin panel
how can i locate any exact source code page to change content . for example how can i locate Customers --> All Customers --> then select one customer then press edit --> how can i found this ...
0 votes
1 answer
210 views
Use of external library with interfaces - Error: Cannot declare interface, because the name is already in use
I try to use an external library in my Magento2 module. The library is the Amazon MWS-PHP Library. I included the library via composer.json in PSR-0 Format since classnames are in PSR-0 standard (like ...
2 votes
1 answer
219 views
Generating other classes beside the core ones
As described in https://devdocs.magento.com/guides/v2.3/extension-dev-guide/code-generation.html some classes are autogenerated on request (or at di:compile) based on some rules. For example if a ...
1 vote
2 answers
170 views
Unable to run commans in magento 2
I have tried to disable Magento_CatalogSearch in config.php. After edited config.php, While trying to run commands throws the following error. "Source class "\Magento\CatalogSearch\Model\...
0 votes
2 answers
400 views
During setup:di:compile getting error:- Source class "\PHPExcel_IO" for "PHPExcel_IOFactory" generation does not exist
When i'm running "setup:di:compile" or setting mode to "production" from "default" then getting following error:- Please help me to resolve this problem immediately. ------Update@Start---------------...
6 votes
1 answer
1k views
Scaling Magento 2 on multiple containers in production with generated code
I'm working on some auto-scaling Kubernetes infrastructure to run Magento 2, and I noticed that when I start new containers, I can't have the generated/ directory automatically compiled as part of the ...
0 votes
1 answer
942 views
Debugging "Invalid return type" in generated code?
Is there a way to track down this error report? stdClass Object ( [0] => Invalid return type [1] => #0 /home/maxxcou1/public_html/mag2/generated/code/Magento/Framework/App/Http/...