Osclass Support Forums
Osclass plugin support => Spam Solution Plugin => Topic started 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
-
@emmazz
Please check your error log and post it there.
-
[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
-
@emmazz
Problem is there:
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.
-
that mean ?
Please explain
-
@emmazz
Set "Listings shown on 1 page - pagination" to lower number, i.e. 20.
-
but i haven't that option. that's why i said : duplicate page is not loading. only empty unit
-
@emmazz
Do you have latest version of plugin? If you open this tab, no actions are performed and therefore memory should not be reached.
-
i bought it today, Version:2.1.3 | By Michal Brezak | Plugins Site
-
@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:
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:
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();
}
-
can you please suggest any hosting service for me ? or vps service
-
i did it, but still not fixed
-
@emmazz
Send me login to your FTP.
-
check your mail
-
@emmazz
Fixed, added limit function to function that get all items.
-
Okay :) Thanks
-
once again same issue
-
@emmazz
Fixed. You should increase maximum allowed memory size, otherwise you will not be able to check for duplicates that already exists.
-
is this duplicate checker with with title only ? or with description ?
because i have same titled ad with multiple description ( multiple persons ads )
-
@emmazz
Both, title & description are compared, but only on user level.
This means that you can have 2 identical listings from different users.
-
@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).
-
@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).