Magestore / Bannerslider-Magento2

Banner Slider Extension on Magento 2 - best way to capture the eyes of visitors!
http://www.magestore.com/banner-slider-on-magento2.html/
82 stars 100 forks source link

Banner Slider Admin Page Broken #128

Open rgilchrist opened 4 years ago

rgilchrist commented 4 years ago

I have recently upgraded our Magento to 2.3.4. Now when we go to the Admin Page (Content -> Manage Bannerslider), I get the error

Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'main_table.entity_id' in 'field list', query was: SELECT main_table.entity_id FROM magestore_bannerslider_slider AS main_table Exception #1 (PDOException): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'main_table.entity_id' in 'field list'

stack_trace.txt

dickd commented 4 years ago

Have same issue, thinking that it does not support 2.3 ++ Did you solve it ?

kevinvuillemin commented 4 years ago

Same issue for me.

I found a solution:

You have to change this files : app/code/Magestore/Bannerslider/Block/Adminhtml/Banner/Grid.php :231 Replace $this->setMassactionIdField('entity_id'); by $this->setMassactionIdField('banner_id');

AND

app/code/Magestore/Bannerslider/Block/Adminhtml/Slider/Grid.php :192 Replace $this->setMassactionIdField('entity_id'); by $this->setMassactionIdField('slider_id');

fluidum commented 7 months ago

Thanks @kevinvuillemin

In my case ver. 2.3.5 had only app/code/Magestore/Bannerslider/Block/Adminhtml/Slider/Grid.php which contained entity_id that I replaced with slider_id. Trying directly to reproduce after changing it the error was fixed.


Error appeared in var/log/system.log

Reproducing: Banner Slider -> Manage Sliders (URL contains ..admin/bannerslideradmin/slider/index/..)