
By chanjay on
Hi,
I just updated my website to Drupal 8.5 via cPanel, now the site is error.
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">InvalidArgumentException</em>: Field is unknown. in <em class="placeholder">Drupal\Core\Entity\ContentEntityBase->getTranslatedField()</em> (line <em class="placeholder">580</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/ContentEntityBase.php</em>). <pre class="backtrace">Drupal\Core\Entity\ContentEntityBase->get() (Line: 49) Drupal\Core\Entity\EditorialContentEntityBase->isPublished() (Line: 22) Drupal\block_content\BlockContentAccessControlHandler->checkAccess(Object, 'view', Object) (Line: 105) Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', Object, 1) (Line: 702) Drupal\Core\Entity\ContentEntityBase->access('view', Object, 1) (Line: 177) Drupal\block_content\Plugin\Block\BlockContentBlock->blockAccess(Object) (Line: 118) Drupal\Core\Block\BlockBase->access(Object, 1) (Line: 119) Drupal\block\BlockAccessControlHandler->checkAccess(Object, 'view', Object) (Line: 105) Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', Object, 1) (Line: 362) Drupal\Core\Entity\Entity->access('view', NULL, 1) (Line: 56) Drupal\block\BlockRepository->getVisibleBlocksPerRegion(Array) (Line: 137) Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build() (Line: 259) 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) call_user_func(Array, Object, 'kernel.view', Object) (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) 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: 184) Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 121) Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 75) 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: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) </pre>
Any idea?
Thanks.
hc.
Comments
=-=
roll back to the backup you took before you updated via cpanel (I assume you mean a script in cpanel). Then upgrade via a drupal method.
Updated via Softaculous in cPanel
Hi,
I use shared web hosting and it was actually updated through Softaculous in cPanel. I submitted a ticket (to restore the data) as soon as I noticed the site was error, but there were a stupid mistake....I should have requested for a specific request - data restoration, instead of submitting a general ticket. Now it is too late that the backup point of time was after the Drupal update.
Anything I can do?
Please help.
Thanks.
hc.
No Drush on my shared hosting
I just found out that my shared hosting doesn't allow to install Drush.
Please help me. I have an established website.
hc.
Using Cpanel and with my
Using Cpanel and with my production site in /public_html/drupal8 (see caveats) I extract the tar.gz to a new directory say public_html/drupal85. Then I delete public_html/drupal8/core and vendor and the files directly under drupal8/ except for .htaccess. Then I copy the /drupal85/core and /drupal85/vendor and /drupal85 (root files but not htaccess) to public_html/drupal8. Then run update.php and run reports and verify that site is updated.
Caveats ... have a known good backup and know how to restore it yourself. Disable site before starting update. Test the process on a "mirrored" or identical site on your localhost before messing with production. Don't use any softaculous or other script.
I've done every update from 8.0 to 8.4.5 this way with no issues. That's a bunch of them. I usually wait a week or two after a new update comes out to see if any fatal issues arise. That's why I'm reading forums now and checking the issue queues under 8.5 to see if any there are any serious issues with the new release.
FWIW. In less than a half
FWIW. In less than a half hour I just ran the update from 8.4.5. to 8.5. First on my localhost system on Windows and Wampserver. Then on my hosted (InMotionhosting) cpanel based system Worked like a charm. Just remember to run update.php after replacing your files and before checking out the status report. Otherwise you'll see an error.
Many thanks to the core committers and other developers who inhabit the "other side" of this site and who do such a thorough and detailed job in creating and testing these updates.
=-=
Insure you are diff'ing .htaccess files or at least reviewing the CHANGELOG to insure .htaccess hasn't changed in any way. It has happened in the past.
robots.txt is another to leave behind if it's been customized in any way. Of course also diff'ing doesn't hurt when updating.
=-=
not generating a backup before updating/upgrading is a recipe for disaster. Discontinue relying on the hosting company to provide backups that you aren't sure will even work. Learn to backup your database and files on your own so that you can do so when you update/upgrade anything on your site.
Agree with VM. Cpanel
Agree with VM. Cpanel provides a one click back up home directory and a one click back up your database feature. No excuses to neglect it.
My silly mistake
Yeah, it was my silly mistake. I always created a backups before but this time I was too quickly to press the update button. I'll never forget about this.
hc.
Thank you
Thank you fkelly. It works like a champ!!!