drz
By:
drz

I created a new content type for a drupal domain and got an nginx error. The error message is below. How do I fix it?

November 6, 2017 140 views
Drupal Nginx Ubuntu

I created a new content type for www.miridians.org
and suddenly got an nginx. I was able to remove the content type, but the error peristed. I went to /var/nginx/error.log and got this message. How do I fix the error

" at /var/www/html/drupal/core/lib/Drupal/Core/Database/Conn" while reading response header from upstream, client: 108.14.88.246, server: , request: "GET /admin/content HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.miridians.org", referrer: "http://www.miridians.org/admin/structure/types"
2017/11/06 03:51:10 [error] 935#0: *34356 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'revision.revisionuser' in 'field list': SELECT revision.vid AS vid, revision.langcode AS langcode, revision.revisionuser AS revisionuser, revision.revisioncreated AS revisioncreated, revision.revisionlogmessage AS revisionlogmessage, base.nid AS nid, base.type AS type, base.uuid AS uuid, CASE base.vid WHEN revision.vid THEN 1 ELSE 0 END AS isDefaultRevision
FROM
{node} base
INNER JOIN {node
revision} revision ON revision.vid = base.vid
WHERE base.nid IN (:dbconditionplaceholder0); Array
(
[:db
conditionplaceholder0] => 1
)
" at /var/www/html/drupal/core/lib/Drupal/Core/Database/Connection.php line 686" while reading response header from upstream, client: 108.14.88.246, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.miridians.org"

2 Answers

The root cause of your error appears to be that the code expects a database table column that is not actually in your database. Did you update your code (either core or contrib modules) recently? You may need to invoke update.php.

Try pointing your browser at [your site]/update.php and see if any updates need to be performed.

If that is not the problem, is there anything in your status report? (Navigate to Reports -> Status Report or point your browser at /admin/reports/status).

  • Thanx. That solved the problem, but I am confused. The particular site was one of several on a multisite system. It was the only one with the problem. Unexpected.

On a typical multisite system, each individual site has its own database. Did you update the others and forget to update this one?

Or, if you haven't updated the others, perhaps you just didn't trigger the issue on any of the other sites yet. Regardless, go update them now if you haven't!

  • I used Drush to update the whole multisite.
    I will update them all just in case. Thanx for the advice.

Have another answer? Share your knowledge.