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

Upgrade from 2.0.7 to 2.1.0 gives many errors #5236

Closed
richardreen opened this issue Jun 24, 2016 · 84 comments
Closed

Upgrade from 2.0.7 to 2.1.0 gives many errors #5236

richardreen opened this issue Jun 24, 2016 · 84 comments

Comments

@richardreen
Copy link

After upgrading from 2.0.7 to 2.1.0 there are several errors:

  1. Categories don't show no products anymore [frontend}

  2. Tried to update a configurable products results in errors

    • Can't create directory /srv/www/webshop2/var/generation/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice/.

    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....

@paales
Copy link
Contributor

paales commented Jun 24, 2016

@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

@Protazy21
Copy link

Protazy21 commented Jun 26, 2016

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:
a:4:{i:0;s:98:"The configuration parameter "componentType" is a required for "advanced_pricing_button" component.";i:1;s:8025:"#0 /var/www/html/devel.test.com/vendor/magento/framework/View/Element/UiComponentFactory.php(360): Magento\Framework\View\Element\UiComponentFactory->mergeMetadataItem(Array, Array, false)

@mreichh
Copy link

mreichh commented Jun 26, 2016

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?

@Protazy21
Copy link

Protazy21 commented Jun 28, 2016

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
self::$advancedPricingButton => [
'arguments' => [
'data' => [
'config' => $visibilityConfig,
'config' => ['componentType'=>'container',$visibilityConfig],
],
],
],

pull request can be found here #5411

@rudik99
Copy link

rudik99 commented Jun 29, 2016

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

@Protazy21
Copy link

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

@developer-lindner
Copy link

developer-lindner commented Jun 29, 2016

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?!

@mreichh
Copy link

mreichh commented Jun 29, 2016

@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...

@rudik99
Copy link

rudik99 commented Jun 29, 2016

@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.

@quynhvv
Copy link

quynhvv commented Jun 30, 2016

@Protazy21:
I get this issue too after migrated data from Magento 1.9.2.x to Magento 2.1.0 via migrate tool at
https://www.ubertheme.com/magento-extensions-2-x/magento-2-data-migration-pro/
and solved by your shared.
Hope Magento will has fixes to handle this in next version ASAP.
Thanks.

@rudik99
Copy link

rudik99 commented Jun 30, 2016

@Protazy21 Whats the best way to find the those attributes in the Database and remove?

@rou9e
Copy link

rou9e commented Jun 30, 2016

Hey there,
I did the update suggested by @Protazy21 :

'config' => ['componentType'=>'container',$visibilityConfig],

But now I get this error :

The configuration parameter "componentType" is a required for "" component.

Any clue ?

@Protazy21
Copy link

@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.

@Protazy21
Copy link

Protazy21 commented Jul 2, 2016

Fix for showing products in category
Magento\CatalogInventory\Model\Configuration
function getDefaultScopeId() always returns 0 (admin id)
converting to this helps:
public function getDefaultScopeId()
{
// TODO: should be fixed in MAGETWO-46043
// "0" is id of admin website, which is used in backend during save entity
$scopeId = $this->storeManager->getWebsite()->getId();
return $scopeId;
}
In this case if you do any actions in admin 0 will be returned, if on frontend current website id.

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.

@Ctucker9233
Copy link

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?

@davidbilly
Copy link

davidbilly commented Jul 2, 2016

@Ctucker9233 , we're same boat :( upgraded from 2.0.4 CE

screen shot 2016-07-03 at 5 24 43 am

@Ctucker9233
Copy link

@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. :(

@davidbilly
Copy link

@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?

@Ctucker9233
Copy link

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

@Ctucker9233
Copy link

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?

@davidbilly
Copy link

davidbilly commented Jul 3, 2016

@Ctucker9233 using 2.1.0 DB data? Mine 2.1.0 after add cart not updating checkout.

@Ctucker9233
Copy link

@davidbilly Not sure what you mean. I went through the documented method for upgrading so I would assume i'm using the upgraded DB.

@ruud3007
Copy link

ruud3007 commented Jul 3, 2016

After upgrading I still have the following error:
Notice: Undefined offset: 88 in /home/tm/public_html/vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php on line 166

I checked in the database, but this attribute does exist... In fact it is Media Gallery

screen shot 2016-07-04 at 00 22 30

@AntonEvers
Copy link
Contributor

AntonEvers commented Jul 4, 2016

@uinique-ruud I have the same problem, but all attributes that have this problem are missing from catalog_eav_attribute while they are product/category attributes. They are indeed present in eav_attribute

@ruud3007
Copy link

ruud3007 commented Jul 4, 2016

@ajpevers in my case it is even in that table...
screen shot 2016-07-04 at 11 38 51

@AntonEvers
Copy link
Contributor

Can you find it in the backend in the product attribute management? I couldn't find mine there either.

@ruud3007
Copy link

ruud3007 commented Jul 4, 2016

Yes I can also find it there...

screen shot 2016-07-04 at 11 50 15

But when I open a product page in the admin:

screen shot 2016-07-04 at 11 51 16

@AntonEvers
Copy link
Contributor

I think we can then conclude we have different problems with the same outcome. I added a row to catalog_eav_attribute for the faulty attribute id and with all the default column values, reindexed, flushed cache and the error went away in my case.

@ruud3007
Copy link

ruud3007 commented Jul 4, 2016

I think there is only one solution for me, which is install version 2.0.7 again...
Do a new data migration and start over.

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.

@developer-lindner
Copy link

@Protazy21 just getting this report:

a:4:{i:0;s:134:"Notice: Undefined offset: 63 in /app/code/Magento/Eav/Model/ResourceModel/ReadHandler.php on line 166";i:1;s:6937:"#0 /app/code/Magento/Eav/Model/ResourceModel/ReadHandler.php(166): Magento\Framework\App\ErrorHandler->handler(8, 'Undefined offse...', '/Users/thomas/S...', 166, Array)
#1 /lib/internal/Magento/Framework/EntityManager/Operation/Read/ReadAttributes.php(59): Magento\Eav\Model\ResourceModel\ReadHandler->execute('Magento\\Catalog...', Array, Array)
#2 /lib/internal/Magento/Framework/EntityManager/Operation/Read.php(116): Magento\Framework\EntityManager\Operation\Read\ReadAttributes->execute(Object(Magento\Catalog\Model\Category\Interceptor), Array)
#3 /lib/internal/Magento/Framework/EntityManager/EntityManager.php(61): Magento\Framework\EntityManager\Operation\Read->execute(Object(Magento\Catalog\Model\Category\Interceptor), 2, Array)
#4 /app/code/Magento/Catalog/Model/ResourceModel/Category.php(996): Magento\Framework\EntityManager\EntityManager->load(Object(Magento\Catalog\Model\Category\Interceptor), 2)
#5 /var/generation/Magento/Catalog/Model/ResourceModel/Category/Interceptor.php(336): Magento\Catalog\Model\ResourceModel\Category->load(Object(Magento\Catalog\Model\Category\Interceptor), 2, NULL)
#6 /lib/internal/Magento/Framework/Model/AbstractModel.php(531): Magento\Catalog\Model\ResourceModel\Category\Interceptor->load(Object(Magento\Catalog\Model\Category\Interceptor), 2, NULL)
#7 /var/generation/Magento/Catalog/Model/Category/Interceptor.php(1480): Magento\Framework\Model\AbstractModel->load(2, NULL)
#8 /app/code/Magento/Catalog/Controller/Adminhtml/Category.php(40): Magento\Catalog\Model\Category\Interceptor->load(2)
#9 /app/code/Magento/Catalog/Controller/Adminhtml/Category/Edit.php(75): Magento\Catalog\Controller\Adminhtml\Category->_initCategory(true)
#10 /var/generation/Magento/Catalog/Controller/Adminhtml/Category/Edit/Interceptor.php(24): Magento\Catalog\Controller\Adminhtml\Category\Edit->execute()
#11 /lib/internal/Magento/Framework/App/Action/Action.php(102): Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor->execute()
#12 /app/code/Magento/Backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#13 /lib/internal/Magento/Framework/Interception/Interceptor.php(74): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#14 /lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor->___callParent('dispatch', Array)
#15 /lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor), Array, 'adminAuthentica...')
#16 /app/code/Magento/Backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#17 /lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#18 /lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor), Array, 'adminMassaction...')
#19 /app/code/Magento/Backend/App/Action/Plugin/MassactionKey.php(33): Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#20 /lib/internal/Magento/Framework/Interception/Interceptor.php(142): Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#21 /var/generation/Magento/Catalog/Controller/Adminhtml/Category/Edit/Interceptor.php(39): Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor->___callPlugins('dispatch', Array, Array)
#22 /lib/internal/Magento/Framework/App/FrontController.php(55): Magento\Catalog\Controller\Adminhtml\Category\Edit\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#23 /lib/internal/Magento/Framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#24 /lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#25 /lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#26 /lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#27 /lib/internal/Magento/Framework/Interception/Interceptor.php(142): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#28 /var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#29 /lib/internal/Magento/Framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#30 /lib/internal/Magento/Framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#31 /pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#32 {main}";s:3:"url";s:106:"/admin_17z3bf/catalog/category/index/key/69935eb4900b8ee2309cdab614537852a2faf049bef234d3d47987ba588ca909/";s:11:"script_name";s:10:"/index.php";} 

@Protazy21
Copy link

@developer-lindner
Do following

  1. bin/magento cache:clean
  2. bin/magento indexer:reindex
  3. Class Magento\Eav\Model\ResourceModel\ReadHandler

line 161

$unionSelect = new \Magento\Framework\DB\Sql\UnionExpression(
$selects,
\Magento\Framework\DB\Select::SQL_UNION_ALL
);

$selects consists of 5 tables

  1. catalog_product_entity_varchar
  2. catalog_product_entity_text
  3. catalog_product_entity_decimal
  4. catalog_product_entity_datetime
  5. catalog_product_entity_int

$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']]]
)) should do the trick :)

I don't have more ideas...

@developer-lindner
Copy link

developer-lindner commented Jul 11, 2016

@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:

array (size=19)
  0 => 
    array (size=2)
      'value' => string 'Default Category' (length=16)
      'attribute_id' => string '42' (length=2)
  1 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '46' (length=2)
  2 => 
    array (size=2)
      'value' => string 'PRODUCTS' (length=8)
      'attribute_id' => string '49' (length=2)
  3 => 
    array (size=2)
      'value' => string '' (length=0)
      'attribute_id' => string '57' (length=2)
  4 => 
    array (size=2)
      'value' => string '' (length=0)
      'attribute_id' => string '60' (length=2)
  5 => 
    array (size=2)
      'value' => string '1' (length=1)
      'attribute_id' => string '43' (length=2)
  6 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '50' (length=2)
  7 => 
    array (size=2)
      'value' => string '0' (length=1)
      'attribute_id' => string '51' (length=2)
  8 => 
    array (size=2)
      'value' => string '1' (length=1)
      'attribute_id' => string '66' (length=2)
  9 => 
    array (size=2)
      'value' => string '1' (length=1)
      'attribute_id' => string '68' (length=2)
  10 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '44' (length=2)
  11 => 
    array (size=2)
      'value' => string 'Schuhe,  Arbeitsschuhe,  Sicherheitsschuhe,  Küchenschuhe,  Entenschuhe,  Jacoform,  Birkenstock, Berkemann,  Schuhe online, Duckfeet, Puma' (length=155)
      'attribute_id' => string '47' (length=2)
  12 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '48' (length=2)
  13 => 
    array (size=2)
      'value' => string '' (length=0)
      'attribute_id' => string '61' (length=2)
  14 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '63' (length=2)
  15 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '64' (length=2)
  16 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '57' (length=2)
  17 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '58' (length=2)
  18 => 
    array (size=2)
      'value' => null
      'attribute_id' => string '59' (length=2)

