Notifications
Clear all

[Solved] Users can't post

3 Posts
2 Users
1 Likes
1,832 Views
(@le-tyran)
Member Customer
Joined: 6 years ago
Posts: 2
Topic starter  

Hello,

First, here is my website. (Which currently runs on Wordpress 4.9)

I just installed this plugin and since I could post with my admin account I thought it worked like a charm, but then I tried to post with a normal user account and I get this error :

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
 
I tried to disable other plugins but it doesn't seem to change anything.

   
Quote
(@le-tyran)
Member Customer
Joined: 6 years ago
Posts: 2
Topic starter  

Okay, it seems that this :

function restrict_access_admin(){
if ( current_user_can('subscriber') ) {
wp_redirect( home_url() );
exit();
}
}

In my function.php file was the culprit.

Everything works fine since I removed it : problem solved.


   
Tom reacted
ReplyQuote
 Stef
(@stef)
New Member
Joined: 6 years ago
Posts: 1
 

I think this error can be caused by a lot of things. In my case I installed a plugin called "The GDPR framework" by codelight and that one conflicted with wpdiscuz. I deactivated that one and everything was ok again.


   
ReplyQuote
Share:
Scroll to top