Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: PHP Fatal error when creating poll using PHP 8.2+ #5271

Closed
Moc opened this issue Jun 4, 2024 · 0 comments
Closed

[Bug]: PHP Fatal error when creating poll using PHP 8.2+ #5271

Moc opened this issue Jun 4, 2024 · 0 comments
Labels
plugin: poll type: bug A problem that should not be happening
Milestone

Comments

@Moc
Copy link
Member

Moc commented Jun 4, 2024

What e107 version are you using?

Latest Github version (just updated)

Bug description

When creating a poll, a PHP Fatal error is thrown:

Fatal error: Uncaught Error: Call to a member function getController() on null in ...\form_handler.php:4542 
Stack trace: 
#0 ...\e107_handlers\form_handler.php(4738): e_form->columnSelector(Array, Array) 
#1 ...\e107_plugins\poll\admin_config.php(192): e_form->thead(Array, Array) 
#2 ...\e107_plugins\poll\admin_config.php(101): poll_list() #3 {main} thrown in ...\form_handler.php on line 4542

How to reproduce

  1. Install Poll plugin
  2. Create poll by entering fields and hitting 'Preview'
  3. Hit 'create' button

Expected behavior

No PHP error and poll to be created

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

PHP 8.2 and 8.3

@Moc Moc added type: bug A problem that should not be happening plugin: poll labels Jun 4, 2024
@CaMer0n CaMer0n added this to the e107 2.4.0 milestone Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: poll type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

2 participants