Skip to content

Fatal Error on Activate Plugin PHP 8.2.25 #1650

@marcinkrzeminski

Description

@marcinkrzeminski

Bug Report

Link to the support forum: https://wordpress.org/support/topic/fatal-error-on-activate-plugin-php-8-2-25/

Expected Behavior

I'm able to activate the plugin when running on PHP 8.2.25

Describe what should happen.

Actual Behavior

Describe what actually happens.

Just sent a site live, installed Stream and it went straight to ‘activate’ (so must have already been installed even though it was not showing). On activate I get ‘Plugin could not be activated because it triggered a fatal error’. I have deleted plugin and reinstalled same deal.

Here’s the log (actual domain replaced with the word ‘site’ in these paths for privacy)

AH01071: Got error ‘PHP message: PHP Warning: Undefined global variable $wp_stream in [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/stream.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream&subscriptionId=25&file=stream.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25) on line 67; PHP message: PHP Warning: Attempt to read property “install” on null in [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/includes/db-updates.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fincludes&subscriptionId=25&file=db-updates.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25) on line 20; PHP message: PHP Fatal error: Uncaught Error: Call to a member function install() on null in [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/includes/db-updates.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fincludes&subscriptionId=25&file=db-updates.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25):20\nStack trace:\n#0 [internal function]: wp_stream_update_auto_308()\n#1 [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/classes/class-install.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fclasses&subscriptionId=25&file=class-install.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25)(340): call_user_func()\n#2 [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/classes/class-install.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fclasses&subscriptionId=25&file=class-install.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25)(111): WP_Stream\\Install->update()\n#3 [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/classes/class-install.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fclasses&subscriptionId=25&file=class-install.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25)(77): WP_Stream\\Install->check()\n#4 [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/classes/class-db-driver-wpdb.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fclasses&subscriptionId=25&file=class-db-driver-wpdb.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25)(166): WP_Stream\\Install->__construct()\n#5 [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/classes/class-plugin.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream%2Fclasses&subscriptionId=25&file=class-plugin.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25)(163): WP_Stream\\DB_Driver_WPDB->setup_storage()\n#6 [/var/www/vhosts/site/httpdocs/wp-content/plugins/stream/stream.php](https://daphne.creativewebhosting.com.au:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fstream&subscriptionId=25&file=stream.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F25)(42): WP_Stream\\Plugin->__construct()\n#…’, referer: https://site/wp-admin/plugins.php

Steps to Reproduce the Problem

Screenshots

Drag and drop screenshots in this area that help illustrate the problem.

System Information

  • Stream plugin version:
  • WordPress version:
  • PHP version 8.2.25
  • Browser:
  • Computer operating system:

Metadata

Metadata

Labels

bugcompatibilityPHP or WordPress version compatibility related issuesupport forumFrom the WP.org plugin support forum

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions