If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Other Business Topics / zenID always present after changing http_server to https://

zenID always present after changing http_server to https://

Started by rixstix on 11 Mar 2017, 6:55 PM · Views: 1,496

Results 41 to 60 of 76
20 Apr 2017, 7:58 PM
#41
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

zenID always present after changing http_server to https://

I now have a valid SSL cert on my 2 sandbox servers.
4 installs of ZC154 on 3 different servers/same host .... the live zc154, sandbox1 duplicate of the live zc154, sandbox1 vanilla 154 and sandbox vanilla 154 have the same zenID behavior. php versions are different 5.6.29, 5.6.30 and 7.0.18, mySQL or Mariadb are different. Sandbox servers are shared, running Litespeed, Live server is VPS running apache

sandbox2 zc155d with copy of live database, zenID behaves as expected.

My Question:
IF it were a server configuration issue, wouldn't the zenID issue be present regardless of zc version?

I'm just trying to understand because I expect to be in the middle of a pissin' contest if I ask the host to fix something without being able to articulate the problem.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

21 Apr 2017, 11:28 PM
#42
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

Nevermind,

They all behave similarly. 153, 154 and 155 vanilla installs.
My mistake with browsers and not getting all the cookies cleared between tests.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

26 Apr 2017, 10:50 AM
#43
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

Hi RixStix,

I'm having the exact same problem.

I incoporated your fix that you found in the other forum.

While the fix seems to work, it does not add the ZENID to the initial visit to begin with. So it's now missing ZENID completely even before the second link...I wonder if you're seeing the same thing.

I'm using Let's Encrypt, which is a free SSL provided, and my host automatically installs it for every domain / hosting account. I wonder if this isn't the problem to begin with.

26 Apr 2017, 10:59 AM
#44
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

Sorry,

just an update:

I reverted those changes for the time being fearing that no ZENID intiially might cause a problem.

Anyhow, I decided to give the FORCE COOKIE USE a go, and after setting it to true, it causes issues with an initial log in. So if you clear cache, cookies, and everything, and visit the site, and the first thing you do is use a login sidebox to login, it gives the WHOOPS SESSION HAS TIMEOUT error. One the second attempt it successfully logs in, but first attempt fails everytime.

26 Apr 2017, 1:43 PM
#45
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

yaseent:

While the fix seems to work, it does not add the ZENID to the initial visit to begin with. So it's now missing ZENID completely even before the second link...I wonder if you're seeing the same thing.

I have not seen any negative functionality (knock on wood).

Anyhow, I decided to give the FORCE COOKIE USE a go, and after setting it to true, it causes issues with an initial log in. So if you clear cache, cookies, and everything, and visit the site, and the first thing you do is use a login sidebox to login, it gives the WHOOPS SESSION HAS TIMEOUT error. One the second attempt it successfully logs in, but first attempt fails everytime.

I also found out (the hard way) that FORCE COOKIE USE causes session problems with Authorize.net SIM credit card processing. Payment is authorized and captured but no return to the ZC to generate the order. Luckily, a non-grumpy customer contacted me privately about the issue.

I am still gathering information before asking the host "Something is wrong, please fix it", without being able to furnish much more technical details than that.

We are using a Comodo SSL certificate renewed earlier this month, installed by the host.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

26 Apr 2017, 2:10 PM
#46
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

Hi RixStix,

thanks for reply.

So, just to clarify, with the fix you applied from that other forum post, are you also not seeing ZENID on the intial visit at all?

I'm inclined to install a paid SSL to check if that resolves it without any fixes, but my host is not willing to give me the SSL based on a trial. GeoTrust for example gives you free SSL trial for 30 days. I'm more than happy to use Let's Encrypt, which is free and green lock - but if getting a paid SSL resolves the issue without needing to apply temporary fixes I'd definitely go that route. I'm quite certain though this is not a SSL issue.

It must be a session issue. Can anyone else using forced HTTPS confirm whether they have this issue or not? It would require clearing cookies and cache to check if the issue persists.

What's more, I tested it out on another host as well. And same issue. Is it not possibly a ZenCart issue?

26 Apr 2017, 2:37 PM
#47
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

yaseent:

So, just to clarify, with the fix you applied from that other forum post, are you also not seeing ZENID on the intial visit at all?

Initial visit: no zenID.

yaseent:

I'm inclined to install a paid SSL to check if that resolves it without any fixes, but my host is not willing to give me the SSL based on a trial. GeoTrust for example gives you free SSL trial for 30 days. I'm more than happy to use Let's Encrypt, which is free and green lock - but if getting a paid SSL resolves the issue without needing to apply temporary fixes I'd definitely go that route. I'm quite certain though this is not a SSL issue.

I've never heard of anyone having a problem with Let's Encrypt properly installed. I use SSL cert purchased through host because of convenience and that relieves me of dealing with any related issues.

yaseent:

It must be a session issue. Can anyone else using forced HTTPS confirm whether they have this issue or not? It would require clearing cookies and cache to check if the issue persists.

I dunno. I assume that if it were, DrByte would be able to recreate the issue and offer a suggestion.
I finally have 2 vanilla installs on different servers, same host. One vanilla install always shows the zenID in every URL until you click the logo, then the zenID disappears for every URL afterwards. The other vanilla install never shows the zenID.

yaseent:

What's more, I tested it out on another host as well. And same issue. Is it not possibly a ZenCart issue?

I don't think it is a zc issue.
Waiting to see what host says is different between the 2 servers (other than php version, db version and server (litespeed vs apache))

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

26 Apr 2017, 2:43 PM
#48
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

Hey RixStix,

thanks for the feedback. Awesome stuff man, will be really great to be able to isolate the issue.

My two hosts are Apache. I have a third host on Apache as wel, but it's running a different version of PHP. I'm going to give it a go there tonight and see how that goes.

Looking forward to hearing from you when your host reverts.

Thanks again.

P.S. I contacted my host and told them something's wrong with their stuff. They gave me the usual, no, something's wrong with your stuff response...So...yeah :dontgetit

26 Apr 2017, 5:45 PM
#49
drbyte avatar

drbyte

Sensei

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

Re: zenID always present after changing http_server to https://

yaseent:

I'm using Let's Encrypt, which is a free SSL provided, and my host automatically installs it for every domain / hosting account. I wonder if this isn't the problem to begin with.
I use Lets Encrypt on dozens of sites, and none of them have any problems with normal Zen Cart operation.

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

26 Apr 2017, 6:27 PM
#50
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

As expected, the fingerpointing started. Host says it is a zencart issue because there no differences in php setups between servers and sent me links to OLD threads totally unrelated.

I made another test using zc154 vanilla install and switched php versions on the same server, same certificate.

php 7.0.18 functions as expected
php 5.6.30 zenID not removed.

Waiting for host to identify the difference in php setup.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

26 Apr 2017, 6:59 PM
#51
drbyte avatar

drbyte

Sensei

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

Re: zenID always present after changing http_server to https://

You can do a preliminary comparison of PHP configs using the Server Info page in your Admin (copy screen contents to a text file, switch PHP versions, grab the updated screen contents, compare the two text files using WinMerge or Beyond Compare, etc)

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

26 Apr 2017, 7:44 PM
#52
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

So I decided to do the force HTTPS on my local webserver.

ZENID persists. I don't know if this will help, I've attached phpinfo, httpd.conf, ssl conf and php.ini (production).Attachment #17040

26 Apr 2017, 9:38 PM
#53
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: zenID always present after changing http_server to https://

yaseent:

Hi RixStix,

I'm having the exact same problem.

I incoporated your fix that you found in the other forum.

While the fix seems to work, it does not add the ZENID to the initial visit to begin with. So it's now missing ZENID completely even before the second link...I wonder if you're seeing the same thing.

I'm using Let's Encrypt, which is a free SSL provided, and my host automatically installs it for every domain / hosting account. I wonder if this isn't the problem to begin with.

Just to be sure that expectations match, when you say that the zenid is not added on the initial visit, you are looking at the links that are generated (typically not the link associated with the logo) and not just at the browser address bar, correct? The zenid is not seen in the browser address when first landing at the site (or if an existing session is present), but will (or is supposed to) appear there once navigating to the "first" or next page.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

26 Apr 2017, 10:07 PM
#54
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

HI MC,

Sorry your second sentence is a bit confusing for me at this time of the night.

So yeah, this is how the ZENID is supposed to work (I think):
When you visit the site, every single link that appears on the page, if you hover your mouse over either of these links, it shows the ZENID apended to the end of the each link. (Initial Visit)
When you click on either of these links, you see ZENID in your URL bar once the link you clicked on loads. (part of intial visit)
Subsequently, ZENID does not make another appearance.
Right?

So basically now with this workaround applied, ZENID doesn't make any appearance, whatsoever, anywhere. Even on the intial visit.

26 Apr 2017, 10:26 PM
#55
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

DrByte:

You can do a preliminary comparison of PHP configs using the Server Info page in your Admin (copy screen contents to a text file, switch PHP versions, grab the updated screen contents, compare the two text files using WinMerge or Beyond Compare, etc)

TNX. Done. difference can be seen but that doesn't matter if a person doesn't know what to look for.
I can see differences that obviously can be ignored. Other differences is a whole different ball of wax.

It would be nice to have a "TROPHY" to hold/point at that says.... "This is the culprit"

php56 doesn't function as expected regarding zenID
php70 does function as expected regarding zenID

For me, it would help to have a comparable file for php56 from an install that is functioning as expected regarding zenID

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

26 Apr 2017, 10:55 PM
#56
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: zenID always present after changing http_server to https://

yaseent:

HI MC,

Sorry your second sentence is a bit confusing for me at this time of the night.

So yeah, this is how the ZENID is supposed to work (I think):
When you visit the site, every single link that appears on the page, if you hover your mouse over either of these links, it shows the ZENID apended to the end of the each link. (Initial Visit)
When you click on either of these links, you see ZENID in your URL bar once the link you clicked on loads. (part of intial visit)
Subsequently, ZENID does not make another appearance.
Right?

So basically now with this workaround applied, ZENID doesn't make any appearance, whatsoever, anywhere. Even on the intial visit.

Generally agree with the explanation provided there of what is expected. The one difference at least with a default ZC install is the "logo link". That link is built using HTTP_SERVER . DIR_WS_CATALOG instead of using a zen_href_link style function. It is partially also why RixStix could select that link and make the zenid "go away" when troubled with it always being present. Basically it appears/appeared that so long as something allowed the senid to persist then it would. It seems that once a link was selected that specifically did not include code to add the zenid, then it would remain off of the url because truly the action to "store" it had already happened but if so detected wasn't removed or possibly not detected as being present or some variation on that thought.

Anyways, I just wanted to be sure that the search for the presence of the zenid wasn't only by looking at the browser's address bar when first accessing a site after sessions/cookies had been removed. Hope you get/got some good rest!

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Apr 2017, 3:52 PM
#57
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

Hey RixStix,

in your File Manager, where your public_html folder is, do you see an SSL folder, i.e. /home/username/ - and SSL folder would be /home/ssl/

27 Apr 2017, 4:06 PM
#58
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

Yes there is a folder.

Though I would like to have a trophy, I can accept that the issue is not worth spending the time/money looking at an older zencart version and/or older php version that is scheduled to be forced out by the host in the next 6 months or so.

If the issue were widespread, that also would be a different issue.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

28 Apr 2017, 10:23 AM
#59
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: zenID always present after changing http_server to https://

I'm not sure anymore bro.

I installed it on my third host, which has a different version of Apache.

To sum up the problem occurs on:

  1. on my local webserver with PHP 5.4 and Apache 2.2

  2. on my primiary host with PHP 5.6 and Apache 2.2

  3. on my one secondary hosts, running PHP 5.6 (tested with PHP selector from 5.2 up to 5.6) and Apache 2.2.

  4. on my other secondary host, also running PHP 5.6 (tested with PHP selector from 5.2 up to 5.6) and Apache 2.2.

  5. on my last secondary host, running PHP 5.6 and Apache 2.4.

Also, you say the problem does not occur on your installation on PHP 7. I tested out on 2 of my secondary hosts with PHP 7, and, while the ZENID doesn't attach itself to generated URLs, the INITIAL occurence of ZENID doesnt happen either. So ZENID is entirely and completely missing with my test on PHP 7.

28 Apr 2017, 2:13 PM
#60
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: zenID always present after changing http_server to https://

yaseent:

Also, you say the problem does not occur on your installation on PHP 7. I tested out on 2 of my secondary hosts with PHP 7, and, while the ZENID doesn't attach itself to generated URLs, the INITIAL occurence of ZENID doesnt happen either. So ZENID is entirely and completely missing with my test on PHP 7.

YES, similar observation. I never see the issue regarding zenID on a vanilla zencart install on either of my 2 sandbox servers when switched to php7. I don't trust myself to do anything on the live server. An OOOPS on my part would take way too long to UnDo. BTDT and it is not fun when my superfast internet connection of 1 point 5 megabits decides to hiccup in the middle of a restore.

At the time I made the vanilla install, I did not have php7 in mind, so I had installed zencart 153 and 154 which are not specified to play nice with php7.

I don't really worry about the zenID not being present on the first page. It is never present when in the Admin area either.

My host and I have agreed that the issue is not worth spending the technical time in an attempt to find a resolution to this one-off instance that so far only you and I have been able to duplicate using a vanilla zencart install on different servers with at least 2 different hosts with varying setups of apache/litespeed, mySQL/mariaDB. The only seemingly constant is the change in php version.

Website Rob:

I also experience the line jump starting about 10 days ago, give or take. Now, when replying with Quote and if not making any changes to the Quote, I automatically hit the Backspace key before typing to avoid it.

I first experienced the jumping several years ago but always when using my MSFT Surface RT tablet out in the manufacturing building. The Surface RT is limited to 2 different variants of Internet Explorer with no way to install Chrome or FireFox. I just learned to never, ever attempt a reply when out there. Still to this date.

At least now, I know that I am not alone in the observation and it has grown to exist in FireFox and Chrome.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com