Questions tagged [php-7]
Use this tag when you have problems very specific to PHP7 because of for example BC breaks
491
questions
1
vote
1
answer
164
views
How to Solve 404 error on frontend?
Getting 404 error on frontend page backend Admin panel is perfectly working frontend page only through error what is the reason behind that
0
votes
1
answer
46
views
Segmentation error when getting product from repository
I have a test script which should update products:
use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';
error_reporting(E_ERROR | E_PARSE);
$bootstrap = Bootstrap::create(BP, $...
0
votes
1
answer
57
views
Magento2 admin page keeps loading during the execution of the function used in a controller
Basically. I've created a button in M2 admin. Clicking on that button runs my custom-created indexer.
The indexer is fetching all the products and sends them to a third-party service with a POST ...
0
votes
2
answers
47
views
Exception: Deprecated Functionality: Method ReflectionParameter::getClass() is deprecated in
As per the Adobe Magento 2 Official documentation.
System requirements for Magento 2.4.5 is PHP 8.1
I am getting following error.
Exception: Deprecated Functionality: Method ReflectionParameter::...
0
votes
1
answer
34
views
What are the security risks associated with a Magento 2
What are the security risks associated with a Magento 2 website, and how can you mitigate them?
2
votes
1
answer
126
views
Magento 2 community edition
What are the key differences between Magento 2 Community Edition and Magento 2 Enterprise Edition, and which one is the best fit for your business needs?
1
vote
1
answer
42
views
INSTALLATION ENCOUNTER "WHITE SCREEN OF DEATH"
Why do some Magento 2 installations encounter "white screen of death" errors, where the site appears blank with no error messages displayed?strong text
0
votes
1
answer
45
views
Class BuyRequestBuilder does not exist after upgrade 2.3.5 to 2.3.7
working on an upgrade from 2.3.5 to 2.3.7 and suddenly got this error when compiling, does anybody know how to fix this?
Looks like it had to do with me changing to "minimum-stability": ...
2
votes
2
answers
349
views
How to Calculate dates between a given rage?
I want to calculate dates between current date and given range
for example last 30 days date with the gap of 5 days
the array should be in this formate.
Formate:
2022-8-18 00:00:00
2022-8-13 00:00:...
0
votes
0
answers
18
views
Is autherize.net payment gateway secure with Magento 2.4.2?
I want to use a one time subscription extension. My Magento store version is 2.4.2 . Most of the extensions do not support Authrize.net payment gateway.
Is autherize.net payment gateway not secure ...
0
votes
1
answer
364
views
Rewrite GuzzleHttp\Client in Magento2 not working
Though it is very basic or I suppose to have this working straight but after spending hours am looking for community experts insight/support.
Have to add monitoring of all outgoing requests from ...
0
votes
1
answer
458
views
Magento 2 delete one month old files or images
The below code will delete pub/media/tmp directory and sub directory all files which is older than one month.By the help of core php function.
0
votes
1
answer
131
views
How to add add to cart with ajax to custom phtml
I have to add add to cart button on homepage. I have custom phtml in my own module. I would like this button to work with ajax. Could someone please suggest something?
0
votes
2
answers
435
views
How to add script for checkout item default file?
how can I add script for Magento_Checkout/web/template/minicart/item/default.html file? I have to add data-bind="click: {}" to the product, but I don't know where I should place my function? ...
1
vote
2
answers
429
views
how to overwrite Magento_CatalogSearch etc/search_request.xml file?
As i want to add custom limit for my catalog page, so I need to add size in search_request.xml file. but as it in vendor folder, need to overerite it.
any help will be appreciated.
Thank you
0
votes
0
answers
22
views
Magento 1.9.4.2: upgrade Debian from 9 to 10
I own an installation of Magento 1.9.4.2 which is running on Debian 9 with PHP 7.0.
Can I upgrade Debian from 9 to 10 which it will run PHP 7.3?
0
votes
1
answer
228
views
winpty: error: cannot start xampp/php/php.exe Showing internal error: agent timed out
How to solve this Magento 2.3.6 error?
I have installed it on the XAMPP server
winpty: error: cannot start 'D:/xampp/php/php.exe bin/magento
indexer:reindex': internal error: agent timed out
0
votes
1
answer
794
views
How to get product collection by Widget's Encoded Conditions in Magento 2.3.5
I have a widget with conditions_encoded (including Multiple Category Ids, Multiple SKUs) in one section of the admin panel.
The requirement is to show the product list with custom pagination, custom ...
0
votes
0
answers
34
views
Magento 2 : How to programatically apply a condition on a coupon for specific product?
I want to apply a condition on a brand Product if the condition is true the coupon should not be applied.
Please Revert Asap!
THANK YOU!
0
votes
0
answers
796
views
The requested URL was rejected while trying to save the address book using special characters
Steps to Reproduce:
Go to the storefront
Log in as a customer
Go to My Account
Now go to Address Book and click on add new address button
Fill the address form ( add special characters in mandatory ...
0
votes
3
answers
1k
views
adding new column in admin/sales/order/ view page
I tried this code but it is giving a column at the end of the table, I want this column at the starting of the table (product image)
file : app\code\Product\image\view\adminhtml\layout\...
0
votes
1
answer
156
views
add firstname and lastname in newsletter grid in magento 2.3.x
I want to add firstname and lastname in newsletter grid in Magento 2.3.x.
first_name and last_name in newsletter form in frontend.
adding columns to databse table "newsletter_subscribers".
...
0
votes
2
answers
55
views
Which Magento Version is Suitable Based on Size of Business and Performance
I have used the Magento versions 1.7-1.9 in the past, and now I've got back into starting a new e-commerce business again. I like Magento the best because the code layout is really smooth for SEO, and ...
0
votes
5
answers
2k
views
Magento 2.4.3 Installation Error
I am try to install Magento 2.4.3 with the command in Ubuntu.
After follow all the steps, when I try to run the Magento from browser, it show me error like this :
Composer detected issues in your ...
1
vote
1
answer
2k
views
How to increase max upload image size to 16M in Magento 2?
I modify the field values upload_max_filesize = 20M ,post_max_size = 20M and memory_limit = 2048Min the PHP.ini file of the server.
I have to upload the banner images up to 16MB on the website but it ...
0
votes
2
answers
290
views
magento installation 2.4.2 404 whoops my bad
php bin/magento setup:install --base-url="http://localhost:8054/magento241/" --db-host="localhost" --db-name="magento" --db-user="root" --db-password="&...
0
votes
2
answers
276
views
404 Error after success installing magento 2.4.2-sp1 using Windows 10 + composer --XAMP
**My current Environment is**
>Server version: Apache/2.4.48 (Win64)
>Apache Lounge VS16 Server built: May 18 2021 10:45:56
PHP 7.4.20RC1 (cli) (built: May 19 2021 17:12:38) ( ZTS Visual C++ 2017 ...
0
votes
1
answer
30
views
Magento 2: Any Quick Option how to Make Magento 2.2.x Website compatible with PHP 7.3 without Magento Version Upgrade?
i want to make my magento 2.2.X website compitable with php version 7.3 without upgrading the magento version of my site.
Please help!
0
votes
1
answer
127
views
entity_type_code_entity table is empty in magento2
I am trying to insert data into the EAV tables, but my main entity table isn't saving any data but the value tables data is inserted.
My Entity Type code is vinay_employee, my table ...
0
votes
0
answers
3k
views
Parse error Unexpected token "match" while accessing magento
I am trying to install magento on MAMP server. I have downloaded magento zip file and extracted it to htdocs directory.
Installation is successful. However accessing magento throws parse exception
...
0
votes
1
answer
302
views
Magento 2 load multiselect attribute values in product list
I am trying to load multiple values of Color attribute in product list phtml file with this code:
<?php echo __('Color: ') . $_product->getAttributeText('color'); ?>
But I get array error:
...
2
votes
2
answers
4k
views
Magento 2.4.2 composer install PHP extension errors
I am trying to set up a local Magento 2.4.2 instance just to experiment and develop some work, but I keep hitting a problem with PHP extensions when I run composer create-project --repository-url=...
0
votes
0
answers
92
views
Customization of quick search
My Magento version is 2.3 community, What I want to know is how can i detect a full text search not a combined one, Example - when I search the word Apollo plus I want it to show results only for ...
1
vote
2
answers
289
views
How to add an input field with a date to the checkout page?
I'm studying Magento2, downloaded the module https://github.com/ecomteck/module-delivery-date and added it to the app / code / vendor / module-delivery-date folder
I cannot understand in which files ...
1
vote
3
answers
4k
views
Magento2 configure PHPstorm & xdebug and how to use it
I was using sublime and VScode for the development. Recently I heard that PHPStorm is the best IDE for the Magento2 development and using xdebug you can easily debug the issues and write modules. I ...
1
vote
3
answers
606
views
Global Payments Realex 511 Redirect Issue Magento 2.2.2 HPP
I am using this module for Global Payments / Realex Payments for Magento 2.2.2 store form Magento Marketplace
"name" : "realexpayments/hpp",
"description" : "A ...
2
votes
1
answer
456
views
Adding a BCC and CC (sales person) to the welcome email Magento 2
I've edited this function below and i'm overriding this method in app/code/FF/Customer/Model/EmailNotification.php
natively this file exists in vendor/magento/module-customer/Model/EmailNotification....
0
votes
1
answer
171
views
Exception #0 (ReflectionException): Class Droppa\DroppaShipping\Model\Carrier\DroppaShipping does not exist
I am new on the Magento 2 eCommerce platform and I have created my own shipping model. On the Admin configuration sales page, all the contents appears just fine, the problem is the Front side view, I ...
0
votes
1
answer
55
views
display configurable product name underneath the price?
is there a way to display configurable product name underneath the price or anywhere?
1
vote
0
answers
806
views
Magento 2.4.1 Disabling MSI Modules (responsible for inventory) after Upgrade to 2.4.1
We have a Magentoshop (2.4.1) running with elastic-search. Because there is no need of any inventory-tracking, I disabled all the modules according to the following suggestions:
https://devdocs....
0
votes
1
answer
54
views
Magento Import products Internal Server Error
I just clicked on Check data for imported file I have inserted
It keeps on loading there is in infinite Please wait
and sometimes shows
500
Internal Server Error
The server encountered an internal ...
1
vote
0
answers
94
views
Magento 1 configuration in .htaccess is not working
In magento
i have added the below configuration in .htaccess file
php_value session.cookie_secure 1
php_value session.cookie_httponly 1
<IfModule mod_php5.c>
php_value session.cookie_httponly ...
6
votes
3
answers
10k
views
Magento 2.4 - Composer php 7.4 error magento/magento2-functional-testing-framework
We run Magento 2.4 with php7.4, that should be supported. But we get the following error when we try to update a module using composer:
magento/magento2-functional-testing-framework 2.6.5 requires php ...
0
votes
2
answers
343
views
Magento 2 rating add custom filter add in product page review tab
i need a filter review by name or date and by sort in magento 2.3
product review tab , so customer can easily search best review how can implement this functionality?
0
votes
1
answer
197
views
How to check if the weight of the product is more than 20 kg
I have a simple shipping method implemented by this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/
I added the Max Weight field
<field id="max_weight" ...
0
votes
1
answer
51
views
Magento 2 Composer install error
The following are causeing PHP version error
plz suggest solution
0
votes
2
answers
168
views
Help make a condition involving an array
I have data from the server: $this->getConfigData('groups') = "1,5,9,10"
I need to make a condition, if one of these id matches the id from the custom group of the current user, then ...
0
votes
0
answers
112
views
V1/customers/me rest endpoint returning same response for each request
I am working on magento2.2.6, Rest api endpoing V1/customers/me returning a single response for each token.
I have generated tokens for different users, but it always return the same response, even ...
0
votes
1
answer
80
views
.pdf opening 403 Forbidden issue in Magento 2.3
I have an issue in opening .pdf file
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the ...
0
votes
2
answers
645
views
Magento 2.3.5p2 - Invalid security or form key. Please refresh the page after installing banner slider
I downloaded BannerSlider from GitHub and pasted the files into the app> code> Magestore. in the admin panel, it showing the manage options but when I click it says
Invalid security or form key....