I was upgrading my magento from CE 2.1.6 to CE 2.2.0:
1) Navigate to my magento folder
2) Execute
composer require magento/product-community-edition 2.2.0 --no-update
composer update
3) Then
php bin/magento setup:upgrade
I saw:
Notice: Undefined offset: 1 in /var/www/html/vendor/magento/module-theme/Model/ResourceModel/Theme/Collection.php on line 137
Can any help? Thanks.
Same issue here as well.
I solved the problem by downgrade to 2.1.9
Same issue here as well.
I've upgrated CE 2.1.7 to CE 2.2.0.
Can confirm after upgrade from CE 2.1.9 to 2.2.0
I have the same issue. I upgraded from CE 2.1.9 to 2.2.0
I have the same issue too. I upgraded from CE 2.1.9 to 2.2.0. Does someone have a solution ?
Have had the same issue removed it by:
Hope this helps someone :smile:
did anyone else tried Skast96 solution. Did it work ?
I'm honestly not sure what he explained 🤔
Could you clarify, @skast96 ?
error solved - problem with phpcli must be 70 ... was 71
my website working fine now.
great
On Oct 17, 2017 12:06 AM, "cadoworld" notifications@github.com wrote:
error solved - problem with phpcli must be 70 ... was 71
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/11412#issuecomment-336987515,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEuuyjEsTqnoHHA15KPa7dhhwizlMBmqks5ss6I6gaJpZM4P32Q8
.
@cadoworld Mine was always running on 7.0 and still experience this error. Do you have special settings?
Okay sorry for my bad explanation, I hope this helps otherwise I should improve my English writing skills 💯.
I added these lines to the table core_config_data because I have had a look on another magento2 instance of mine which is on Version 2.2.0, I saw that the theme_id of the default scope was the same id I have on the store scope. After this change another error popped up with the "design/theme/ua_regexp" which was not a valid JSON object before it was a:0:{} so I changed it to {}, because Magento was expecting an empty JSON object. For me, it was the easiest way to add these lines and to clear the cache afterward.
I believe I have a solution for this. When I looked in core_config_data I found that the theme_id stored for scope_id 0 was set to "NULL". This appears to be how it was stored in previous versions. I looked at the theme table and got the ID of my adminhtml theme and set that in core_config_data for scope_id 0. Now I can run setup:upgrade again.
Thanks @davepullen your fix worked for me!
@wangzhi0417, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We tested the issue on 2.2.0
Thanks @davepullen your fix worked for me as well.
@davepullen ,
thank for the solution! Can confirm that had the same, but now it is gone
Thanks @davepullen, it's worked for me.
Same here.
The strange thing is, on the same server I have 3 magento 2 installs. On both of them didn't have any issue updating to 2.2 on the last one I had this issue.
Thanks @davepullen ir solved my problem
Thank you @davepullen it`s a real method to solute this problem
I have this same issue. But am not following on how to fix. Can someone provide more detailed fix instructions along with a screen shot of where to edit the table (core_config_data)? Do I look in browse or structure or what? I have 1000s of lines in this table.
Open database using phpmyadmin and find table name core_config_data
run this query like
SELECT * FROM core_config_data
WHERE path
LIKE '%design/theme/theme_id%'
you can get the some of the rows like 2 or 3.
There will one value like http://prntscr.com/lfewjs
There will NULL value and replace to theme id
Thank you
Most helpful comment
I believe I have a solution for this. When I looked in core_config_data I found that the theme_id stored for scope_id 0 was set to "NULL". This appears to be how it was stored in previous versions. I looked at the theme table and got the ID of my adminhtml theme and set that in core_config_data for scope_id 0. Now I can run setup:upgrade again.