@developer-lindner
Copy link

developer-lindner commented Jul 11, 2016

@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 -.-
Last time i've managed to fix by updating every product (update attribute), but mass action seems to have an issue too (Allowed memory size.... although it's set to 4G).

Any idea how to fix the association ?

@Protazy21
Copy link

@developer-lindner
Have you made the changes described above?

Fix for showing products in category
Magento\CatalogInventory\Model\Configuration
function getDefaultScopeId() always returns 0 (admin id)
converting to this helps:
public function getDefaultScopeId()
{
// TODO: should be fixed in MAGETWO-46043
// "0" is id of admin website, which is used in backend during save entity
$scopeId = $this->storeManager->getWebsite()->getId();
return $scopeId;
}
In this case if you do any actions in admin 0 will be returned, if on frontend current website id.

If you did, then have no clue. Your case is a bit different than I had.

@LucScu
Copy link

LucScu commented Jul 12, 2016

which EAV is attribute_id = 63?
post your entire record from eav_attribute table.

@developer-lindner
Copy link

developer-lindner commented Jul 12, 2016

@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
The table -> https://www.dropbox.com/s/6jqs81hfqcm6cwk/eav_attribute.sql?dl=0

@andimov Any idea what i can do?

@developer-lindner
Copy link

developer-lindner commented Jul 12, 2016

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,
but it is...

Does anyone of you have an idea for this issue #5414 maybe?
Or an idea how to do it better?

mysql settings:

[mysqld]
max_connections       = 10

key_buffer_size       = 16K
max_allowed_packet    = 200M
table_open_cache      = 250
sort_buffer_size      = 64K
read_buffer_size      = 256K
read_rnd_buffer_size  = 256K
net_buffer_length     = 2K
thread_stack          = 128K
wait_timeout          = 10

And how comes that the layered navigation is sometimes set with a few filters, but in sub-category it's not ?

@avra911
Copy link

avra911 commented Jul 15, 2016

Thanks to: #5645 I had to change the attribute group name to Advanced Pricing from Migration_Pricing. I also had to change the attribute_group_code and tab_group_code in eav_attribute_group table to make the edit product work again (see: https://nimbus.everhelper.me/client/notes/share/523802/gflibimm42igvlrh49yd).
R

@malaiselvan
Copy link

malaiselvan commented Jul 24, 2016

@Protazy21 After changing the code, I am getting a weird problem when I try to edit the product from backend Class Magento\Catalog\Model\Product\Attribute\Backend\Media does not exist. Any idea what went wrong??

@andimov
Copy link
Contributor

andimov commented Jul 29, 2016

@richardreen
According to contributor guide, tickets without response for two weeks should be closed.
Please feel free to reopen if it's needed.
@anyone
Please create a separate ticket for other issues and provide detailed steps according to the template. This will help us to process issues. I'm closing this one.

@andimov andimov closed this as completed Jul 29, 2016
@sehajmathur
Copy link

@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?

@flexxus
Copy link

flexxus commented Aug 2, 2016

@sehajmathur i am having the same issues.

@josh--
Copy link

josh-- commented Aug 3, 2016

@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.

@lalitmalav
Copy link

lalitmalav commented Aug 25, 2016

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)
#1 /home/69807-54179.cloudwaysapps.com/ssasmthybt/public_html/vendor/magento/framework/EntityManager/Operation/Read/ReadAttributes.php(59): Magento\Eav\Model\ResourceModel\ReadHandler->execute('Magento\Catalog...', Array, Array)
#2 /home/69807-54179.cloudwaysapps.com/ssasmthybt/public_html/vendor/magento/framework/EntityManager/Operation/Read.php(116): Magento\Framework\EntityManager\Operation\Read\ReadAttributes->execute(Object(Magento\Catalog\Model\Category\Interceptor), Array)
#3 /home/69807-54179.cloudwaysapps.com/ssasmthybt/public_html/vendor/magento/framework/EntityManager/EntityManager.php(61): Magento\Framework\EntityManager\Operation\Read->execute(Object(Magento\Catalog\Model\Category\Interceptor), 2, Array)
#4

@andimov
Copy link
Contributor

andimov commented Aug 25, 2016

@lalitmalav
Please create a new ticket for this issue and provide detailed description according to the template.

@rip057
Copy link

rip057 commented Oct 21, 2016

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

@qrider
Copy link

qrider commented Oct 24, 2016

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.

`
$attr_id = $attributeValue['attribute_id'];
$attr_val = $attributeValue['value'];

                if (!array_key_exists($attr_id, $attributesMap)) {
                    continue;
                }

                $attr_map = $attributesMap[$attr_id];
                $entityData[$attr_map] = $attr_val;

`

@ubedarab
Copy link

ubedarab commented Mar 5, 2017

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

  • 'config' => $visibilityConfig
    with ,
  • 'config' => ['componentType'=>'container',$visibilityConfig],

its work for me, :)

@mgeoffray
Copy link

I had the same error but the reason was that I create a new product attribute with the type Price
I place it under a new tab Price in my attribute set then I had the error with advanced_pricing_button. I had to move my new attribute under Advanced Pricing tab and then the error was gone.
I did not test yet if that is a native bug or not, but if that can help someone!

@JosephMaxwell
Copy link
Contributor

I put your solutions for the advanced_pricing_button issue into a small composer package: https://github.com/SwiftOtter/AdvancedPricingBug

This solves the problem for me. This is not a permanent fix, but until a official fix for this is released.

magento-team pushed a commit that referenced this issue Apr 19, 2017
…e' is a required for 'advanced_pricing_button' component' #5411

 - Merge Pull Request #5411 from Protazy21/magento2:buf-fixes
magento-team pushed a commit that referenced this issue Apr 19, 2017
…e" is a required for "advanced_pricing_button" component" #5411
@yogendrabmishra
Copy link

Can someone help me with this issue?

#9734

--Yogi--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests