By Lynn McColley on Thursday, 16 June 2022
Posted in General Issues
Replies 1
Likes 0
Views 419
Votes 0
When a registered user clicks the "Join the Discussion" button, writes a post, and clicks the "Reply" button, we get an error: "Invalid category specified. Please select a category for the post".

We're getting this error on the main homepage and when replying to a post in a category.
Hi Lynn,

After investigating a long check, the reason why you encounter this issue is that your site was forced to load the domain with WWW prefix but you hardcoded this domain "https://checkyourbaggage.net" (without WWW prefix) in your configuration.php file so caused the ajax URL request to https://checkyourbaggage.net/?option=com_easydiscuss&view=post&layout=reply&format=ajax&tmpl=component&ba53e5683c8764897b3cf27de0cdc89f=1 without WWW prefix so it redirects to this ajax request URL with WWW prefix https://www.checkyourbaggage.net/?option=com_easydiscuss&view=post&layout=reply&format=ajax&tmpl=component&ba53e5683c8764897b3cf27de0cdc89f=1 then the reply process failure.

To fix this, I've helped you remove this hardcoded domain (without WWW prefix) from your configuration.php file, it should work fine now, can you give it a check?

Original code:

public $live_site = 'https://checkyourbaggage.net';


Replace with:

public $live_site = '';
·
Thursday, 16 June 2022 15:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post