We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Base table or view not found: 1146 Table 'xxx.exp_plugins' doesn't exist

How Do I?

typohannes's avatar
typohannes
14 posts
6 years ago
typohannes's avatar typohannes

Hello Guys,

So I’m upgrading my old site from 2.55 to the latest version (kinda outdated piece of software please don’t laugh), so I followed the instruction from this page https://docs.expressionengine.com/v3/installation/upgrade_from_2.x.html, check modules, permissions etc. and viewed the site at http://dev.local/system I got Exception Caught error

“SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘eh6316a.exp_plugins’ doesn’t exist: SELECT plugin_package FROM (exp_plugins)

ee/legacy/database/drivers/mysqli/mysqli_connection.php:116”

or http://dev.local/admin.php

SQLSTATE[01000]: Warning: 1265 Data truncated for column ‘total_entries’ at row 27: ALTER TABLE exp_members CHANGE total_entries total_entries mediumint(8) UNSIGNED NOT NULL DEFAULT ‘0’

What could be the issue, can someone enlighten me, please?

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Hey typohannes! Before you update to v3, you’ll first want to update to the latest version of v2. Once you’ve done that, give the v3 upgrade a try again. Let me know if you have any issues or hit up the fine folks in ExpressionEngine Slack!

       
typohannes's avatar
typohannes
14 posts
6 years ago
typohannes's avatar typohannes

Hello,

Thanks for the reply, so I downloaded 2.11.9 and tried upgrading my current version 2.5.5 first to the latest V2, and unfortunately upon following the Wizard I still got the same error message, see below

“A Database Error Occurred

Error Number: 1265

Data truncated for column ‘total_entries’ at row 27

ALTER TABLE exp_members CHANGE total_entries total_entries mediumint(8) UNSIGNED DEFAULT ‘0’ NOT NULL

Filename: /var/www/system/expressionengine/libraries/Smartforge.php

Line Number: 227”

Already reported the same error in the Slack channel too

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

That’s very unusual; it sounds as if something wrote an invalid value to the total_entries column in your v2 database. It should only contain integers. If you look at that table in phpMyAdmin or similar, and then sort ascending and descending, do you see anything out of the ordinary? Flipping asc/desc search should make any incorrect datatypes pop to the top of the list.

       
typohannes's avatar
typohannes
14 posts
6 years ago
typohannes's avatar typohannes

Hi Derek,

Thanks for the reply, it’s all good now, I manage to resolve the issue by myself, the issue is not related to the column itself but to the table row.

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Interesting, glad you found it! If you are able to, please elaborate on the cause and how you fixed it, in case someone else bumps into this issue, or if there’s something we can do in the app to help prevent it from occurring.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.