If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Cannot sign-in with shared SSL and 1and1

Cannot sign-in with shared SSL and 1and1

Started by rayw1679 on 9 Feb 2013, 10:00 PM · Views: 11,698

Results 41 to 60 of 71
12 Feb 2013, 2:02 AM
#41
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #41 by drbyte

rayw1679:

My real stores have the old configurations without the application_top.modified.txt file.Zen Cart will ignore a file named "application_top.modified.txt".

.
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.

12 Feb 2013, 2:26 AM
#42
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #42 by rayw1679

I didn't see how it could effect anything, being a text file, but I saw it was in the test store and hadn't been there before. I assume it was part of the new config procedure.

I have asked 1and1 if there's something that can be done to change the option on PHP 5.4 so the coding won't be necessary. I have a really great server supervisor there that is working on it.

Thanks,
Ray

12 Feb 2013, 2:50 AM
#43
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #43 by kobra

I assume the symbolics are to access the cookie code
If you are referring to this code in the configure file

$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];

define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', 

define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', 

Then NO.... that is so that the file does not need to be edited when you change your admin folder name

Zen-Venom Get Bitten

12 Feb 2013, 1:15 PM
#44
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,146
Plugin Contributions:
56

Post #44 by lat9

rayw1679:

One more question, please. This was a test store. My real stores have the old configurations without the application_top.modified.txt file. I assume the symbolics are to access the cookie code, but I don’t read PHP. Will I be able to insert that code into the old configs?
I'm not sure what you mean by "the symbolics", but if it was the $t1 incantation then that's not part of my 1and1 shared SSL solution. The new define that was added is what allows your admin page to access the session cookies when running under the shared SSL.

If I interpret your question correctly, I believe that you're asking if you can use the configuration.php files currently used by the v1.3.9 versions of your stores when you upgrade them for v1.5.1. The answer to that question is "Yes, with modifications":

  1. To each configuration.php file (both store and admin), you'll want to add the define('DB_CHARSET', 'latin1'); statement to the bottom of the file with the rest of the database settings.
  2. To the admin configuration, you'll want to add the CUSTOM_COOKIE_PATH define (assuming that you're running the admin in SSL) that contains the full path, starting with the /rdswebs.net portion, to access the admin pages for the specific store.
12 Feb 2013, 2:50 PM
#45
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #45 by rayw1679

Thank you again, lat9. I woke up this morning (after finally sleeping, thanks to you) realizing I was unfamiliar with the new configure.php, and that the &symbolics were part of the new configure.php design. I knew you had to change something, and was going to run WinMerge, but your answer makes it very clear what I need to do, and it's a simple solution now that I understand what's going on.

I think I'll be able to fix my stores easily, now. This has been the most difficult time I've had with Zen-cart, and I appreciate everyone's help.

lat9, you are a genius, and a credit to the Zen-cart community.

Thanks,
Ray

18 Feb 2013, 11:13 PM
#46
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #46 by rayw1679

In reference to the code "setlocale(LC_TIME, '.en_US.ISO_8859-1')" in the english.php file -- I have two questions, please.

  1. I'm seeing it both as "@setlocal ..." (looks like perhaps in the "regular" file) and as "setlocale ..." (no "at" sign -- perhaps in the admin file). I don't know what the "at" sign means, so could someone please tell me which it should be?

  2. In one of my stores, adding "setlocale(LC_TIME, '.en_US.ISO_8859-1')" to the admin file caused me to get a server 500 error. Any idea why?

Thanks,
Ray

18 Feb 2013, 11:25 PM
#47
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #47 by drbyte

rayw1679:

  1. I'm seeing it both as "@setlocal ..." (looks like perhaps in the "regular" file) and as "setlocale ..." (no "at" sign -- perhaps in the admin file). I don't know what the "at" sign means, so could someone please tell me which it should be?In PHP, prefacing any function call with an @ causes PHP to suppress any non-fatal errors that might be triggered by calling that function.
    On servers that are malconfigured such that setlocale() throws an error, the @ will cause the error to be ignored.
    rayw1679:

  2. In one of my stores, adding "setlocale(LC_TIME, '.en_US.ISO_8859-1')" to the admin file caused me to get a server 500 error. Any idea why?
    Maybe it's causing an error in your server? What do the server's logs say?
    http://www.zen-cart.com/content.php?105-why-am-i-getting-500-internal-server-error
    http://www.zen-cart.com/content.php?124-blank-page

.
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.

19 Feb 2013, 1:38 AM
#48
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #48 by rayw1679

Thank you, DrByte. There are no "myDebug" logs in /logs/ or cache. I assume a 500 is a fatal error which would not be averted by the @. I'm not sure if strict_error_reporting would help, but I'll go back over it some more. It's not an FTP problem, as I now download each store after I upload it and run WinMerge against it. (Thanks for teaching me that.) The only thing I'm changing is "en_US" to '.en_US.ISO_8859-1'.

Thanks,
Ray

19 Feb 2013, 1:53 AM
#49
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #49 by rayw1679

My apologies. I read to check syntax, so I looked at it with fresh eyes after going away for a little while. I commented out "//" the original line and copied the new line. I missed the trailing semi-colon and didn't notice it. I just added the semi-colon and it works fine. Sorry to bother you.

Thanks,
Ray

19 Feb 2013, 2:09 AM
#50
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #50 by drbyte

Thanks for posting the cause of the problem and the solution.

.
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.

19 Feb 2013, 2:16 AM
#51
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #51 by rayw1679

Thank you for not yelling at me for making such a careless mistake and then taking so long to find it. You have no idea how many times I looked at that line and never saw there was no semi-colon. Then again, I don't know PHP, and in some languages a semi-colon at the end of a section would create an issue. Anyway, thanks for your help and thanks for your understanding. I'm fighting several other issues, but at least I have all my stores running under PHP 5.4. And, I've learned a LOT from you, lat9, and all the others who have assisted.

Thanks,
Ray

20 Feb 2013, 5:35 PM
#52
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #52 by rayw1679

When I use the configuration from lat9, I can signin; however, all images in admin show the "red x" box. The store looks fine.

I tried the new 1.5.1 configure just to test, but when I sign-in with "pannys.net/store/adminxxx" it is converted to: "https://ssl.perfora.net/rdswebs.net/store/adminxxx/login.php?camefrom=index.php&zenAdminID=...". Notice the "pannys.net" is missing, and it gets a 404. If I sign-in with lat9's config and save it as a bookmark, I can run under the new config by clicking the bookmark and then I get the images.

I have a similar problem with "Who's Online." I can click the ascending/descending bars and they work, but if I click on the link to see what the person is viewing, I get a similar problem with the website name missing.

Thanks,
Ray

20 Feb 2013, 6:25 PM
#53
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #53 by drbyte

Those are all symptoms of problems with your configure.php file content.

.
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.

20 Feb 2013, 10:11 PM
#54
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #54 by rayw1679

Thank you, DrByte. I assumed it might be a configure.php problem, and I assume it would be the admin copy since that's where I was when it happened. I was hoping for someone to tell me where to go (you probably feel like doing that after I missed the semi-colon).

I modified my 'DIR_WS_CATALOG' and 'DIR_WS_HTTPS_CATALOG' files, adding a value of /store/. I now see the images.

However, and it's not earth-shattering as long as it doesn't affect anything else, but I'm still getting this when I try to few the page of someone who is online: https://ssl.perfora.net/pannys.net/store/index.php?main_page=index&cPath=23. It should have my server name (rdswebs.net) before pannys.net.

My admin configure.php files that appear relevant are:

define('HTTP_SERVER', 'https://ssl.perfora.net/rdswebs.net');
define('HTTPS_SERVER', 'https://ssl.perfora.net/rdswebs.net');
define('HTTP_CATALOG_SERVER', 'http://rdswebs.net/pannys.net');
define('HTTPS_CATALOG_SERVER', 'https://ssl.perfora.net/rdswebs.net/pannys.net');

define('DIR_WS_ADMIN', '/pannys.net/store/adminxxx/');
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_ADMIN', '/pannys.net/store/adminxxx/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

define('DIR_WS_IMAGES', 'images/');

These files are based upon lat9's configuration in a previous post to resolve the cookie problem. I have worked on it for hours and can't come up with where to add the "rdswebs.net". If someone could please give me a sense of direction it would be greatly appreciated.

Thanks,
Ray

21 Feb 2013, 2:38 AM
#55
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #55 by kobra

Enter these in your browser and remove spaces

http: // rdswebs.net/pannys.net/
http: // rdswebs.net/
http: // pannys.net/

None of them land on a ZenCart page

http: // pannys.net/store

does

Zen-Venom Get Bitten

21 Feb 2013, 2:47 AM
#56
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #56 by rayw1679

Agreed. The server name is required with their shared SSL. rdswebs.net will land on the server's index page, which is a dummy landing page. pannys.net (which is just a domain I had lying around so I'm using it for a test site) is the domain to run the store. I'm not sure what you're trying to tell me.

Thanks,
Ray

21 Feb 2013, 4:25 AM
#57
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #57 by kobra

I am speaking to the way cpanel treats this where pannys.net would be an addon domain and there would be no reason for the http: // rdswebs.net/pannys.net entry and it would be just
http: // pannys.net

Zen-Venom Get Bitten

21 Feb 2013, 4:36 AM
#58
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Post #58 by rayw1679

I have a managed server -- I'm not using cpanel. The SSL requires the "perfora" and "rdswebs.net". This is what I had under 1.3.8, and it worked fine:
define('HTTP_SERVER', 'http://rdswebs.net');
define('HTTPS_SERVER', 'https://ssl.perfora.net/rdswebs.net');
define('HTTP_CATALOG_SERVER', 'http://rdswebs.net');
define('HTTPS_CATALOG_SERVER', 'https://ssl.perfora.net/rdswebs.net');

Perhaps I need to use the same set-up on the new store. I'm sorry, the config has always been confusing, particularly with SSL's.

Thanks,
Ray

21 Feb 2013, 6:42 AM
#59
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #59 by kobra

I have a managed server
You pop for a managed server but then skimp out on getting your own SSL Certificate???

Zen-Venom Get Bitten

21 Feb 2013, 10:09 AM
#60
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #60 by drbyte

rayw1679:

This is what I had under 1.3.8, and it worked fineand indeed it should still work just fine.

I thought you'd posted awhile back that the problem was resolved. So I'm puzzled.
And I'm unclear whether this is still something you think is to be blamed on PHP 5.4 or on ZC 1.5.1
And I'm also unclear about what the latest "symptoms" are. Is this a login issue only? Does it affect both the storefront and the admin, or just one?
Sorry, with pages and pages of seemingly the same thing, I'm lost. Especially since I can't replicate any of the problems (as far as I've interpreted what I think you meant to say) on any of the various server configurations I've tried.

I will re-state again: as far as the SSL settings go, there were no changes between 1.3.8 and 1.5.1 (other than adding some extra controls over cookie handling). But nothing which would be specific to PHP 5.4 compared to prior versions ... unless your host's PHP configurations are different between the two versions and are thus to blame for the problem.

.
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.