I have updated my Drupal 8 website to the current version.
After updating, the front page shows this message:

InvalidArgumentException: Field is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 509 of core\lib\Drupal\Core\Entity\ContentEntityBase.php).

Drupal\Core\Entity\ContentEntityBase->get() (Line: 48)
Drupal\node\Entity\Node->isPublished()
call_user_func_array(Array, Array) (Line: 596)
Twig_Template->getAttribute(Object, 'isPublished', Array, 'method') (Line: 47)
__TwigTemplate_3a7f261c43981f8d50f37aa204df584417cff476c1e8f1407ac502e8a54ca2ae->doDisplay(Array, Array) (Line: 379)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 347)
Twig_Template->display(Array) (Line: 358)
Twig_Template->render(Array) (Line: 64)
twig_render_template('themes/bootstrap/templates/node/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 149)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

I have run update.php (several times, in fact) but nothing changes. When I run cron.php, I get a 'page not found' with admin-bar at the top, so apparently I can still do a few things, but my nodes are not showing, just the above message.
Does anyone know what the hell is going on here?
I am running a rather simple Drupal site with only the added modules ctools, easy_breadcrumb, linkit, metatag, name, pathauto, photoswipe, token and views_php installed. Running on a windows machine.

Any help highly appreciated, as I can't go on!

Comments

sprite’s picture

What methodology did you use to perform the update?
- there is more than one ...

What _AMP stack are you using on your local machine ?

What were the to and from versions of the update?

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

mfgr’s picture

I am pretty 'front end' inclined, so I simply deleted all the old (root, /core and /vendor (+ subdirs) files) and uploaded them again, then ran update.php from the browser.
The version I had was from early this year, so Drupal 8.2.x .

sprite’s picture

For your sanity, you may want to learn about the composer utility.
The composer utility is pretty much the only reliable way to keep D8 core and module properly configured.
On your local machine, installing composer should be readily available to you.

When updating from 8.2.x to 8.3.x, there are major code changes.

Did you also clear the cache after running update.php?

--

It is straightforward to run composer on top of an existing D8 installation.
With composer you will want to "install" on your modules using composer, and then "enable" them with the admin GUI.

If found when updating from 8.2 to 8.3 (even with composer), I needed to delete /core and /vendor and have composer rebuild the code (files) configuration.

--

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

mfgr’s picture

Thank you for trying to help. For now I have downgraded to Drupal 8.2.7 and get on with it. (It's not a live/production site so no security issues there.)
I do understand that the 'easy' days of Drupal are all gone now and I need to invest in education, somehow, somewhere.

adminMN2023’s picture

IF you are on a linux server with cpanel - the File Manager tool is a great way to update also. [Unless composer is required for one of your extensions.]

The point is to get on with the project, not keep wrestling with the framework. Yes - Composer is a smart thing to learn, but not the only way to skin the cat so-to-speak.