*

Loma

  • ***
  • 69 posts
  • Loma
Promote Feature has been finished but still visible button
« on: November 27, 2017, 05:18:37 AM »
i test with auto renew very 1 hour for one time and Promote Feature has been finished but it still visible button Promote in item

how to fix it ? does any one have this problem ?

regard


*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #1 on: November 27, 2017, 09:01:15 AM »
@Loma
You can promote listing multiple time, it should extend existing promotion.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: Promote Feature has been finished but still visible button
« Reply #2 on: November 27, 2017, 03:10:57 PM »
no only one time and it's has been finished but it still show feature button

*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #3 on: November 27, 2017, 03:15:58 PM »
@Loma
I do not think so, buttons are not hiding, and especially if you create them by yourself.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: Promote Feature has been finished but still visible button
« Reply #4 on: November 27, 2017, 03:33:25 PM »
i try in stall new fresh plugin  but it the same,

*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #5 on: November 27, 2017, 03:41:08 PM »
@Loma
I am not sure what is incorrect there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

reflexus

  • ****
  • 146 posts
Re: Promote Feature has been finished but still visible button
« Reply #6 on: November 27, 2017, 04:57:30 PM »
@Loma
I am not sure what is incorrect there.

he means that after the expiration of the promotion, the button should be hide
« Last Edit: November 27, 2017, 04:59:49 PM by reflexus »

*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #7 on: November 27, 2017, 06:31:54 PM »
It is not button, it is informal block that shows all kind of paid promotions. Once promotion is completed, record is removed via cron and not visible anymore.
As seen in message there is still one repeat left.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: Promote Feature has been finished but still visible button
« Reply #8 on: November 28, 2017, 04:33:47 PM »
no promotion has been expired but it still  visible informal block.
i bought auto republish every 1 hour and repeat one time (26-11-2017 at 20:17PM) but now it still visible informal block.
the visible informal block should be hidden in  26-11-2017 at 21:17PM .

does i have problem with my cron ? i have test all theme and disable all plugin  but it still visible informal block.

sorry for my english

regard

*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #9 on: November 28, 2017, 06:16:32 PM »
@Loma
Can you find record for that item id in table t_osp_item and print it there?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: Promote Feature has been finished but still visible button
« Reply #10 on: November 29, 2017, 12:55:09 PM »
this  table t_osp_item.

 Now informal block are still visible

regard

*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #11 on: November 29, 2017, 08:49:11 PM »
@Loma
Thaaats really strange, that last record should be updated to 0 repeats and then to be removed.

First check if it is problem with cron.
Go to index.php of plugin and find this code (do not forget to revert changes after testing):
Code: [Select]
// EXECUTE HOURLY CRON
function osp_hourly_cron() {
  ModelOSP::newInstance()->purgeExpired();
}

change it to:
Code: [Select]
// EXECUTE HOURLY CRON
function osp_hourly_cron() {
  ModelOSP::newInstance()->purgeExpired();
}

osp_hourly_cron();

Go to homepage and refresh it, check if repeats has been decreased to 0 and then removed.


If yes, hourly cron does not work correctly in osclass (it does not call that function).


If not, got to model/ModelOSP.php
Find function: purgeExpired()

in this function there is:
Code: [Select]
  $this->dao->where(sprintf("TIMESTAMPDIFF(MINUTE, dt_expire, '%s') >= 0", date('Y-m-d H:i:s')));

Change it to:
Code: [Select]
$this->dao->where('dt_expire <= "' . date('Y-m-d H:i:s') . '"');
Go to homepage, refresh, go to user account and check if repeats has been decreased or message removed.

Let me know.

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: Promote Feature has been finished but still visible button
« Reply #12 on: November 30, 2017, 12:46:15 PM »
it's still the same. informal block are still visible

*

MB Themes

Re: Promote Feature has been finished but still visible button
« Reply #13 on: November 30, 2017, 12:58:06 PM »
@Loma
But it has moved, there is 0 repeats now so on next republish it will be removed.
What decreased repeats?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: Promote Feature has been finished but still visible button
« Reply #14 on: November 30, 2017, 02:09:43 PM »
it's should be removed at 11:45:55AM but now it's still visible