Page 1 of 8 123 ... LastLast
Results 1 to 10 of 71
  1. #1
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Cannot sign-in with shared SSL and 1and1

    Converted my store to 1.5.1 because my server (1and1) is dropping support on 4/1/13 for anything older than PHP 5.4. It is currently running PHP 5.2.17.

    When I forced my server to PHP 5.4, I could not sign-in to admin. It kept going back to the sign-in screen. I promptly switched back to 5.2.17 and it worked. Assistance greatly appreciated, as I don't want to have to switch servers.
    Thanks,
    Ray

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    Thank you for your prompt response, DrByte. I apologize that I forgot to check the logs for an error -- I'm still learning.

    Your solution scares me, but I'll give it a try (or ask 1and1 if there's a way to change the length), but would you please look at my error and see if you still think that's the case? It is a different error from the one in the referral post, and I don't get any errors on my screen -- it just loops back into sign-in:

    PHP Parse error: syntax error, unexpected '{' in /.../store/includes/functions/password_funcs.php on line 102

    Also, does anyone know of an editor that will display the line number? If I counted properly, line 102 is a comment, so I obviously don't know if it counts blank lines, etc.
    Thanks,
    Ray

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

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    does anyone know of an editor that will display the line number?
    http://notepad-plus-plus.org/
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    Thank you, kobra. You are always helpful, and never condescending. I didn't see anything in the code I could figure out, but at least I know where line 102 is now. I don't read PHP, but this is how I figured out about the #1 admin having to sign-in to make superusers on my other problem. Sometimes I get lucky.
    Thanks,
    Ray

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    Quote Originally Posted by rayw1679 View Post
    PHP Parse error: syntax error, unexpected '{' in /.../store/includes/functions/password_funcs.php on line 102
    In what way is that file different from original Zen Cart code, and why?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    Thank you for responding, DrByte. Winmerge says it's identical to what I originally downloaded. The code is:
    PHP Code:
      // MS-Windows platform?
      
    if (@class_exists('COM'))
      {
        
    // http://msdn.microsoft.com/en-us/library/aa388176(VS.85).aspx
        
    try
        {
          
    $CAPI_Util = new COM('CAPICOM.Utilities.1');
          
    $entropy .= $CAPI_Util->GetRandom(160);

          if (
    $entropy)
          {
            
    $entropy md5($entropyTRUE);
            
    //echo "USING WINDOWS" . "<br>";
          
    }
        } catch (
    Exception $ex)
        {
          
    // echo 'Exception: ' . $ex->getMessage();
        
    }
      } 
    According to Notepad++, line 102 is the left bracket under "try". I'm sorry, I read several languages, but PHP isn't one of them. I don't mind trying what you suggested earlier, I just want to make sure it matches the error, as I get nervous when modifying the database.
    Thanks,
    Ray

  8. #8
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    Sorry, this was another duplicate. I hit "quick reply" and get duplicate entries. I don't know why.
    Thanks,
    Ray

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    No PHP error there. Not sure why it's throwing an error, unless the file is damaged.

    When you're using PHP 5.4, what is your PHP configuration setting for each of these?
    - session.hash_bits_per_character
    - session.hash_function
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cannot sign-in with 1.5.1 using PHP 5.4

    5.4.11 is the same as 5.2.17:

    session.hash_bits_per_character are 4 for local and master
    session.hash_function are 0 for both
    Thanks,
    Ray

 

 
Page 1 of 8 123 ... LastLast

Similar Threads

  1. Replies: 2
    Last Post: 15 Jun 2012, 12:18 AM
  2. SSL Problems with 1and1 and Geotrust
    By whiteknight1 in forum General Questions
    Replies: 2
    Last Post: 17 Feb 2011, 09:57 PM
  3. Replies: 4
    Last Post: 27 Mar 2010, 02:05 PM
  4. Loading time on 1and1 shared hosting
    By tonot in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Jul 2008, 11:27 AM
  5. SSL with 1and1
    By praiseandplay in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2006, 08:51 AM

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