Title: Uncaught TypeError (nginx/PHP 7.2)
Last modified: August 16, 2018

---

# Uncaught TypeError (nginx/PHP 7.2)

 *  Resolved [purbeckpixels](https://wordpress.org/support/users/purbeckpixels/)
 * (@purbeckpixels)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-nginx/)
 * Updated one of my Roots Trellis/Bedrock sites to the latest version of the plugin
   and am getting an Uncaught TypeError that takes out the whole site:
 *     ```
       2018/08/15 21:59:07 [error] 17399#17399: *57456 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Argument 1 passed to WSAL_ViewManager::AddInstance() must be an instance of WSAL_AbstractView, instance of WSAL_Views_SetupWizard given, called in /srv/www/example.com/releases/20180811233253/web/app/plugins/wp-security-audit-log/classes/ViewManager.php on line 91 and defined in /srv/www/example.com/releases/20180811233253/web/app/plugins/wp-security-audit-log/classes/ViewManager.php:99
       Stack trace:
       #0 /srv/www/example.com/releases/20180811233253/web/app/plugins/wp-security-audit-log/classes/ViewManager.php(91): WSAL_ViewManager->AddInstance(Object(WSAL_Views_SetupWizard))
       #1 /srv/www/example.com/releases/20180811233253/web/app/plugins/wp-security-audit-log/classes/ViewManager.php(82): WSAL_ViewManager->AddFromClass('WSAL_Views_Setu...')
       #2 /srv/www/example.com/releases/20180811233253/web/app/plugins/wp-security-audit-log/classes/ViewManager.php(58): WSAL_ViewManager->AddFromFile('/srv/www/meliss...')
       #3 /" while reading response header from upstream, client: 81.2.101.211, server: example.com, request: "GET /wp/wp-admin/plugins.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm-wordpress.sock:", host: "example.com"
       ```
   
 * Had to rename the plugin folder to get the site working again. As it’s a Roots
   Trellis server it’s running nginx and PHP 7.2. Any suggestions for a fix? Thanks.
    -  This topic was modified 7 years, 9 months ago by [purbeckpixels](https://wordpress.org/support/users/purbeckpixels/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-nginx/#post-10597731)
 * Hello [@purbeckpixels](https://wordpress.org/support/users/purbeckpixels/),
 * Thank you for opening a new ticket.
 * Can you please let us know from which version of the plugin are you upgrading?
 *  Thread Starter [purbeckpixels](https://wordpress.org/support/users/purbeckpixels/)
 * (@purbeckpixels)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-nginx/#post-10598123)
 * Hello. I just did a fresh Trellis server provision and deploy of the site in 
   question (with the latest version of the plugin already installed and activated)
   and everything seems to be working fine again. Local Vagrant VM seems fine too.
   Must’ve been something to do with the update from 3.2.2.2 to 3.2.3.1. Anyway,
   all’s well again. Thanks.
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-nginx/#post-10598715)
 * Ok it seems the issue was addressed in 3.2.3.1 as the developers suggested.
 * Glad it is sorted. Please do not hesitate to get in touch in case you have any
   further queries.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError (nginx/PHP 7.2)’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-nginx/#post-10598715)
 * Status: resolved