+ Reply to Thread
Results 1 to 6 of 6

Thread: Invisible listing removes after 3 days

  1. #1
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    432

    Invisible listing removes after 3 days

    One of my users reported his invisible listing does not exist anymore.
    I noticed, invisible listings will be removed after 3 days (i guess by cron job).
    Listing status plugin has already been installed and i noticed a 3 at the plugin parameters like picture.
    1.png

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,580
    Hello,

    maybe because they are expired

    and you have settings for expired listings in Common > Basic Settings > Cron > Checking for Expired Listings

  3. #3
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    432
    Hello Rudi, unfortunately no, it's not the case.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,580
    I need to look into it,

    if you send me your ftp details I would check

  5. #5
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    432
    Hello Rudi, finally i found the problem. I added below two lines at the bottom of my cron jobs based on your recommend at
    https://forum.flynax.com/showthread....ll=1#post21708

    Code:
    Only registered members can view the code.
    Now go to includes/classes/admin/rlControl.class.php and find
    Code:
    Only registered members can view the code.
    and then find
    Code:
    Only registered members can view the code.
    line #74

    It calls a hook which you can find in listing status plugin -> rlListing.Status.class.php

    Code:
    Only registered members can view the code.
    It obviously causes the problem. I think it also causes the same problem if user uses recount button in admin/refresh/Recalculate the number of listings for each category.

    I recommend move this line
    Code:
    Only registered members can view the code.
    to includes/classes/rlCategories.class.php/function recountCategories() and to includes/classes/rlListing.Types.class.php/function updateCountListings()
    Last edited by Bahram Soltanirad; April 8, 2020 at 09:12 AM.

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,580
    Hello Bahram,

    It's very interesting and may be useful for other users,

    we need to examine this issue carefully

    Thank you!

+ Reply to Thread