Poll Test

The error message indicates that the issue is in the TotalPoll plugin, specifically in the TurnstileField.php file at line 9. The main problem is:

“Fatal error: Uncaught Error: Cannot call constructor”

Possible Causes:

  1. Incorrect Constructor Definition: The TurnstileField class might be trying to call a parent constructor incorrectly (e.g., parent::__construct() when the parent does not have a constructor).
  2. Class Misconfiguration: The class TurnstileField might not be extending another class properly, or it could be missing a necessary dependency.
  3. Plugin Version Incompatibility: The TotalPoll plugin might not be fully compatible with your version of WordPress or PHP.
  4. Corrupted Plugin Files: A corrupted or incomplete plugin installation could lead to this issue.

Steps to Fix:

TotalPoll might require PHP 7.4 or later.

Check the Constructor in TurnstileField.php:

Open the file: /home/kpopment.com/public_html/wp-content/plugins/totalpolls/src/Form/Fields/TurnstileField.php

Look at line 9 and verify if it’s trying to call a constructor incorrectly.

If it’s calling parent::__construct(), check if the parent class actually has a constructor.

Disable and Reinstall the Plugin:

Go to wp-content/plugins/ via FTP or File Manager.

Rename the totalpolls folder (e.g., totalpolls-disabled) to deactivate the plugin.

Check if the site loads without errors.

If the site works, download and reinstall the latest version of the TotalPoll plugin.

Check for PHP Compatibility:

Ensure you’re using a supported PHP version. You can check this in your hosting panel.