• Resolved mrfranta

    (@mrfranta)


    Hi, I had to deactivate all plugins because of some “bug” in some plugin. Then when I tried to activate this plugin again, i got:
    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 C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\classes\ViewManager.php on line 134 and defined in C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\classes\ViewManager.php:142 Stack trace: #0 C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\classes\ViewManager.php(134): WSAL_ViewManager->AddInstance(Object(WSAL_Views_SetupWizard)) #1 C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\classes\ViewManager.php(125): WSAL_ViewManager->AddFromClass('WSAL_Views_Setu...') #2 C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\classes\ViewManager.php(93): WSAL_ViewManager->AddFromFile('C:\\inetpub\\weby...') #3 C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\wp-security-audit-log.php(190): WSAL_ViewManager->__construct(Object( in C:\inetpub\weby\jiskraplavani\wp-content\plugins\wp-security-audit-log\classes\ViewManager.php on line 142

    I cannot fix it even with installation and uninstallation. Any idea?

    • This topic was modified 6 years, 3 months ago by mrfranta.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter mrfranta

    (@mrfranta)

    Works for me also. Thanks for support ??

    Plugin Support robertabela

    (@robert681)

    Glad all is solved. Thank you very much for reporting the issue and for the cooperation.

    May I ask you to spare a minute to rate our plugin on the repo please: https://en-gb.www.ads-software.com/plugins/wp-security-audit-log/#reviews ?

    Thank you and do not hesitate to get in touch in case of further queries.

    Just updated one of my Roots Trellis/Bedrock sites to the latest version of the plugin and am getting the same error:

    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, MariaDB and PHP 7.2. Any suggestions for a fix? Thanks.

    Plugin Support robertabela

    (@robert681)

    Hello @purbeckpixels,

    Please open a separate support ticket for your issue. The problem in this thread was related to Windows server, which is totally different than yours.

    Thank you for your understanding.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Uncaught TypeError’ is closed to new replies.