Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Something went wrong with processing the default view and we have restored the filter to its original state." and then the red never goes away and i cant refresh the page to add more content #26515

Closed
shischrum1994 opened this issue Jan 23, 2020 · 11 comments
Assignees
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update

Comments

@shischrum1994
Copy link

Preconditions (*)

Steps to reproduce (*)

Expected result (*)

  1. [Screenshots, logs or description]

Actual result (*)

  1. [Screenshots, logs or description]
@m2-assistant
Copy link

m2-assistant bot commented Jan 23, 2020

Hi @shischrum1994. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@shischrum1994 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Jan 23, 2020
@engcom-Bravo
Copy link
Contributor

Hello @shischrum1994,

Thank you for your report.

Unfortunately, from the provided description, we can not reproduce the issue and start to work on fixing it. Can you please provide the steps, and possibly screenshots, which lead to the "Something went wrong with processing the default view and we have restored the filter to its original state." error message

Thank you for collaboration

@engcom-Bravo engcom-Bravo self-assigned this Jan 24, 2020
@m2-assistant
Copy link

m2-assistant bot commented Jan 24, 2020

Hi @engcom-Bravo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Golf
Copy link
Contributor

Hi @shischrum1994 thank you for you report, please provide additional description and steps to reproduce. feel free to open new issue.

@ModeliUK
Copy link

ModeliUK commented Apr 2, 2020

Preconditions - Magento 2.3.4 and items in catalog_product_entity where SKU is NULL
Steps to reproduce - Add keyword filter to admin products grid
Expected result - Filtered product grid
Actual result - Message "Something went wrong..." displayed at top of page and loading mask displayed, data does not load

@Grumag
Copy link

Grumag commented May 13, 2020

This happens in 2.3.4 for sure, happened two times for me. It seems to be happening when you search for a SKU number that has been deleted, but related to migration from M1. There is a StackExchange post about this that has been viewed 11,000+ times. Google error message to confirm it. Solution is to empty ui_bookmark table.
It is a rather annoying bug that is obviously affecting a LOT of people.

@SewHappy58
Copy link

It also happens on Magento 2.3.5-p It's very random and you have to clear cache to get it to go away. It didn't happen on 2.3

@SolsWebdesign
Copy link
Contributor

This also happened in a custom module: it happens when one of the columns contains a "null" value (the column does not have to be filterable for this to happen!). And when it happens, you get an entry in the 'ui_bookmark' table that contains the user_id of the user that tried to filter and a namespace of the module and a config containing something like "this_is_a_column":{"visible":true,"sorting":false} for each column and if a column contains a null value this entry produces this error. In my case it was sufficient to avoid all null entries (even in not filterable columns!) but with the product grid this cannot be avoided, especially if the Magento store contains migrated data :-(
A quick fix is to remove the entry from the ui_bookmark table. Cache clear did not work for me.

@sugaryusuf
Copy link

This also happened in a custom module: it happens when one of the columns contains a "null" value (the column does not have to be filterable for this to happen!). And when it happens, you get an entry in the 'ui_bookmark' table that contains the user_id of the user that tried to filter and a namespace of the module and a config containing something like "this_is_a_column":{"visible":true,"sorting":false} for each column and if a column contains a null value this entry produces this error. In my case it was sufficient to avoid all null entries (even in not filterable columns!) but with the product grid this cannot be avoided, especially if the Magento store contains migrated data :-(
A quick fix is to remove the entry from the ui_bookmark table. Cache clear did not work for me.

I am facing the same issue. How did you solve it?

@parween-talat
Copy link

facing same issue

@SolsWebdesign
Copy link
Contributor

@sugaryusuf @parween-talat There are several things you can do depending on the situation.

Open up the adminhtml developer tools (for instance in Chrome or Firefox) and look for the GET that goes wrong, it will be something like GET https......admin..../mui/index/renderer... and open the Json Response Payload:
image

It will point you in the right direction.

If it is a custom module (as in my case) have a look at the Vendor\YourModule\Ui\Component\Grid\Column\YourSpecificColumn.php and the function prepareDataSource. If it contains something

public function prepareDataSource(array $dataSource) { if (isset($dataSource['data']['items'])) { foreach ($dataSource['data']['items'] as & $item) { $name = $this->getData('name'); if (isset($item['entity_id'])) { $item[$name] = $this->mySpecialFunction($item['imei_id']);

then replace it with a try catch and fill the catch with something like $item[$name] = $item['imei_id'].' not found '; (so no null value).

Also in your grid you can add the sortable fals like mentioned above. For example:

<!-- column with sorting problem: --> <column name="your_specific_value" class="Vendor\YourModule\Ui\Component\Grid\Column\YourSpecificColumn"> <settings> <sortable>false</sortable> </settings> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="filter" xsi:type="string">text</item> <item name="label" xsi:type="string" translate="true">Our Specific Value</item> </item> </argument> </column>

Don't forget to remove the user id from the ui_bookmark table (in below example user has userID 22):

DELETE FROM ui_bookmark WHERE namespace = 'table_that_gives_you_trouble' AND identifier = 'current' AND user_id = '22';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update
Projects
None yet
Development

No branches or pull requests

10 participants