• Resolved hc4zrr324

    (@hc4zrr324)


    when logged in i go:

    $User = new FEUP_User();
    var_dump($User);

    and get:

    object(FEUP_User)#313 (2) { [“Username”:”FEUP_User”:private]=> NULL [“User_ID”:”FEUP_User”:private]=> NULL }

    this only happens on iOS devices – iPhone iPad etc.

    I’m thinking it might have something to do with the way iOS handles cookies but I have no idea. How can I fix this?

    https://www.ads-software.com/plugins/front-end-only-users/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi hc4,

    Would it be possible for us to get a link to your website, and a login?

    If you suspect Safari being the cause of it, have you tried changing the cookies settings? To set whether Safari blocks cookies or not in iOS 8 or later, tap Settings > Safari > Block Cookies and choose one of the options given to you.

    Let us know if it works or not, we will wait for a link to test. ??

    Best regards,
    EWD

    Thread Starter hc4zrr324

    (@hc4zrr324)

    hi EWD,

    Thanks for your offer! Here’s the URL: https://thepowerfulnow.com

    How can I send you a login? Do you need one for wp-admin or just a login for your plugin or both?

    We’ve tried changing the cookie settings. No luck ??

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Would it be possible for us to get a link to your website, and a login?

    Link to the site is fine but @etoilewebdesign please do not ask for a login. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

    Thread Starter hc4zrr324

    (@hc4zrr324)

    well EWD, it seems I shouldn’t be providing these credentials here. Do you have any suggestions as to how to troubleshoot the issue in my OP? I should also add that this same code runs perfectly fine on another page template and I’m getting no PHP errors in the page template where that code doesn’t work. Thanks!

    Plugin Author Rustaurius

    (@rustaurius)

    Hi hc,

    Is there a sign up page somewhere?

    What are you trying to do in the code sample? When you say works fine, you mean the Username and User_ID are both set correctly inside the instance of the class?

    Thread Starter hc4zrr324

    (@hc4zrr324)

    the secret registration page: https://www.thepowerfulnow.com/register/

    yes you have it right. by works fine i mean Username and User_ID are both non-null inside the instance of the class.

    we have a check in 3 page templates:

    $User = new FEUP_User();
    if ( $User->Is_Logged_In() ) :
    wp_nav_menu(array(
    ‘theme_location’ => ‘convenings-menu’,
    ‘container’ => ‘nav’,
    ‘menu_class’ => ‘convenings-menu’,
    ));
    endif;

    the page templates can be viewed at the following urls:

    https://www.thepowerfulnow.com/convenings/ (this one var_dumps the $User object)
    https://www.thepowerfulnow.com/newyork/ (this is the only one where the conditional statement above returns true)
    https://www.thepowerfulnow.com/membership

    Please let me know if there’s anything else I can do to help.

    Thanks!!!

    Plugin Author Rustaurius

    (@rustaurius)

    Hi hc,

    Is there any difference in how the calls are made?

    If it’s working correctly on one page, the best thing would be to figure out what’s different with the other two. For example, is the call made at a different point in the template? Are there any differences in the code you’re using?

    Thread Starter hc4zrr324

    (@hc4zrr324)

    No difference – the calls are even using the same variable name in all the page templates. Only thing that’s different between the templates is there’s different HTML. Please let me know if you have any other suggestions. Thanks!

    Plugin Author Rustaurius

    (@rustaurius)

    They’re also made at the same time, for example, in the header?

    I’m not sure what could possibly be causing the difference if they use the same code at the same point in the WordPress loading process. Does anyone have any ideas?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘cookie problems?’ is closed to new replies.