<?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>
									Attachment uploads error for non admin members - wpForo Advanced Attachments				            </title>
            <link>https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 08 Aug 2026 21:42:18 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Attachment uploads error for non admin members</title>
                        <link>https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/#post-37245</link>
                        <pubDate>Thu, 06 Jul 2023 13:58:57 +0000</pubDate>
                        <description><![CDATA[To fix add an additional check to ensure that the redirection is only performed if it&#039;s an admin page and not an AJAX request. This allows the attachment uploads in wpForo to proceed.]]></description>
                        <content:encoded><![CDATA[<p><span>To fix add an additional check to ensure that the redirection is only performed if it's an admin page and not an AJAX request. This allows the attachment uploads in wpForo to proceed.</span></p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-advanced-attachments/">wpForo Advanced Attachments</category>                        <dc:creator>havenwebmanagement</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/#post-37245</guid>
                    </item>
				                    <item>
                        <title>RE: Attachment uploads error for non admin members</title>
                        <link>https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/#post-37243</link>
                        <pubDate>Thu, 06 Jul 2023 13:28:15 +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://gvectors.com/forum/wpforo-advanced-attachments/">wpForo Advanced Attachments</category>                        <dc:creator>havenwebmanagement</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/#post-37243</guid>
                    </item>
				                    <item>
                        <title>Attachment uploads error for non admin members</title>
                        <link>https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/#post-37242</link>
                        <pubDate>Thu, 06 Jul 2023 13:06:42 +0000</pubDate>
                        <description><![CDATA[Error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON
 
This is the error when trying to upload files. Works okay for Admin but all other members unable to upl...]]></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</div>
<div> </div>
<div>This is the error when trying to upload files. Works okay for Admin but all other members unable to upload.
<p> </p>
6881
 </div>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-advanced-attachments/">wpForo Advanced Attachments</category>                        <dc:creator>havenwebmanagement</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-advanced-attachments/attachment-uploads-error-for-non-admin-members/#post-37242</guid>
                    </item>
							        </channel>
        </rss>
		