Liam Mitchell
  • Member for 3 years, 8 months
  • Last seen more than a week ago
Magento 2 Error - file cannot be removed in magentodir/var/generation/Magento/Framework while i create block and upgrade set up
6 votes

If production mode, put site into maintenance mode first. bin/magento maintenance:enable bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy bin/magento ...

View answer
Prevent Spam Account Registration
3 votes

Use cloudflare or some other firewall to block some countries if you can. China, Hong Kong, Russia. This does not stop all the spam however and does not work if you need those countries to be able to ...

View answer
SOLVED - Magento 2 - Unable to login to admin (no error message) stuck at login screen
2 votes

Clearing cookies fixed it for me thanks. http://www.editthiscookie.com/

View answer
Disable/Enable product through the Magento 2 Api with Rest
1 votes

And what are the values for status? Its not 1 enabled and 2 disabled like in the eav. (0 default to enabled?) Is it 0 is disabled 1 is enabled?

View answer
Magento2 : Theme scripts symlinks not created in developer mode
Accepted answer
1 votes

https://github.com/davidalger/capistrano-magento2/issues/98 Supposedly fixed in newer version of Magento 2.2.5+ ? I have seen the symlinks from nginx work on 2.3 but 2.2.5 symlinks not working for ...

View answer
When to truncate the core_session table?
1 votes

Why not remove session records older than some time e.g. 1 week. This way you keep recent login/sessions/carts. DELETE FROM `session` WHERE session_expires < UNIX_TIMESTAMP(DATE_SUB(NOW(), ...

View answer
Magento 2.1.2, Remove "region" from the Address
1 votes

You can hide country and region inside your plugins app/code/company/Magento_Theme/Plugin/Checkout/Block/LayoutProcessor.php This does not remove it but makes it invisible so close enough from a ...

View answer
Magento 2 cron_schedule table increasing and CPU 100%
1 votes

In my case, turns out the slow query was an update join on the cron_schedule table. Found a related site on this. Solution - You can clear it with a daily script to delete completed records. https://...

View answer
Save a custom attribute from shipping method to quote_address
1 votes

Following a tutorial it used a helper method to transport the fields from extension attributes to another object via the getters and setters. Within the Plugin e.g. Payment Information Management is ...

View answer
Magento 2.3.3 declarative schema column type json
0 votes

Note: It seems this is now supported in Magento 2.4.0. So something like this possibly: <column xsi:type="json" name="json" nullable="true" comment="Json"/&...

View answer
Frequent Css and js changes not reflecting Magento 2 in Windows environment
0 votes

In Windows (not WSL2/1) I think you must set an XML somewhere to copy not symlink at least on Magento 2.2.0 that I tried. But officially Magento 2 is not supported on windows so recommend to develop ...

View answer
Catalog Product Media Cache 44 gb
0 votes

I also have a Magento 2.2.5 store with very large product image cache, a bug which appears to be solved in newer Magento 2. Running fdupes on product cache dir finds all duplicated file content and ...

View answer
Remove Magento 2 spam customer accounts quickly in database
0 votes

A note in my case, removing the customer spam accounts did not appear to be enough. As the quote table still linked to them. When new orders/customer are made, the customers name was getting replaced ...

View answer
Error in Uploading Image using REST API in Magento 2
0 votes

Related issue, terrible log message it must say why. https://github.com/magento/magento2/issues/26053

View answer
Magento 2: Import Script Store Id Related Issue
0 votes

Known issue for some time, a fix is in the way it seems? https://github.com/magento/magento2/issues/8897

View answer
From where payment html coming in order related email?
0 votes

Have same problem with Laybuy module. Possible Solution: Make a plugin that will truncate the string or remove it entirely.. Magento_Sales/Model/Order/Email/Sender/InvoiceSender. /** * ...

View answer
Magento 2 404 error for scripts and css
0 votes

You must run Xampp (apache, nginx) etc as Administrator to allow it to make Symlinks under Windows (tested with Windows 10).

View answer
Magento 2 - $product->save is not saving/updating data
0 votes

Doing something that would cast it to a string also does this for you. E.g. trim the value. $product ->setSku(trim($exportProduct->sku)) ->setName(trim($exportProduct->name));

View answer
Magento 2 - Load knockout content in modal popup
0 votes

Yeah, this was hard to figure out. I could not find any example of this in Magento docs. I wanted to be able to bind button/click events and data to the popup, so I could call methods in my component ...

View answer
magento special price still showing after expiration, reindexed, flushed, special date & price removed, still
0 votes

SQL Query to check special price and dates in bulk. SELECT e.entity_id, e.sku,pd.store_id,pd.value AS special_price, fd.value AS special_from_date, td.value AS special_to_date FROM ...

View answer
Magento 2. What is the role of the search_query table
0 votes

Disable it, why would you want user search texts to show up in your store, they can write anything in there T_T....

View answer
How to override search request? Magento 2
0 votes

Assuming you are using MySQL search provider. Create a plugin and use the around Plugin Function technique. class Match extends \Magento\Framework\Search\Adapter\Mysql\Query\Builder\Match { In the ...

View answer
Magento 2.2.5 google-analytics code not show Frontend
0 votes

I went to Stores | Configuration Sales > Google API Google Analytics Enable: Yes Account Number: The UA Tracking Code Clicked Save Config But Refreshed front end it's not adding the script ...

View answer