Jump to content

Recommended Posts

Posted (edited)

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hortons.pages' doesn't exist (in /srv/users/serverpilot/apps/hortons/public/wire/core/WireDatabasePDO.php line 439)

Getting this error after upgrading from 2.4 to 2.8 then exporting the site profile and installing on the latest version of v3. Anything I could do about this, anyone come across this?

thanks

Edit:

The issues started going from 2.4 to 2.8 - I used the upgrading advice on the github, replacing PW files. Im running ubuntu 14.4.x using serverpilot.io. The site hosting was originally not controlled by me so am trying to rehost and upgrade.

Edited by benbyf
more info
Posted

@benbyf, I've seen these errors and most of the time these were due to missing tables or data in the database. Did you check the database itself?

 

Posted

errors in system-updater.txt

2017-04-19 17:10:37    ERROR: Update #SystemUpdate12 ERROR: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created'
2017-04-19 17:10:37    ERROR: Update #SystemUpdate12 ERROR: Failed to apply update 12

Posted

Haven't seen those errors before. 

Did you check the content of the database itself? Like are the tables (i.e. "pages") really there?

Also, you say you upgraded from 2.4 to 2.8 and then you exported the site profile? Why didn't you upgrade directly from 2.8 to 3.x replacing the /wire/, index.php and .htaccess? I've upgraded many sites, but haven't ever used the site profile export/import construction.

 

  • Like 1
Posted

ok that was hard work. I finally managed to upgrade from 2.4 - 3.0 without SQL errors, not sure how i did it to be honest.

However, when on 3.x. I ran into a few Internal Server Errors:

2017-04-20 15:48:04    ?   http://shortunsserver.nicegrp.com/?/  Error:     Class 'InputfieldText' not found (line 7 of /srv/users/serverpilot/apps/shortuns/public/wire/modules/Inputfield/InputfieldPassword.module)

2017-04-20 15:44:46    ?   http://shortunsserver.nicegrp.com/?/  Error:     Class 'ModuleJS' not found (line 3 of /srv/users/serverpilot/apps/shortuns/public/wire/modules/Jquery/JqueryFancybox/JqueryFancybox.module)

and

2017-04-20 15:38:34    ?   http://shortunsserver.nicegrp.com/?/  Error:     Class 'ModuleJS' not found (line 3 of /srv/users/serverpilot/apps/shortuns/public/wire/modules/Jquery/JqueryFancybox/JqueryFancybox.module)

 

I was able to fix each one of these by adding the <?php namespace ProcessWire; at the top of each file... now works but still a bit confused.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...