magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

problem at backend opening atribute with text swatches

Open erik-augustin opened this issue 10 years ago • 10 comments

Preconditions

  1. magento 2.1.2
  2. mysql 5.6 3 php 7.0

Steps to reproduce

  1. edit text swatches switch to from visual edit dele options

Expected result

  1. it should be possible to edit atributes

Actual result

  1. [Screenshot, logs]

I get an error page:

1 exception(s): Exception #0 (Exception): Notice: Uninitialized string offset: 0 in /home/78667-61384.cloudwaysapps.com/fbsjfkryyc/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php on line 91

Exception #0 (Exception): Notice: Uninitialized string offset: 0 in /home/78667-61384.cloudwaysapps.com/fbsjfkryyc/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php on line 91 #0 /home/78667-61384.cloudwaysapps.com/fbsjfkryyc/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(91): Magento\Framework\App\ErrorHandler->handler(8, 'Uninitialized s...', '/home/78667-613...', 91, Array) #1 /home/78667-61384.cloudwaysapps.com/fbsjfkryyc/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(47): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->reformatSwatchLabels(Array)

/**
 * Parse swatch labels for template
 *
 * @codeCoverageIgnore
 * @param null $swatchStoreValue
 * @return string
 */
protected function reformatSwatchLabels($swatchStoreValue = null)
{
    if ($swatchStoreValue === null) {
        return;
    }
    $newSwatch = '';

(LINE91) foreach ($swatchStoreValue as $key => $value) { if ($value[0] == '#') { $newSwatch[$key] = 'background: '.$value; } elseif ($value[0] == '/') { $mediaUrl = $this->swatchHelper->getSwatchMediaUrl(); $newSwatch[$key] = 'background: url('.$mediaUrl.$value.'); background-size: cover;'; } } return $newSwatch; } } At the frontend my configurable itemes with multiple are functioning as expected but at backend i have problems.

when i open add the backend of magento 2.1.2 one of my Product atributes (with text swatches)

I get an error page: see above

i have create "workaround" by changing: if ($swatchStoreValue === null || 1==1) {

my questions: -whats the function of this code? -how to fix this permanent? -do i have a corrrupted database field (which table is queried field?)

thanks erik

erik-augustin avatar Dec 01 '16 18:12 erik-augustin

We are also seeing this error on the same platform and version. screen shot 2017-01-19 at 17 35 09

stevewinni avatar Jan 19 '17 17:01 stevewinni

Hi, we resolve it with print log in core function and we found an option with void value. We removed it from DB and all works fine.

elachino avatar May 25 '17 13:05 elachino

@erik-augustin Hello, we was tried to reproduce your issue as you described it and we can`t do it. Can you please recheck your problem on the latest version of Magento 2?

RomanKrut avatar Jun 29 '17 07:06 RomanKrut

problem still exsists at 2.1.6 :(

1 exception(s): Exception #0 (Exception): Notice: Uninitialized string offset: 0 in /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php on line 91

Exception #0 (Exception): Notice: Uninitialized string offset: 0 in /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php on line 91 #0 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(91): Magento\Framework\App\ErrorHandler->handler(8, 'Uninitialized s...', '/home/78667-613...', 91, Array) #1 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(47): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->reformatSwatchLabels(Array) #2 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/AbstractSwatch.php(48): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->createStoreValues('0', '31') #3 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-eav/Block/Adminhtml/Attribute/Edit/Options/Options.php(155): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\AbstractSwatch->_prepareUserDefinedAttributeOptionValues(Object(Magento\Eav\Model\Entity\Attribute\Option), 'radio', Array) #4 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-eav/Block/Adminhtml/Attribute/Edit/Options/Options.php(118): Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options->_prepareOptionValues(Object(Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor), Object(Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection)) #5 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(63): Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options->getOptionValues() #6 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml(137): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->getJsonConfig() #7 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/78667-613...') #8 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual), '/home/78667-613...', Array) #9 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/home/78667-613...') #10 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-backend/Block/Template.php(104): Magento\Framework\View\Element\Template->_toHtml() #11 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Backend\Block\Template->toHtml() #12 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml() #13 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->renderBlock('main_schedule_b...') #14 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main_schedule_b...') #15 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main_schedule_b...') #16 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main_schedule_b...', true) #17 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('main_schedule_b...') #18 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->renderContainer('main') #19 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main') #20 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main') #21 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', true) #22 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(499): Magento\Framework\View\Layout\Interceptor->renderElement('main', true) #23 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tabs.php(37): Magento\Framework\View\Element\AbstractBlock->getChildHtml('main') #24 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(658): Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tabs->beforeToHtml() #25 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml() #26 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->renderBlock('attribute_edit...') #27 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('attribute_edit...') #28 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('attribute_edit...') #29 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('attribute_edit...', true) #30 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('attribute_edit...') #31 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('left') #32 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('left') #33 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('left') #34 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('left', true) #35 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('left') #36 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('side.col') #37 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('side.col') #38 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('side.col') #39 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('side.col', true) #40 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('side.col') #41 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.main.conta...') #42 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.main.conta...') #43 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.main.conta...') #44 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.main.conta...', true) #45 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.main.conta...') #46 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.content') #47 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.content') #48 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.content') #49 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.content', true) #50 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.content') #51 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.wrapper') #52 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') #53 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') #54 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', true) #55 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper') #56 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('backend.page') #57 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('backend.page') #58 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('backend.page') #59 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('backend.page', true) #60 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('backend.page') #61 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('root') #62 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root') #63 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') #64 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true) #65 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(938): Magento\Framework\View\Layout\Interceptor->renderElement('root') #66 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(492): Magento\Framework\View\Layout->getOutput() #67 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Result/Page.php(243): Magento\Framework\View\Layout\Interceptor->getOutput() #68 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Result/Layout.php(164): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor)) #69 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Backend/Model/View/Result/Page/Interceptor.php(193): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #70 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/App/Http.php(139): Magento\Backend\Model\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #71 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #72 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #73 {main}

erik-augustin avatar Aug 15 '17 12:08 erik-augustin

@erik-augustin , Thanks for the feedback. Please add more details to your description of the steps you followed when identifying this issue.

magento-engcom-team avatar Sep 21 '17 08:09 magento-engcom-team

@erik-augustin we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

magento-engcom-team avatar Oct 05 '17 18:10 magento-engcom-team

@erik-augustin, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

magento-engcom-team avatar Oct 06 '17 08:10 magento-engcom-team

problem still in 2.1.9 when i click add text swatch attrib to edit image

1 exception(s): Exception #0 (Exception): Notice: Uninitialized string offset: 0 in /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php on line 91

Exception #0 (Exception): Notice: Uninitialized string offset: 0 in /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php on line 91 #0 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(91): Magento\Framework\App\ErrorHandler->handler(8, 'Uninitialized s...', '/home/78667-613...', 91, Array) #1 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(47): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->reformatSwatchLabels(Array) #2 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/AbstractSwatch.php(48): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->createStoreValues('0', '93') #3 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-eav/Block/Adminhtml/Attribute/Edit/Options/Options.php(155): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\AbstractSwatch->_prepareUserDefinedAttributeOptionValues(Object(Magento\Eav\Model\Entity\Attribute\Option), 'radio', Array) #4 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-eav/Block/Adminhtml/Attribute/Edit/Options/Options.php(118): Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options->_prepareOptionValues(Object(Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor), Object(Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection)) #5 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php(63): Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options->getOptionValues() #6 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml(137): Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual->getJsonConfig() #7 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/78667-613...') #8 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual), '/home/78667-613...', Array) #9 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/home/78667-613...') #10 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-backend/Block/Template.php(104): Magento\Framework\View\Element\Template->_toHtml() #11 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Backend\Block\Template->toHtml() #12 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml() #13 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->renderBlock('main_schedule_b...') #14 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main_schedule_b...') #15 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main_schedule_b...') #16 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main_schedule_b...', true) #17 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('main_schedule_b...') #18 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->renderContainer('main') #19 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main') #20 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main') #21 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', true) #22 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(499): Magento\Framework\View\Layout\Interceptor->renderElement('main', true) #23 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tabs.php(37): Magento\Framework\View\Element\AbstractBlock->getChildHtml('main') #24 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(658): Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tabs->beforeToHtml() #25 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml() #26 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->renderBlock('attribute_edit...') #27 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('attribute_edit...') #28 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('attribute_edit...') #29 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('attribute_edit...', true) #30 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('attribute_edit...') #31 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('left') #32 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('left') #33 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('left') #34 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('left', true) #35 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('left') #36 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('side.col') #37 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('side.col') #38 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('side.col') #39 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('side.col', true) #40 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('side.col') #41 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.main.conta...') #42 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.main.conta...') #43 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.main.conta...') #44 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.main.conta...', true) #45 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.main.conta...') #46 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.content') #47 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.content') #48 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.content') #49 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.content', true) #50 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.content') #51 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.wrapper') #52 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') #53 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') #54 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', true) #55 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper') #56 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('backend.page') #57 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('backend.page') #58 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('backend.page') #59 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('backend.page', true) #60 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('backend.page') #61 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('root') #62 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root') #63 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') #64 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true) #65 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Layout.php(938): Magento\Framework\View\Layout\Interceptor->renderElement('root') #66 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(492): Magento\Framework\View\Layout->getOutput() #67 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Result/Page.php(243): Magento\Framework\View\Layout\Interceptor->getOutput() #68 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/View/Result/Layout.php(164): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor)) #69 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/var/generation/Magento/Backend/Model/View/Result/Page/Interceptor.php(193): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #70 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/App/Http.php(139): Magento\Backend\Model\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #71 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #72 /home/78667-61384.cloudwaysapps.com/ufpxeczjgw/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #73 {main}

erik-augustin avatar Nov 04 '17 14:11 erik-augustin

found cause of problem and reported problem at store manager team:

importing product with new value of text swatch value creates incomplete stucture in database opening attribute in admin magento with textswatches gives error likes this

https://github.com/magento/magento2/issues/7654

deleting incomplete textswatch in magento store manager and upload change fixes problem please fix this problem asap.

erik-augustin avatar Nov 04 '17 16:11 erik-augustin

Hi, we resolve it with print log in core function and we found an option with void value. We removed it from DB and all works fine.

hi this solution is not worked form me i still get the same error can you please suggest me ?

kinjal153mehta avatar Apr 03 '19 12:04 kinjal153mehta