<?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>
									File Attachment Error for non admin Members - Bug Reports - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/general-forums-bug-reports/file-attachment-error-for-non-admin-members/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 06 Oct 2026 00:48:34 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: File Attachment Error for non admin Members</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/file-attachment-error-for-non-admin-members/#post-103798</link>
                        <pubDate>Thu, 06 Jul 2023 13:14:01 +0000</pubDate>
                        <description><![CDATA[Found the issue, this code was running in snippits:
function restrict_dashboard_access() {if (is_user_logged_in()) {$current_user = wp_get_current_user();$user_roles = $current_user-&gt;rol...]]></description>
                        <content:encoded><![CDATA[<p>Found the issue, this code was running in snippits:</p>
<p>function restrict_dashboard_access() {<br />if (is_user_logged_in()) {<br />$current_user = wp_get_current_user();<br />$user_roles = $current_user-&gt;roles;<br />if (!in_array('administrator', $user_roles)) {<br />wp_redirect(home_url());<br />exit;<br />}<br />}<br />}<br />add_action('admin_init', 'restrict_dashboard_access');</p>
<p> </p>
<p>This was stopping the upload feature.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>dcclow</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/file-attachment-error-for-non-admin-members/#post-103798</guid>
                    </item>
				                    <item>
                        <title>File Attachment Error for non admin Members</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/file-attachment-error-for-non-admin-members/#post-103797</link>
                        <pubDate>Thu, 06 Jul 2023 12:59:23 +0000</pubDate>
                        <description><![CDATA[Error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
 
Non admin members are unable to upload attachments using the paid addon. This error shows when try...]]></description>
                        <content:encoded><![CDATA[<div class="wpfa-dialog-item-col wpfa-item-col-filename wpfa-hide-for-small"><span class="wpfa-error">Error</span> SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data</div>
<div> </div>
<div>Non admin members are unable to upload attachments using the paid addon. This error shows when trying to add files But works fine for admin.</div>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1688648363-error.jpg" target="_blank" title="error.jpg"><i class="fas fa-paperclip"></i>&nbsp;error.jpg</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>dcclow</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/file-attachment-error-for-non-admin-members/#post-103797</guid>
                    </item>
							        </channel>
        </rss>
		