Warning on Cloudflare data save
-
Hi Nico Martin and The Team
Excellent work. I just loved its UI, the minimalism, and the functionality it’s providing without touching on a single line of code.
Just found a single issue while setting up data:
I’s activating the Push Notification. While saving data from Cloudflare, after hitting the save button, I’s getting the following warning:Warning: Invalid argument supplied for foreach() in …\wp-content\plugins\progressive-wp\Classes\class-pushpost.php on line 93
Inspected the code. I guess there’s no data on a fresh install under the option key
pwp_post_types
and without checking for data, the foreach loop is actually blind. We can check for data before the foreach, can solve the issue, I guess.BTW, on the saving the changes after the credentials are there, the warning dissolves.
Machine: Windows 7 Ultimate
Server: Laragon (PHP 7.1.7, MySQL 5.7.19)
WP: 4.9.8
PWA: 2.0.1
DEBUG: true
Multisite: false
- The topic ‘Warning on Cloudflare data save’ is closed to new replies.