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

Fatal error: Uncaught Error: Undefined constant "GLOB_BRACE" #19

Closed
remcotolsma opened this issue Mar 27, 2024 · 1 comment · Fixed by #20
Closed

Fatal error: Uncaught Error: Undefined constant "GLOB_BRACE" #19

remcotolsma opened this issue Mar 27, 2024 · 1 comment · Fixed by #20
Assignees

Comments

@remcotolsma
Copy link
Member

I also noticed a fatal error on the 'Scanner' page:

Fatal error: Uncaught Error: Undefined constant "GLOB_BRACE" in /var/www/html/wp-content/plugins/wp-pronamic-client/admin/virus-scanner.php:78

Stack trace:
#0 /var/www/html/wp-content/plugins/wp-pronamic-client/classes/Plugin.php(135): include()
#1 /var/www/html/wp-content/plugins/wp-pronamic-client/classes/Admin.php(378): Pronamic\WordPress\PronamicClient\Plugin->display('admin/virus-sca…')
#2 /var/www/html/wp-includes/class-wp-hook.php(324): Pronamic\WordPress\PronamicClient\Admin->page_virus_scanner('')
#3 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#4 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /var/www/html/wp-admin/admin.php(259): do_action('pronamic_page_p…')
#6 {main} thrown in /var/www/html/wp-content/plugins/wp-pronamic-client/admin/virus-scanner.php on line 78

From the docs (https://www.php.net/manual/en/function.glob.php):

Note: GLOB_BRACE is not available on some non GNU systems, like Solaris or Alpine Linux.

Originally posted by @rvdsteege in #18 (comment)

Maybe remove the 'virus scanner', i haven't used this feature in years.

@rvdsteege
Copy link
Member

I also never use it and am fine with removing it.

@remcotolsma remcotolsma self-assigned this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants