Welcome Guest, Not a member yet? Register   Sign In
Ajax post failing with TypeError
#4

Hi, PaulC

Error in trace: Argument #3 ($filter) must be of type ?int, true given

Description of parameter #2 in the getPost function from User Guide
$filter (int) – The type of filter to apply. A list of filters can be found here.

PHP Code:
case 'get_ikulpic':
            {
                //Post reference
                $reference $this->request->getPost('reference'true); 

in other words, the second parameter must be a INT and not a BOOL value
Reply


Messages In This Thread
Ajax post failing with TypeError - by PaulC - 05-10-2025, 06:25 AM
RE: Ajax post failing with TypeError - by PaulC - 05-10-2025, 12:52 PM
RE: Ajax post failing with TypeError - by vitnibel - 05-10-2025, 08:52 PM
RE: Ajax post failing with TypeError - by PaulC - 05-12-2025, 12:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB