-
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
problem at backend opening atribute with text swatches #7654
Comments
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. |
@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? |
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 |
@erik-augustin , Thanks for the feedback. Please add more details to your description of the steps you followed when identifying this issue. |
@erik-augustin we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue. |
@erik-augustin, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue. |
problem still in 2.1.9 when i click add text swatch attrib to edit 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 |
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 deleting incomplete textswatch in magento store manager and upload change fixes problem please fix this problem asap. |
hi this solution is not worked form me i still get the same error can you please suggest me ? |
CABPI-425: SignIn with AdobeID Button is missing on Login Page
Preconditions
3 php 7.0
Steps to reproduce
Expected result
Actual result
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)
(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
The text was updated successfully, but these errors were encountered: