Kunena 7.0.2 Released

The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Stop Forumspam not validate api key

More
7 years 7 months ago - 7 years 7 months ago #203902 by Gamer Templates
I check with my hosting the server settings. All server settings OK. We think the problem is in the Kunena file!

But i do not find any wrong code line here:
Code:
/** * Reports a user to stopforumspam.com * * @param $userid * * @return boolean * @since Kunena */ protected function report($userid) { if (!$this->config->stopforumspam_key || !$userid) { return false; } $spammer = Factory::getUser($userid); $db = Factory::getDBO(); $db->setQuery("SELECT ip FROM #__kunena_messages WHERE userid=" . $userid . " GROUP BY ip ORDER BY `time` DESC", 0, 1); $ip = $db->loadResult(); // Check if mail adress is valid before to send the report $options = new \Joomla\Registry\Registry; $transport = new \Joomla\CMS\Http\Transport\StreamTransport($options); // Create a 'stream' transport. $http = new \Joomla\CMS\Http\Http($options, $transport); $data = "username[]=" . $spammer->username . "&ip_addr[]=" . $ip . "&email[]=" . $spammer->email . "&api_key[]=" . $this->config->stopforumspam_key; $response = $http->post('https://api.stopforumspam.com/add', $data); if ($response->code == '200') { // Report accepted. There is no need to display the reason $this->app->enqueueMessage(JText::_('COM_KUNENA_STOPFORUMSPAM_REPORT_SUCCESS')); return true; } else { // Report failed or refused $reasons = array(); preg_match('/<p>.*<\/p>/', $response->body, $reasons); // Stopforumspam returns only one reason, which is reasons[0], but we need to strip out the html tags before using it $this->app->enqueueMessage(JText::sprintf('COM_KUNENA_STOPFORUMSPAM_REPORT_FAILED', strip_tags($reasons[0])), 'error'); return false; } }
Last edit: 7 years 7 months ago by Gamer Templates.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago - 7 years 6 months ago #203986 by purezen
Every spam post I have reported for last couple of weeks has failed.
It definitely appears that something has become broken in latest Kunena build.

Does this function interact with custom Kunena Templates ?
I am using an up-to-date 9themestore template.
OR
Is does this function have nothing to do with the template design you use ?

Last edit: 7 years 6 months ago by purezen.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago - 7 years 6 months ago #203987 by Gamer Templates

purezen wrote: Does this function interact with custom Kunena Templates ?
I am using an up-to-date 9themestore template.
OR
Is does this function have nothing to do with the template design you use ?


I use for testing Crypsis 3 (Kunena Template) original. Same problem! The TEMPLATE is not the problem (custom or not)!

The only thing you can do is: fopen and/or curl enabled in your php.ini (i have both enabled)
Last edit: 7 years 6 months ago by Gamer Templates.
The following user(s) said Thank You: purezen

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #203989 by purezen

templatesROYAL wrote:

purezen wrote: The only thing you can do is: fopen and/or curl enabled in your php.ini (i have both enabled)


I already have both of these enabled on the server.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #204229 by Gamer Templates
Problem still alive! Please fix this problem! Thanks...
The following user(s) said Thank You: purezen

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #204232 by purezen

templatesROYAL wrote: Problem still alive! Please fix this problem! Thanks...


I second this comment !
There is definitely a problem.
Ironically I just detected a new spam message on my forum and when I reported it, the API error occurred again.
The following user(s) said Thank You: Gamer Templates

Please Log in or Create an account to join the conversation.

Time to create page: 0.306 seconds