Error after the update
-
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site and notifies you with this automated email.
In this case, WordPress detected an error with your plugin: AdRotate Banner Manager.
-
Detalhes do erro
Um erro do tipo E_ERROR foi causado na linha 780 do arquivo /home/admin/domains/public_html/wp-content/plugins/adrotate/adrotate-setup.php. Mensagem de erro: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /home/admin/domains/public_html/wp-content/plugins/adrotate/adrotate-setup.php:780
Stack trace: 0 /home/admin/domains/public_html/wp-content/plugins/adrotate/adrotate-setup.php(780): fclose() 1 /home/admin/domains/public_html/wp-content/plugins/adrotate/adrotate-setup.php(494): adrotate_core_upgrade() 2 /home/admin/domains/public_html/wp-content/plugins/adrotate/adrotate-admin-functions.php(447): adrotate_finish_upgrade() 3 /home/admin/domains/public_html/wp-includes/class-wp-hook.php(341): adrotate_notifications_dashboard() 4 /home/admin/domains/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() 5 /home/admin/domains/public_html/wp-includes/plugin.php(522): WP_Hook->do_action() 6 /home/admin/domains/public_html/wp-admin/admin-header.php(313): do_action() 7 /home/admin/domains/public_html/wp-admin/edit.php(411): require_once(‘…’) 8 {main}thrown
Can the webserver/Wordpress create/write files to your filesystem? Do you know? Can you check?
The error can be ignored if the plugin works fine if the plugin works fine after loading the next dashboard page.
I don’t have access to anything inside the dashboard.
Everything is frozen.
Warning: fopen(/home/admin/domains/.com.br/public_html/wp-content/reports/index.html): Failed to open stream: No such file or directory in /home/admin/domains/.com.br/public_html/wp-content/plugins/adrotate/adrotate-setup.php on line 779
Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, false given in /home/admin/domains/.com.br/public_html/wp-content/plugins/adrotate/adrotate-setup.php:780 Stack trace: #0 /home/admin/domains/.com.br/public_html/wp-content/plugins/adrotate/adrotate-setup.php(780): fclose() #1 /home/admin/domains/.com.br/public_html/wp-content/plugins/adrotate/adrotate-setup.php(494): adrotate_core_upgrade() #2 /home/admin/domains/.com.br/public_html/wp-content/plugins/adrotate/adrotate-admin-functions.php(447): adrotate_finish_upgrade() #3 /home/admin/domains/.com.br/public_html/wp-includes/class-wp-hook.php(341): adrotate_notifications_dashboard() #4 /home/admin/domains/.com.br/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #5 /home/admin/domains/.com.br/public_html/wp-includes/plugin.php(522): WP_Hook->do_action() #6 /home/admin/domains/.com.br/public_html/wp-admin/admin-header.php(313): do_action() #7 /home/admin/domains/.com.br/public_html/wp-admin/index.php(137): require_once(‘…’) #8 {main} thrown in /home/admin/domains/.com.br/public_html/wp-content/plugins/adrotate/adrotate-setup.php on line 780
As in the whole dashboard is stuck? (re)loading the dashboard does not work?
If so, look if the /wp-content/reports/ folder exists. And if it does if there is an index.html file in there.
You can check this with any FTP client, or through your hosting dashboard’s file manager.If the folder and/or file doesn’t exist, please create it. The html file can be empty, it just needs to exist.
That’s what the fclose() thing tries to do, to create that file.Aha good 🙂
The empty file prevents people from easily loading/listing export files in the folder in a browser.I’ll review the update process. I didn’t see this error when testing on my site 🙁
The issue seems to be indeed write permissions. There is an uncaught error resulting in the dashboard not loading once one updates. I was able to fix my issue by just creating the empty file and the relevant directory.
[12-Dec-2025 15:27:47 UTC] PHP Warning: fopen(/var/www/REDACTED_SITE/htdocs/wp-content/reports/index.html): Failed to open stream: No such file or directory in /var/www/REDACTED_SITE/htdocs/wp-content/plugins/adrotate/adrotate-setup.php on line 779
[12-Dec-2025 15:27:47 UTC] PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, false given in /var/www/REDACTED_SITE/htdocs/wp-content/plugins/adrotate/adrotate-setup.php:780
Stack trace: 0 /var/www/REDACTED_SITE/htdocs/wp-content/plugins/adrotate/adrotate-setup.php(780): fclose() 1 /var/www/REDACTED_SITE/htdocs/wp-content/plugins/adrotate/adrotate-setup.php(494): adrotate_core_upgrade() 2 /var/www/REDACTED_SITE/htdocs/wp-content/plugins/adrotate/adrotate-admin-functions.php(447): adrotate_finish_upgrade() 3 /var/www/REDACTED_SITE/htdocs/wp-includes/class-wp-hook.php(341): adrotate_notifications_dashboard() 4 /var/www/REDACTED_SITE/htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() 5 /var/www/REDACTED_SITE/htdocs/wp-includes/plugin.php(522): WP_Hook->do_action() 6 /var/www/REDACTED_SITE/htdocs/wp-admin/admin-header.php(313): do_action() 7 /var/www/REDACTED_SITE/htdocs/wp-admin/update-core.php(1064): require_once(‘…’) 8 {main}thrown in /var/www/REDACTED_SITE/htdocs/wp-content/plugins/adrotate/adrotate-setup.php on line 780
[12-Dec-2025 15:27:49 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/REDACTED_SITE/htdocs/wp-includes/functions.php on line 7374
[12-Dec-2025 15:27:49 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/REDACTED_SITE/htdocs/wp-includes/functions.php on line 2196-
This reply was modified 4 months, 1 week ago by
garikaib.
Pretty much yes. I’ve updated the update routine to add the folder first if it’s missing.
Same error here after auto update. I manually downloaded the latest version of the plugin and uploaded it to the server after renaming the current version just in case. That fixed the error as it looks like Arnan updated it to fix the bug
-
This reply was modified 4 months, 1 week ago by
You must be logged in to reply to this topic.