Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Users can't post

3 Posts
2 Users
1 Reactions
2,683 Views
(@le-tyran)
Member Customer
Joined: 8 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#1762]

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: 8 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 8 years ago
Posts: 1
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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