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

Check array indicies are set before using #278

Merged
merged 5 commits into from Oct 2, 2020
Merged

Check array indicies are set before using #278

merged 5 commits into from Oct 2, 2020

Conversation

mdmower
Copy link
Contributor

@mdmower mdmower commented Sep 14, 2020

Fix errors reported by PHP 7.4:

Trying to access array offset on value of type null in [/path/to]/wp-content/plugins/cloudflare/src/WordPress/Proxy.php on line 62

Undefined offset: 0 in [/path/to]/wp-content/plugins/cloudflare/src/WordPress/ClientActions.php on line 87

The first error repeats on plugin settings page views. The second error
occurs on initial activation of plugin.

Fixes https://wordpress.org/support/topic/no-support-for-php-7-4-and-newest-wordpress/
Fixes #271
Fixes #274

Fix errors reported by PHP 7.4:

- Trying to access array offset on value of type null in [/path/to]/wp-content/plugins/cloudflare/src/WordPress/Proxy.php on line 62

- Undefined offset: 0 in [/path/to]/wp-content/plugins/cloudflare/src/WordPress/ClientActions.php on line 87

The first error repeats on plugin settings page views. The second error
occurs on initial activation of plugin.
@mdmower
Copy link
Contributor Author

mdmower commented Sep 14, 2020

These are the only errors found in my logs with PHP 7.4.3 and WordPress 5.5.1 on Ubuntu 20.04 running nginx 1.18.0. Plugin seems to work correctly.

Copy link
Contributor

@patryk patryk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@patryk patryk merged commit 8b723da into cloudflare:master Oct 2, 2020
@mdmower mdmower deleted the patch-0 branch October 2, 2020 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants