+ Reply to Thread
Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 68

Thread: Problem with free package

  1. #21
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Ed just went and tested flynaxes demo and you are correct its an error in the script as best I can see so a ticket is needed, was about to upgrade but will wait fr this error to be fixed now.
    Last edited by Pete Young; March 28, 2018 at 04:32 AM.

  2. #22
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello Ed,

    Now I see what you mean,

    Yes, the option 'Limit use of package' doesn't work properly

    to fix it you should go to ftp > includes > classes > rlPlan.class.php > find 'public function fixAvailability(&$plans)'

    change a code inside:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code

  3. #23
    Hello Rudi, Yes i already mentioned a solution like this, but it opens the plan forever, without limit. At least, it works for me like this.
    Ed should confirm the solution.

  4. #24
    Senior Member
    Join Date
    Dec 2012
    Posts
    102
    yes something is wrong because if you go to admin >plans using manager you can see multiple entries of same user with same limited single plan and balance 0 after 8 entries for a limited plan of 3! after that you get the message of Hack detected your not allowed to use the plan..

    i have this line under rlplan.class.php :


    if (($plan_info['Limit'] > 0 && $plan_info['Using'] == 0 && $plan_info['Using'] != '' && defined('IS_LOGIN'))

    and this under AddListing.php:

    // Check plan using data
    elseif ($plan_info['Limit'] > 0 && $plan_info['Using'] == 0 && $plan_info['Using'] !='') {
    $errors[] = $lang['plan_limit_using_hack'];
    }
    Attached Images Attached Images
    Last edited by autocy; March 28, 2018 at 07:59 AM.

  5. #25
    Senior Member
    Join Date
    Jun 2016
    Location
    New York
    Posts
    158

    Lightbulb Problem with free package (Usage Limit)

    Hello Everybody,

    Good Morning!

    The posted code needs to be enclosed by parentheses, see below:

    PHP Code:
    Only registered members can view the code
    I made the modification posted by Rudi and it Worked, but I'm still testing, when I finish doing all the tests I'll post the result here in the forum.

    I want to thank everyone who helped... Pete Young, Autocy, Bahram Soltanirad, Viktor, and Rudi.

    From Heart, Thank you
    Last edited by Ed; March 29, 2018 at 07:06 PM.

  6. #26
    Senior Member
    Join Date
    Dec 2012
    Posts
    102
    Yes but only works if limited to 1 plan use only..
    if you set plan limit 2 or above instead of changing the balance under plan using database it puts a new entry and then the limited plan is not disabled but after you try to add a listing you get the message for 'hack detected'.
    The problem i think is because the limited plan i tested is a free one.
    i think with a paid limited plan should work ok
    Last edited by autocy; March 28, 2018 at 09:46 AM.

  7. #27
    Senior Member
    Join Date
    Jun 2016
    Location
    New York
    Posts
    158

    Unhappy Problem with free package (Usage Limit)

    Hello Everybody

    Unfortunately it gave error again, now the problem is occurring in reverse, a plan with a limit of 5 is the same as unlimited, ie even if I put a limit of 5 the plan will never display (Used-Up). So the user can announce as many times as he wants.

    it's a shame because in the previous versions of 4.6.1 never occurred this error, there are other errors in version 4.61, but I will post on other topics.

    I will wait for the return of the ticket I opened.

    Thank you all!

  8. #28
    Senior Member
    Join Date
    Jun 2016
    Location
    New York
    Posts
    158

    Unhappy Problem with free package (Usage Limit)

    Quote Originally Posted by autocy View Post
    Yes but only works if limited to 1 plan use only..
    if you set plan limit 2 or above instead of changing the balance under plan using database it puts a new entry and then the limited plan is not disabled but after you try to add a listing you get the message for 'hack detected'.
    The problem i think is because the limited plan i tested is a free one.
    i think with a paid limited plan should work ok
    Hello Autocy,

    What you are saying is true, I think it is better to wait for the update of version 4.6.1 or wait for the solution through the ticket.

    Screen shot below:

    screen-error-limit.jpg

    Thank you!
    Last edited by Ed; March 28, 2018 at 05:54 PM.

  9. #29
    this error happen with paid plan as well? Or just free plan?

  10. #30
    Quote Originally Posted by Wei Hong View Post
    this error happen with paid plan as well? Or just free plan?
    Please try it and let us know. I think step plan needs a whole investigate by flynax.

+ Reply to Thread