-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Upgrade from 2.0.7 to 2.1.0 gives many errors #5236
Comments
@richardreen Looks like a permission problem. Please take a look at this article first. http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html |
It is happening to me also after upgrade from 2.0.7 to 2.1. I don't have permissions problem, however products aren't displaying in any category. When I want to edit any product I'm getting "There has been an error processing your request" in report file I can find: |
same for me. Also followed http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html, step 4. Any idea why this issue occurs? |
I've managed to fix editing products, here is what I've done Class vendor/magento/module-configurable-product/Ui/DataProvider/Product/Form/Modifier/ConfigurablePrice.php @@ -92,7 +92,7 @@ class ConfigurablePrice extends AbstractModifier pull request can be found here #5411 |
Hi @Protazy21 I tried the above and it didnt work. did you do anything else? I got this: Notice: Undefined offset: 118 in /usr/local/lsws/test/magento21/vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php on line 166 |
Is your database migrated by any chance? I've faced this issue but with id 119 and few more. In your case 118 is attribute id, check your database table eav_attribute, I believe that the attribute with this id doesn't exist but it is still part of your product. If the attribute doesn't exist find all references to it in other tables and delete records where column attribute_id = 118. Repeat for other ids if necessary |
Hi @Protazy21 thanks for the hint! Can't believe that such an error flows into a 2.1.0 release... After changing the file it worked! Had a look and just thought the grid layout is broken, but they've just changed it to accordion style?! |
@Protazy21: Thanks for that. Solves the backend error "The configuration parameter "componentType" is a required for "advanced_pricing_button" component." "Categories don't show no products anymore" error still there though... |
@mreichh try re-indexing the database a couple of times and clear the cache, i find that fixes that issue for me on the odd occasion i have it. |
@Protazy21: |
@Protazy21 Whats the best way to find the those attributes in the Database and remove? |
Hey there,
But now I get this error :
Any clue ? |
@nowayyy36 sorry it doesn't say for which element so no clue, however the exception is thrown from class Magento\Framework\View\Element\UiComponentFactory Line 341 if (!isset($data['arguments']['data']['config']['componentType'])) { throw new LocalizedException(new Phrase( 'The configuration parameter "componentType" is a required for "%1" component.', [$name] )); } Run it through debugger or place var_dump on data to get some information. |
Fix for showing products in category Other issues I've found, can't open any product on frontend (404), in backend even though I've managed show edit product form, it shows only half of information, for example products have no name, title etc, can't edit variations, saving products doesn't help and newly saved changes aren't displaying. Looks like issues are related to configurable products. |
After updating to Magento 2.1 from 2.0.7 I can't see my catalog navigation anymore. Anyone experience this issue? If not, I'll open a new issue. I know my products are still there and I can search and find products in the frontend. Anyone have a fix for this? |
@Ctucker9233 , we're same boat :( upgraded from 2.0.4 CE |
@davidbilly I can see all my products in the backend just fine. In the frontend, it's missing the nav bar that the customer would use to browse through products. It's strange though that the products show up when a customer searches for something. That's the only way products can be viewed on the frontend right now. I'm currently reverting to 2.0.7. :( |
@Ctucker9233 It's weird, my front-end look good. Just back-end screw up :( The reason I upgrade to 2.1.0 because it has fix for sub-product set price 0 issue lol Is it composer require magento/product-community-edition 2.0.7 --no-update Can reverse back? |
I'm afraid that doesn't work. I just tried it. Looks like I'm stuck with 2.1 for now. The old magento had a way to roll it back. Feature Request: version rollback |
Well, at least i'm back to where I was. Magento, why doesn't the catalog nav bar show up in the frontend any more? WTH? |
@Ctucker9233 using 2.1.0 DB data? Mine 2.1.0 after add cart not updating checkout. |
@davidbilly Not sure what you mean. I went through the documented method for upgrading so I would assume i'm using the upgraded DB. |
@uinique-ruud I have the same problem, but all attributes that have this problem are missing from |
Can you find it in the backend in the product attribute management? I couldn't find mine there either. |
I think we can then conclude we have different problems with the same outcome. I added a row to |
I think there is only one solution for me, which is install version 2.0.7 again... What I know for sure is that I am not happy at all with Magento 2, which is causing way more issues than it did with Magento 1. Also I hate them awefull frontend framework. I have to look for another platform in the future. |
@Protazy21 just getting this report:
|
@developer-lindner
line 161 $unionSelect = new \Magento\Framework\DB\Sql\UnionExpression( $selects consists of 5 tables
$connection→fetchAll($unionSelect) returns array - attribute_ids and corresponding values $entityData[$attributesMap[]] - holds all valid attributes ids Check all 5 tables, the attribute must be there It can be helpful to var_dump($connection→fetchAll($unionSelect)) or debug it using debugger, just see what is the value of attribute_id 63 so you can find it easier If you still can’t find it, just ignore it in the code ;) something like if(isset($entityData[$attributesMap[$attributeValue['attribute_id']]] I don't have more ideas... |
@Protazy21 Thank you! There seem to be a lot more problematic attributes, but in the end it was just the 63 one... this is the var_dump:
|
@Protazy21 well, obviously it's in the catalog_category_entity_* tables... makes sense if the error occurs when entering the category management in the backend. I can access the category management now, but don't see any products in frontend anymore -.- Any idea how to fix the association ? |
@developer-lindner
If you did, then have no clue. Your case is a bit different than I had. |
which EAV is attribute_id = 63? |
@Protazy21 unfortunately this doesn't helps me. Frontend still shows "We can't find products matching the selection." In 2.0.7 they were shown... wtf changed in 2.1.0? :/ @LucScu @andimov Any idea what i can do? |
Okay guys @Protazy21 @LucScu my issue was that the Catalog Search index didn't went through probably. I've tweaked my mysql settings (my.cnf) to have it pass through. Now i see products again. Didn't thought that this Index would be necessary to show products, Does anyone of you have an idea for this issue #5414 maybe? mysql settings:
And how comes that the layered navigation is sometimes set with a few filters, but in sub-category it's not ? |
Thanks to: #5645 I had to change the attribute group name to |
@Protazy21 After changing the code, I am getting a weird problem when I try to edit the product from backend |
@richardreen |
@Protazy21 Any idea how you fixed 404 issue and missing product information (for example products have no name, title etc) in the admin product edit form? |
@sehajmathur i am having the same issues. |
@sehajmathur @flexxus I had the same issue you are referring to specifically it was happening with group products. It ended up being an undefined index error as described in previous posts. The error just doesn't propagate to the frontend. You should be able to see the exceptions thrown in the exception log. I simply deleted references to the attribute in the DB and the products re-appeared and are again editable. |
Please let me know has resolved this issue ???? a:4:{i:0;s:164:"Notice: Undefined offset: 63 in /home/69807-54179.cloudwaysapps.com/ssasmthybt/public_html/vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php on line 166";i:1;s:7654:"#0 /home/69807-54179.cloudwaysapps.com/ssasmthybt/public_html/vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php(166): Magento\Framework\App\ErrorHandler->handler(8, 'Undefined offse...', '/home/69807-541...', 166, Array) |
@lalitmalav |
the attribute_id 63, from what i can tell, and this is only due to my self made api that only interfaces with the mysql db to create categories, products, pictures, etc. i digress, while i dont know specifically what table attribute_id 63 is in, 61 is in catalog_category_entity_varchar , 62 & 65 are in catalog_category_entity_text , 60 is in catalog_category_entity_text , so instead of the catalog_product_entity_* tables i would search the catalog category entity tables. but just like i saw that the attribute_id 118 was some benign notation of what level of stores the product was in, try to figure out what the attribute_id 63 is for you, idk. i realize this is closed, but i thought i would at least make the contribution for anyone that gets sent here by google, or anywhere else |
for me it was a migrated default category. Lucky for me I planned to rebuild the categories anyway. To fix it I added error handling to the core file temporarily around line 166 in module-eav/Model/ResourceModel/ReadHandler.php. I was then able to load the page and delete the category through the admin interface. You have to create and set a new default in your store else Magento will not let you delete the category. Below is the temp patch to get the page to load. For what ever reason the formatting did not like my copy & paste. `
` |
I got same error after upgrade to 2.1.1 to 2.1.5 and I apply solution mention by @Protazy21 Class vendor/magento/module-configurable-product/Ui/DataProvider/Product/Form/Modifier/ConfigurablePrice.php replace argument value on line 92
its work for me, :) |
I had the same error but the reason was that I create a new product attribute with the type |
I put your solutions for the This solves the problem for me. This is not a permanent fix, but until a official fix for this is released. |
…e" is a required for "advanced_pricing_button" component" #5411
Can someone help me with this issue? --Yogi-- |
After upgrading from 2.0.7 to 2.1.0 there are several errors:
Categories don't show no products anymore [frontend}
Tried to update a configurable products results in errors
I manual added this directory
Second try results in error again
-"Can't create directory /srv/www/webshop2/var/generation/Magento/Catalog/Model/Product/Attribute/Backend/Boolean/.
Also added this directory.
Third try results also in error again
"The configuration parameter "componentType" is a required for "advanced_pricing_button" component."
Back to admin page, now also error
-"The configuration parameter "componentType" is a required for "advanced_pricing_button" component."
Error stuck now....
The text was updated successfully, but these errors were encountered: