Jump to content

Moved site from WAMP to test server and now getting Error


Jon
 Share

Recommended Posts

Hello Guys,

Ive just moved a site over to a test server but I am now getting the following error. Any ideas?

Error: Exception: Field does not exist: top_nav (in /home/clearbox/public_html/clients/ml/wire/core/PageFinder.php line 538)

#0 [internal function]: PageFinder->___getQuery(Object(Selectors), Array)
#1 /home/clearbox/public_html/clients/ml/wire/core/Wire.php(398): call_user_func_array(Array, Array)
#2 /home/clearbox/public_html/clients/ml/wire/core/Wire.php(333): Wire->runHooks('getQuery', Array)
#3 /home/clearbox/public_html/clients/ml/wire/core/PageFinder.php(280): Wire->__call('getQuery', Array)
#4 /home/clearbox/public_html/clients/ml/wire/core/PageFinder.php(280): PageFinder->getQuery(Object(Selectors), Array)
#5 [internal function]: PageFinder->___find(Object(Selectors), Array)
#6 /home/clearbox/public_html/clients/ml/wire/core/Wire.php(398): call_user_func_array(Array, Array)
#7 /home/clearbox/public_html/clients/ml/wire/core/Wire.php(333): Wire->runHooks('find', Array)
#8 /home/clearbox/public_html/clients/ml/wire/core/Pages.php(216): Wire->__call('find', Array)
#9 /home/clearbox/public_html/clients/ml/wire
Link to comment
Share on other sites

Did the database get migrated correctly? Is it possible that the field doesn't actually exist - can you check for it in PHPMyAdmin or similar. There should be a table named "field_fieldname" and there should be an entry for it in the "fields" table.

  • Like 1
Link to comment
Share on other sites

Hi Jon,

Why don't you tell us something more about what you are using e.g:

processwire version you are using

did you zip up, ftp or cpanel upload

what hoster you are using

Anyway in such case I would first run on your online host, a fresh new processwire installation with the same version as you are using local on your computer. Running a fresh new processwire installation will tell you if your online host environment is meeting all the needed requirements. After that simply replace the online site folder with the one you have local, use zip, and ftp or cpanel for upload. After that adapt your config.php local values to the online host values and finally import your local sql file.

If everything is working locally but not online, these steps will narrow down where the problem might be.

Usually:

.htaccess, index.php or paths mismatch

hosting restrictions

file missing or corruption during zip compress/extract or ftp upload

=> maybe in your case (field not exist) the .sql migration

Anyway let us know about how it goes

  • Like 1
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...