Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default login create account looping - session.use_only_cookies

    Hi

    zen cart 1.5.5, php version 5.6.15

    I'm trying to get to the bottom of why the login create account function is looping. I've tried several things:

    turned off recreate sessions
    turned off ceon uri rewrite mod
    turned off FEC mod
    switched to default template

    non of these things made any difference. Login create account continued to loop. The looping issue isn't generating any error log files so I'm not getting any clue that way.

    Login for someone who already has an account works normally.

    In my search for a fix I came across this page:

    https://www.zen-cart.com/content.php?270

    "your PHP configuration can't negotiate sessions properly- Your server's PHP configuration has session.use_only_cookies set to 1. It needs to be 0. Have your hosting company fix it."

    In cart admin > server information - it shows, session.use_only_cookies, is on. I assume that 'on' would = 1 and 'off' would = 0. Is that correct? I think it is but just want to clarify.

    I feel a little silly asking but before I ask host to turn off session.use_only_cookies I want to be sure I am correct in that assumption.

    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,762
    Plugin Contributions
    9

    Default Re: login create account looping - session.use_only_cookies

    You might also ask your host if you can use a local copy of php.ini if they allow it
    Where you can set this to off and only for your account
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: login create account looping - session.use_only_cookies

    Quote Originally Posted by kobra View Post
    You might also ask your host if you can use a local copy of php.ini if they allow it
    Where you can set this to off and only for your account
    thanks, that's a good idea.


    When I try to create an account it loops back and shows this url

    index.php?main_page=login&error=true

    I don't understand why there's no error log

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,762
    Plugin Contributions
    9

    Default Re: login create account looping - session.use_only_cookies

    Create a file named "php.ini" with this contents
    Code:
    [PHP]
    
    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    allow_url_fopen = Off
    Save it and upload it to the root of your account
    Then check in your ZenCart admin > tools > server/version info

    look for if there is a local setting for this listed

    This will indicate if your host allows local php.ini to function
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: login create account looping - session.use_only_cookies

    Quote Originally Posted by kobra View Post
    Create a file named "php.ini" with this contents
    Code:
    [PHP]
    
    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    allow_url_fopen = Off
    Save it and upload it to the root of your account
    Then check in your ZenCart admin > tools > server/version info

    look for if there is a local setting for this listed

    This will indicate if your host allows local php.ini to function
    it is listed as allow_url_fopen - on

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,762
    Plugin Contributions
    9

    Default Re: login create account looping - session.use_only_cookies

    it is listed as allow_url_fopen - on
    Do you have a Local Value and a Master Value listed?
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: login create account looping - session.use_only_cookies

    Quote Originally Posted by kobra View Post
    Do you have a Local Value and a Master Value listed?
    no, there is not. allow_url_fopen - on is the only one in the list.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,762
    Plugin Contributions
    9

    Default Re: login create account looping - session.use_only_cookies

    no, there is not. allow_url_fopen - on is the only one in the list.
    Well then your host most likely does not allow a local ini file
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: login create account looping - session.use_only_cookies

    ok, thanks for your input. It's appreciated. Time to contact host.

  10. #10
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: login create account looping - session.use_only_cookies

    Finally got it sorted and the create account page is back in business. This is what happened if anyone is interested. The host adjusted the session.use_only_cookies for me but it made no difference, so back to the drawing board. After making umpteen admin Fast and Easy Checkout display adjustments the create account/login page finally displayed a warning that the recaptcha field had not been filled in. Recaptcha wasn't installed on the create account page but the recaptcha module observer file was looking for the captcha field on the create account page which is why the create account page couldn't proceed.

    /includes/classes/observers/class.google_recaptcha.php

    let's us comment out lines for specific page checking. never knew that. oh my gosh my eyes are falling out. lol

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 12 May 2014, 09:18 AM
  2. Login/ create account screen
    By ellivir in forum General Questions
    Replies: 2
    Last Post: 27 Sep 2011, 08:23 AM
  3. create account and session recreate
    By delia in forum General Questions
    Replies: 5
    Last Post: 1 Sep 2009, 05:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR