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

Fix set $content optionnal #895

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

Olwyne
Copy link

@Olwyne Olwyne commented Feb 23, 2023

This fix the following fatal error appearing on all pages of the plugin :

Fatal error: Uncaught TypeError: WP2Static\WordPressAdmin::wp2staticAdminFooterText(): Argument #1 ($content) must be of type string, null given, called in /var/www/html/wp-includes/class-wp-hook.php on line 308 and defined in /var/www/html/wp-content/plugins/wp2static/src/WordPressAdmin.php:427 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(308): WP2Static\WordPressAdmin::wp2staticAdminFooterText(NULL) #1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #2 /var/www/html/wp-admin/admin-footer.php(48): apply_filters('admin_footer_te...', '<span id="foote...') #3 /var/www/html/wp-admin/admin.php(297): require_once('/var/www/html/w...') #4 {main} thrown in /var/www/html/wp-content/plugins/wp2static/src/WordPressAdmin.php on line 427

This fix the following fatal error appearing on all pages of the plugin :

```
Fatal error: Uncaught TypeError: WP2Static\WordPressAdmin::wp2staticAdminFooterText(): Argument elementor#1 ($content) must be of type string, null given, called in /var/www/html/wp-includes/class-wp-hook.php on line 308 and defined in /var/www/html/wp-content/plugins/wp2static/src/WordPressAdmin.php:427 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(308): WP2Static\WordPressAdmin::wp2staticAdminFooterText(NULL) elementor#1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) elementor#2 /var/www/html/wp-admin/admin-footer.php(48): apply_filters('admin_footer_te...', '<span id="foote...') elementor#3 /var/www/html/wp-admin/admin.php(297): require_once('/var/www/html/w...') elementor#4 {main} thrown in /var/www/html/wp-content/plugins/wp2static/src/WordPressAdmin.php on line 427

```
@stellarpower
Copy link

Thank you for this!!

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 this pull request may close these issues.

2 participants