This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

questions Answers not processing android phones
#1

The questions feature is not processing on two different android phones.
I am able to complete the process on windows laptop and desktop

When I enter a comment and answer the security question I keep getting the error message
Please review the errors below

I am sure others have had this issue but can't find a related post in the forum

The page is https://www.whatsay.com/topics.php if you need to look at the code

Thanks for your help
Reply
#2

Tried it on chrome browser desktop works fine
Both phones same I.P. Comcast
Carrier at&t
Weird?
Reply
#3

When I tested it on your site I had a slightly different outcome. I was able to replicate the problem using Chrome on a Windows desktop and Chrome on an Android phone. It said "Please answer the new question" even though I answered the question correctly.

However it worked correctly using Firefox on desktop.

So it's possibly a Chrome issue. I know Chrome is starting to try to phase out cross-domain cookies. The question feature relies on a session to work so it needs to use a cookie for this. And because you're using the iFrame integration method, the cookie is cross-domain (whatsay.com is calling cigargrams.com).

Have you completed the interview?
Reply
#4

I think this console error confirms it.


Attached Files Thumbnail(s)
   

Have you completed the interview?
Reply
#5

Which PHP version are you using?

Have you completed the interview?
Reply
#6

So, yes agreed, definitely a chrome issue
tried the same phone with opera browser and no issues processing the question

Not sure which version php Hosted at FastComet so Im pretty sure they have the latest version php

I think the best fix is to install the script directly on WhatSay.com
This would overcome the cross domain cookie issue you referenced
"I know Chrome is starting to try to phase out cross-domain cookies"

At the same time this puts the iframe script sharing feature in jeopardy for chrom users if the question wont work

Thank you and I hope others who experience the same issue will learn from this thread

Great script overall BTW


-SB
Reply
#7

Yeah ideally I'd like to get it resolved because other users will undoubtedly experience the same problem.

Would you mind trying the below on your Commentics installation at cigargrams.com please?

1. Open /commentics/frontend/index.php

Before this:
PHP Code:
<?php 
session_start
();

Add this:
PHP Code:
<?php 
session_set_cookie_params
(['samesite' => 'None', 'secure' => true]);

2. Open /commentics/system/library/cookie.php

Replace this:
PHP Code:
<?php 
setcookie
($name, $value, $expire, $path, $domain, $secure, $httponly);

With this:
PHP Code:
<?php 
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
    setcookie($name, $value, [
        'expires'  => $expire,
        'path'    => $path,
        'domain'  => $domain,
        'secure'  => true,
        'httponly' => $httponly,
        'samesite' => 'None'
    ]);
} else {
    setcookie($name, $value, $expire, $path . '; samesite=None', $domain, true, $httponly);
}

Have you completed the interview?
Reply
#8

In your admin area if you go to 'Reports -> PHP Info' it should say what your PHP version is. Can you let me know?

Just to explain my previous post, the first change is to fix the session cookie, meaning the question feature should work. The second change is to fix things like the 'Remember my form inputs' checkbox, as I assume that isn't currently working either.

Have you completed the interview?
Reply
#9

php version 5.6.40

So I added the code to the file frontend/index.php and YES it fixed the question issue

Not sure what I might be missing (or the code might be) but when I overwrote the code in the file
/library/cookies
the script burped and would not allow me to display anything in the pages or even access the admin panel

is there something I might change or did wrong?
Reply
#10

Works fine for me on PHP 5.6.40. Maybe you didn't copy all the code over properly?

Have you completed the interview?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)