Page 1 of 1

Issues Upgrading from 2.0.0.0 to 2.0.1.0

Posted: Wed Dec 03, 2014 5:24 am
by Deeds4life
Background:

Created site fresh with 2.0.0.0. Created my own theme. Today upgraded to latest version. Had maintenance mode turned on. Upgrade appeared to have gone well. Went to main page of site and got these errors:

Code: Select all

Notice: Undefined index: banner_id in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/slideshow.php on line 14Notice: Undefined index: limit in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 20Notice: Undefined index: product in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 24Warning: array_slice() expects parameter 1 to be array, null given in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 24Warning: Invalid argument supplied for foreach() in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 26Notice: Undefined index: banner_id in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/carousel.php on line 14

Re: Issues Upgrading from 2.0.0.0 to 2.0.1.0

Posted: Wed Dec 03, 2014 10:01 am
by skylimit
Got same issue with banner_id. Brief search reveals that it's not a new issue, but rather a regression one. Based on suggestions from the past, tried to reinstall the only banner (slideshow) from admin, checked that DB is still fine. Where $settings['banner_id'] is coming from anyway? I do not immediately see where it is set in the first place, but I did not dig too deep, hoping somebody out there has solution.
Same as others - migration from 2.0.0 to 2.0.1. Upgrade appeared to be successful on paper. No errors or warnings and everything except this warning appears to work so far.

Re: Issues Upgrading from 2.0.0.0 to 2.0.1.0

Posted: Wed Dec 03, 2014 11:36 am
by skylimit
This is what helped me to resolve this error (I believe it's result from previous banner settings that were not taken care of by the upgrade from 2.0.0 to 2.0.1):
1. Remove all banners, slideshows, carousels etc. from Admin (from both - design/banners and modules/*)
2. Find and remove from oc_settings table (using phpMyAdmin) all entries with _module, %slide%,%banner% etc. Make sure to delete only anything related to the banners
3. Recreate banners, slideshows etc. Error should be gone now.
skylimit wrote:Got same issue with banner_id. Brief search reveals that it's not a new issue, but rather a regression one. Based on suggestions from the past, tried to reinstall the only banner (slideshow) from admin, checked that DB is still fine. Where $settings['banner_id'] is coming from anyway? I do not immediately see where it is set in the first place, but I did not dig too deep, hoping somebody out there has solution.
Same as others - migration from 2.0.0 to 2.0.1. Upgrade appeared to be successful on paper. No errors or warnings and everything except this warning appears to work so far.

Re: Issues Upgrading from 2.0.0.0 to 2.0.1.0

Posted: Wed Dec 03, 2014 5:41 pm
by pm-netti
Deeds4life wrote:Background:

Created site fresh with 2.0.0.0. Created my own theme. Today upgraded to latest version. Had maintenance mode turned on. Upgrade appeared to have gone well. Went to main page of site and got these errors:

Code: Select all

Notice: Undefined index: banner_id in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/slideshow.php on line 14Notice: Undefined index: limit in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 20Notice: Undefined index: product in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 24Warning: array_slice() expects parameter 1 to be array, null given in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 24Warning: Invalid argument supplied for foreach() in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/featured.php on line 26Notice: Undefined index: banner_id in /home2/XXXX/public_html/daileyblend.org/catalog/controller/module/carousel.php on line 14
Clean setting table:
http://forum.opencart.com/viewtopic.php ... 97#p530417