Post Limit

Started by Suki, February 11, 2013, 07:30:41 PM

Previous topic - Next topic

Dave J

Hi Suki,

I've installed the new version on the clean test site and now I'm getting 2 other errors

See attached for the errors.

I set a member with allowance of only 1 post, I then logged in as that member and posted 3 posts although the limit was set to 1.

In each instance of posting it gave 5 errors each was in number order from '2: Parameter 1 to 2: Parameter 5

The hooks issue still remains, again see attached.


FYI: I have also installed this on a localhost with the same results, except the cron error, that didn't happen on the local host
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Suki

Yeah the hooks issue will still happen, it doesn't actually interfere with the mod normal operation.

Can you run this query in your phpMyAdmin or another tool that let you run queries and paste the result:

select * from smf_settings where value LIKE  "%PostLimit%";
This is assuming that your tables as "smf_" as prefix, if not, change it to your prefix.

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Dave J

#42
Sorry Suki I've only just seen your reply.

See attached below
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Suki

Thanks can you now run this query:

select *
from smf_scheduled_tasks
where task like "%PostLimit%"

And make sure this function:

    public static function s(): bool
    {
        $repository = new PostLimitRepository();
        $repository->resetPostCount();

        // Make sure we are the last hook call, don't ask, just sage nod and move on
        self::reOrderHookCall($repository);

        //No point in keeping alerts
        $repository->deleteAllAlerts();

        return true;
    }


Exists on your Sources/PostLimit/PostLimit.php file
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Dave J

If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Advertisement: