<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Write access, PHP 8 warnings and a solution - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 13 Sep 2026 02:07:03 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19526</link>
                        <pubDate>Wed, 22 Feb 2023 05:03:12 +0000</pubDate>
                        <description><![CDATA[@asti Same as before.We&#039;re still seeing these same errors with your latest plugin release.
PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Failed to open directory...]]></description>
                        <content:encoded><![CDATA[@asti Same as before.<br /><br />We're still seeing these same errors with your latest plugin release.<br />
<pre contenteditable="false">PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Failed to open directory: "Automattic\VIP\Files\VIP_Filesystem_Stream_Wrapper::dir_opendir" call failed
wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1679

PHP message: Warning: scandir(): (errno 13): Permission denied
wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1679</pre>
<br />Let me know if you want to see our patched files again.]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>aohagan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19526</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19513</link>
                        <pubDate>Tue, 21 Feb 2023 11:48:20 +0000</pubDate>
                        <description><![CDATA[Could you please let us know if the issue is fixed in the newest version of the wpDiscuz (v. 7.5.3)?]]></description>
                        <content:encoded><![CDATA[<p>Could you please let us know if the issue is fixed in the newest version of the wpDiscuz (v. 7.5.3)? </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19513</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19441</link>
                        <pubDate>Sat, 11 Feb 2023 08:35:12 +0000</pubDate>
                        <description><![CDATA[ok @aohagan,
Then use your solution. The developers will also try to implement the best solution in future versions.]]></description>
                        <content:encoded><![CDATA[<p>ok @aohagan,</p>
<p>Then use your solution. The developers will also try to implement the best solution in future versions. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19441</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19427</link>
                        <pubDate>Thu, 09 Feb 2023 10:37:29 +0000</pubDate>
                        <description><![CDATA[Thanks again @asti - we ran the code you provided, and it it has returned the same 2 warning errors.
PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Failed to open...]]></description>
                        <content:encoded><![CDATA[Thanks again @asti - we ran the code you provided, and it it has returned the same 2 warning errors.
<pre contenteditable="false">PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Failed to open directory: "Automattic\VIP\Files\VIP_Filesystem_Stream_Wrapper::dir_opendir" call failed
wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1679

PHP message: Warning: scandir(): (errno 13): Permission denied
wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1679</pre>
<p><span>I'd suggest for testing purposes changing the uploads folder to not writeable so you can reproduce what we're seeing here.</span></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>aohagan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19427</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19424</link>
                        <pubDate>Thu, 09 Feb 2023 08:09:16 +0000</pubDate>
                        <description><![CDATA[Thank you for checking @aohagan,
Could you please check this one as well? 

Please keep us informed.]]></description>
                        <content:encoded><![CDATA[<p>Thank you for checking @aohagan,</p>
<p>Could you please check this one as well? </p>
3155
<p>Please keep us informed. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19424</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19420</link>
                        <pubDate>Wed, 08 Feb 2023 19:38:31 +0000</pubDate>
                        <description><![CDATA[Thanks for the response Asti.We ran the code you provided, and it it has returned 2 of the 3 warning errors. 
PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Faile...]]></description>
                        <content:encoded><![CDATA[<p>Thanks for the response Asti.<br /><br />We ran the code you provided, and it it has returned 2 of the 3 warning errors. <br /><span></span></p>
<pre contenteditable="false">PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Failed to open directory: &amp;quot;Automattic\VIP\Files\VIP_Filesystem_Stream_Wrapper::dir_opendir&amp;quot; call failed in /var/www/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 1675  [wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1675 scandir(), wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php:349 wpdFormAttr\Form-&gt;getThemes(), wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:1255 WpdiscuzHelper-&gt;enqueueWpDiscuzStyle(), wp-includes/class-wp-hook.php:308 WpdiscuzCore-&gt;frontendFiles(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/script-loader.php:2180 do_action('wp_enqueue_scripts'), wp-includes/class-wp-hook.php:308 wp_enqueue_scripts(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/general-template.php:3043 do_...

PHP message: Warning: scandir(): (errno 13): Permission denied in /var/www/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 1675  [wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1675 scandir(), wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php:349 wpdFormAttr\Form-&gt;getThemes(), wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:1255 WpdiscuzHelper-&gt;enqueueWpDiscuzStyle(), wp-includes/class-wp-hook.php:308 WpdiscuzCore-&gt;frontendFiles(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/script-loader.php:2180 do_action('wp_enqueue_scripts'), wp-includes/class-wp-hook.php:308 wp_enqueue_scripts(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/general-template.php:3043 do_action('wp_head'), wp-content/themes/oursite/header.php:58 wp_head(), wp-includes/template.php:783 require_once('wp-content/th...</pre>
<p>We're happy to test anything you provide, but will continue with our solution for now given that it has been running successfully on our production sites for a number of days without incident.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>aohagan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19420</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19404</link>
                        <pubDate>Wed, 08 Feb 2023 08:35:15 +0000</pubDate>
                        <description><![CDATA[@aohagan,
Please revert back the customizations you&#039;re making and use this one:

The changes you&#039;ve done are not a good solution.]]></description>
                        <content:encoded><![CDATA[<p><span>@aohagan,</span></p>
<p>Please revert back the customizations you're making and use this one:</p>
3149
<p>The changes you've done are not a good solution. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19404</guid>
                    </item>
				                    <item>
                        <title>RE: Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19402</link>
                        <pubDate>Wed, 08 Feb 2023 08:25:47 +0000</pubDate>
                        <description><![CDATA[Thank you aohagan,
I&#039;ve asked the developers to check the issue.]]></description>
                        <content:encoded><![CDATA[<p>Thank you aohagan,</p>
<p>I've asked the developers to check the issue. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19402</guid>
                    </item>
				                    <item>
                        <title>Write access, PHP 8 warnings and a solution</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19386</link>
                        <pubDate>Tue, 07 Feb 2023 06:07:51 +0000</pubDate>
                        <description><![CDATA[We are hosted on WordPress VIP, and since updating to PHP 8.0 our debug logs are full of the below errors:
PHP message: Warning: foreach() argument must be of type array|object, bool given ...]]></description>
                        <content:encoded><![CDATA[<p>We are hosted on WordPress VIP, and since updating to PHP 8.0 our debug logs are full of the below errors:</p>
<pre contenteditable="false">PHP message: Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 1678  [wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php:349 wpdFormAttr\Form-&gt;getThemes(), wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:1256 WpdiscuzHelper-&gt;enqueueWpDiscuzStyle(), wp-includes/class-wp-hook.php:308 WpdiscuzCore-&gt;frontendFiles(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/script-loader.php:2180 do_action('wp_enqueue_scripts'), wp-includes/class-wp-hook.php:308 wp_enqueue_scripts(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/general-template.php:3043 do_action('wp_head'), wp-content/themes/oursite/header.php:58 wp_head(), wp-includes/template.php:783 require_once('wp-content/themes/oursite/header.ph...

PHP message: Warning: scandir(vip://wp-content/uploads/wpdiscuz/themes/): Failed to open directory: &amp;quot;Automattic\VIP\Files\VIP_Filesystem_Stream_Wrapper::dir_opendir&amp;quot; call failed in /var/www/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 1675  [wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1675 scandir(), wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php:349 wpdFormAttr\Form-&gt;getThemes(), wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:1255 WpdiscuzHelper-&gt;enqueueWpDiscuzStyle(), wp-includes/class-wp-hook.php:308 WpdiscuzCore-&gt;frontendFiles(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/script-loader.php:2180 do_action('wp_enqueue_scripts'), wp-includes/class-wp-hook.php:308 wp_enqueue_scripts(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/general-template.php:3043 do_...

PHP message: Warning: scandir(): (errno 13): Permission denied in /var/www/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 1675  [wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php:1675 scandir(), wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php:349 wpdFormAttr\Form-&gt;getThemes(), wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:1255 WpdiscuzHelper-&gt;enqueueWpDiscuzStyle(), wp-includes/class-wp-hook.php:308 WpdiscuzCore-&gt;frontendFiles(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/script-loader.php:2180 do_action('wp_enqueue_scripts'), wp-includes/class-wp-hook.php:308 wp_enqueue_scripts(), wp-includes/class-wp-hook.php:332 WP_Hook-&gt;apply_filters(), wp-includes/plugin.php:517 WP_Hook-&gt;do_action(), wp-includes/general-template.php:3043 do_action('wp_head'), wp-content/themes/oursite/header.php:58 wp_head(), wp-includes/template.php:783 require_once('wp-content/th...</pre>
<p>We did some digging and worked out what the issue was:</p>
<p>WordPress VIP does not allow upload folder write access to plugins, hence the issues above.</p>
<p><br />We had to modify the code in one of your files, but this resolved the issue for us. In short, we also check not only that the folder exists, but that the folder has write_permissions as well.</p>
<p>I thought I'd share given that we can't be the only ones affected by this. This replaces the file in forms/wpdFormAttr/</p>
3148]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>aohagan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/write-access-php-8-warnings-and-a-solution/#post-19386</guid>
                    </item>
							        </channel>
        </rss>
		