Osclass Support Forums

Osclass plugin support => Spam Solution Plugin => Topic started by: emmazz on February 17, 2016, 09:00:50 AM

Title: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 09:00:50 AM
installed the plugin and nothing on duplicate section.

but other units on here. ( antibot, banwords and badwords work )  but duplicate section is empty
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 09:13:46 AM
@emmazz
Please check your error log and post it there.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 10:16:03 AM
[17-Feb-2016 14:43:15 Asia/Colombo] PHP Notice:  Undefined index: 132 in /XXXXXXXXXXXX/oc-content/themes/zara/inc.category.php on line 73

[17-Feb-2016 14:43:16 Asia/Colombo] PHP Notice:  Plugin languages is missing the index.php file /XXXXXXXXXXXX/oc-content/plugins/languages/index.php in /XXXXXXXXXXXX/oc-includes/osclass/classes/Plugins.php on line 97

[17-Feb-2016 14:43:18 Asia/Colombo] PHP Notice:  Undefined index: 132 in /XXXXXXXXXXXX/pahasu/oc-content/themes/zara/inc.category.php on line 73

[17-Feb-2016 14:43:31 Asia/Colombo] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 78381224 bytes) in /XXXXXXXXXXXX/oc-content/plugins/spam_solution/admin/duplicate.php on line 171

[17-Feb-2016 14:43:32 Asia/Colombo] PHP Notice:  Undefined index: 132 in /XXXXXXXXXXXX/oc-content/themes/zara/inc.category.php on line 73
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 11:31:10 AM
@emmazz
Problem is there:
Quote
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 78381224 bytes) in /XXXXXXXXXXXX/oc-content/plugins/spam_solution/admin/duplicate.php on line 171

You have probably set to show too many duplicates on 1 site.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 12:49:23 PM
that mean ?

Please explain
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 01:04:23 PM
@emmazz
Set "Listings shown on 1 page - pagination" to lower number, i.e. 20.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 02:09:20 PM
but i haven't that option. that's why i said : duplicate page is not loading. only empty unit
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 02:21:42 PM
@emmazz
Do you have latest version of plugin? If you open this tab, no actions are performed and therefore memory should not be reached.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 02:29:01 PM
i bought it today,   Version:2.1.3 | By Michal Brezak | Plugins Site
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 02:44:44 PM
@emmazz
Reason is simple, you have 15k listings, but only 128MB of memory.
With this memory it is not even possible to count all listings in front end.

Try to go to this file:
/oc-content/plugins/spam_solution/model/ModelSpamSolution.php

Find code:
Code: [Select]

public function countItems() {
  $this->dao->select('COUNT(*) total_count');
  $this->dao->from( $this->getTable_Item() );

  $result = $this->dao->get();
           
  if( !$result ) { return array(); }
           
  return $result->row();
}

replace to:
Code: [Select]
public function countItems() {
  $this->dao->select('COUNT(*) total_count');
  $this->dao->from( $this->getTable_Item() );
  $this->dao->limit( 1000 );

  $result = $this->dao->get();
           
  if( !$result ) { return array(); }
           
  return $result->row();
}
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 03:42:48 PM
can you please suggest any hosting service for me ? or vps service
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 03:44:58 PM
i did it, but still not fixed
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 03:57:30 PM
@emmazz
Send me login to your FTP.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 04:02:59 PM
check your mail
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 04:19:10 PM
@emmazz
Fixed, added limit function to function that get all items.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 04:29:24 PM
Okay :) Thanks
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 17, 2016, 09:20:53 PM
once again same issue
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 17, 2016, 09:38:27 PM
@emmazz
Fixed. You should increase maximum allowed memory size, otherwise you will not be able to check for duplicates that already exists.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: emmazz on February 18, 2016, 04:08:38 PM
is this duplicate checker with with title only ? or with description ?

because i have same titled ad with multiple description ( multiple persons ads )
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on February 19, 2016, 07:52:12 AM
@emmazz
Both, title & description are compared, but only on user level.
This means that you can have 2 identical listings from different users.
Title: Re: installed the plugin and nothing on duplicate section.
Post by: Tango on January 20, 2017, 11:37:38 AM
Quote from: frosticek
@emmazz
Both, title & description are compared, but only on user level.
This means that you can have 2 identical listings from different users.
Is the duplicate checking available only for logged in users?
As I'm posting anonymously, identical (title, text, email, category etc.) listings and they aren't marked as duplicate/spam.

Edit: Also tested with a logged in user and it still doesn't work. I can post as many identical listings as I want.

Also, 'Refresh listings and show duplicates' returns 'No duplicates found on this page.'

What could be the issue?

Testing on localhost: PHP 5.6.25 - Memory 128mb, Apache 2.4.23, MySQL 5.6.32, Osclass 3.7.1, Mcfly Theme 1.6.0 (on/off), HTML Editor 3.0.1 (on/off).
Title: Re: installed the plugin and nothing on duplicate section.
Post by: MB Themes on January 23, 2017, 06:00:04 PM
@Tango
It is comparing listings posted from same email only. If it would compare all existing listings, it would cause page freeze and slow loading due to high PHP workload (technically not possible).