Skip to content
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

Banner Slider Admin Page Broken #128

Open
rgilchrist opened this issue May 7, 2020 · 3 comments
Open

Banner Slider Admin Page Broken #128

rgilchrist opened this issue May 7, 2020 · 3 comments

Comments

@rgilchrist
Copy link

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
Copy link

dickd commented Jun 5, 2020

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

@kevinvuillemin
Copy link

kevinvuillemin commented Jun 15, 2020

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
Copy link

fluidum commented Jan 27, 2024

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/..)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants