Hi i just tested a public form that has an attachments field
Warning: count(): Parameter must be an array or an object that implements Countable in /home/tttt/public_html/tttt.co.uk/includes/classes/attachments.php on line 63
attachements on public form error
- support
- Site Admin
- Posts: 6147
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: attachements on public form error
File from archive replace to \includes\classes\
Let me know if it works ok now.
Let me know if it works ok now.
- Attachments
-
- attachments.zip
- (3.69 KiB) Downloaded 76 times
Re: attachements on public form error
Hi the error isnt showing but neither is the uploaded file it seems to act like its uploading then just refreshes
- support
- Site Admin
- Posts: 6147
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: attachements on public form error
Form is in iframe? Then do next
Open config/server.php and find next line:
Replace it to:
Open config/server.php and find next line:
Code: Select all
define('SESSION_FORCE_COOKIE_USE',true);
Code: Select all
if(strstr($_SERVER['REQUEST_URI'],'ext/public/form'))
{
define('SESSION_FORCE_COOKIE_USE',false);
}
else
{
define('SESSION_FORCE_COOKIE_USE',true);
}
Re: attachements on public form error
Hi Sergey
I have already added that code after the public forms stopped sending.
The forms send ok now but the attachments wont upload.
They do if using the direct link to a public form just not as an iframe it seems.
I have already added that code after the public forms stopped sending.
The forms send ok now but the attachments wont upload.
They do if using the direct link to a public form just not as an iframe it seems.
- support
- Site Admin
- Posts: 6147
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: attachements on public form error
Send link to the form in PM