Questions tagged [php]
This tag is used for questions that involve PHP code in any way. So as soon there is a PHP Exception returned or error report generated, this question qualifies to be tagged with PHP.
3,858 questions
0
votes
0
answers
37
views
Magento 2 displays configurable products on the PLP page whose SKUs correspond to the custom varchar attribute value of simple products
Magento 2: We want to retrieve only the configurable products whose SKU value matches the simple products' custom varchar value and whose quantity is more than 0 on the PLP page.
Because of the ...
0
votes
1
answer
50
views
Magento 2.4.6: ValueError DOMDocument::loadXML() Argument #1 ($source) must not be empty when rendering notification_area UI component
I'm encountering a critical error in my Magento 2.4.6-p13 installation when the admin panel tries to render the notification area. The error appears in the exception logs but doesn't always break the ...
0
votes
1
answer
148
views
How to fix Magento 2 admin page loading very slow even after enabling production mode?
I am using Magento 2 and my admin panel is loading very slowly, even after switching the store to production mode.
Here is what I have already done:
Set mode to production
php bin/magento deploy:...
0
votes
1
answer
113
views
XML Error: "Element 'publisher', attribute 'queue': The attribute 'queue' is not allowed. " in Module magento/module-negotiable-quote
I started to have this error when logging into the Magento storefront (url= /customer/account/loginPost/referer/):
1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): ...
0
votes
1
answer
72
views
Magento 2.4.7-p1 exposes server information in HTTP response headers even in production mode — how to disable this?
I’m running a Magento 2.4.7-p1 store in production mode on an Ubuntu + Apache setup (hosted via Cloudways).
During a recent security audit, a vulnerability was flagged under “Improper Error Handling / ...
0
votes
0
answers
33
views
2.4.7-p7 Uncaught TypeError: locations.each is not a function
Is there available patch on 2.4.7-p7 version?
Here is the issue:
Here is the possible core code:
vendor/paypal/module-braintree-core/view/adminhtml/web/js/system.js
Tried to apply this solution but ...
0
votes
0
answers
21
views
Infinite Loader When Using “Login as Customer via admin panel” for Multiple Sessions the same browser
We’re encountering an issue with the “Login as Customer via admin panel”.
Scenario:
Customer A log in via the backend admin panel then perform add to cart.
Without logging out on customer A, Customer ...
0
votes
1
answer
221
views
Magento 2 : Admin page just refreshes and doesn't login
I use magento 2.4.8 with php version 8.3. When I try login to admin page it just refreshes the page and doesn't login. It shows no error msg and also nothing on console. Just the page refreshes. I ...
0
votes
0
answers
43
views
Magento2 css / js not loding in MacOs With Nginx
Installed Magento2.x in MacOs with Nginx. Setup everything is completed. When I run the website in the frontend, css/ js not loading showing 404.
Actually css/js present in the location but showing ...
0
votes
0
answers
41
views
m2e automatic invoice upload and xtento
I want to turn on automatic invoice uploading on amazon . I am using m2e pro extension and it has that option but it still uploads basic magento invoice instead of my custom one which is created with ...
0
votes
0
answers
55
views
Magento2 backend kicks out admin user
when I open console in magento2 admin it kicks me out and then I have formkey issue on same user.
0
votes
1
answer
56
views
Magento 2 - Category Layered navigation - Hide OR show selective category filters from the list of all subcategory filters
In magento layered navigation. There is a filter by category in category listing page. How can we show the selective filters up there?
I mean if there are:
Category 1
Category 2
Category 3
And i ...
0
votes
1
answer
110
views
HTML & W3C Validation errors - Unable to fetch the errors from Markup Validation Service
I've been assigned the task of fixing the HTML and W3C validation errors. Of course, before I can fix them, I need to verify the errors first.
So I navigate to the URL:
https://validator.w3.org/#...
0
votes
1
answer
167
views
Magento 2 UI-Select: "Entity with ID ... doesn't exist" After Searching Again
I am using a ui-select field in my Magento 2 admin form. The dropdown fetches data via AJAX on search and correctly displays options. However, I'm facing an issue:
First search: Options load ...
0
votes
1
answer
77
views
Magento 2 | Adding values to the multiple select attribute of the product
I have created a product attribute in Magento2 which is of type multiple select.
Right now it is empty for all products and has no options created.
With my php code I am trying to add a random value ...