Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / V1.5.0 to 1.5.4 update. Credit Cards not showing at checkout. Only money order.

V1.5.0 to 1.5.4 update. Credit Cards not showing at checkout. Only money order.

30 Dec 2015, 8:37 PM
#21
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #21 by mc12345678

QuickBooksDev:

All the credentials have been carried forward. There is nothing in zencart154/logs for the times I run these tests even though logging is on.

Am I looking in the right folder?

The last entry in logs was 2 days ago.

I would think that if the credentials are bad it would show up later when attempting to connect with AuthNet not in the display of Payment Methods.

Per line 106 of includes/modules/payment/authorizenet_aim.php of ZC Version 1.5.4 or line 104 of ZC Version 1.5.5

    $this->_logDir = defined('DIR_FS_LOGS') ? DIR_FS_LOGS : DIR_FS_SQL_CACHE;

So, if DIR_FS_LOGS is defined, then it will use the definition of DIR_FS_LOGS which is provided in the includes/configure.php file, otherwise it will use DIR_FS_SQL_CACHE which is also defined in that file. But, it doesn't do any type of check to verify the existence of the folder, just that the constant is defined...

Then based on the code in the plugin for update_status:

  function update_status() {
    global $order, $db;
    if (IS_ADMIN_FLAG === false) {
      // if store is not running in SSL, cannot offer credit card module, for PCI reasons
      if (MODULE_PAYMENT_AUTHORIZENET_AIM_TESTMODE != 'Test' && (!defined('ENABLE_SSL') || ENABLE_SSL != 'true')) $this->enabled = FALSE;

It would appear that placing the payment module in test and it working indicates that ENABLE_SSL is not defined or is not equal to 'true'. This is further reason to provide your includes/configure.php to validate the setup. Otherwise how is your version of includes/modules/payment/authorizenet_aim.php different from a default version?

The above test basically says with consideration of being in test mode that if you are in test mode then the module doesn't care whether SSL is defined or enabled, it will allow the plugin to move forward/operate, though later in the code, being in testmode will prevent the purchase from being considered official.

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

30 Dec 2015, 8:37 PM
#22
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #22 by quickbooksdev

How can you tell if the shared cert is configured correctly and would that stop the display of the credit card info on the checkout screen?

30 Dec 2015, 8:41 PM
#23
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #23 by quickbooksdev

  1. Both Authorize.Net (AIM) and Check/Money Order are 0.

I had previously changed Authorize.Net to 1 and 10 but it did not make a difference.

30 Dec 2015, 8:48 PM
#24
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #24 by quickbooksdev

mc12345678:

Per line 106 of includes/modules/payment/authorizenet_aim.php of ZC Version 1.5.4 or line 104 of ZC Version 1.5.5

$this->_logDir = defined('DIR_FS_LOGS') ? DIR_FS_LOGS : DIR_FS_SQL_CACHE;
> 
> So, if DIR_FS_LOGS is defined, then it will use the definition of DIR_FS_LOGS which is provided in the includes/configure.php file, otherwise it will use DIR_FS_SQL_CACHE which is also defined in that file.  But, it doesn't do any type of check to verify the existence of the folder, just that the constant is defined...
> 
> Then based on the code in the plugin for update_status:
> ```
  function update_status() {
    global $order, $db;
    if (IS_ADMIN_FLAG === false) {
      // if store is not running in SSL, cannot offer credit card module, for PCI reasons
      if (MODULE_PAYMENT_AUTHORIZENET_AIM_TESTMODE != 'Test' && (!defined('ENABLE_SSL') || ENABLE_SSL != 'true')) $this->enabled = FALSE;

It would appear that placing the payment module in test and it working indicates that ENABLE_SSL is not defined or is not equal to 'true'. This is further reason to provide your includes/configure.php to validate the setup. Otherwise how is your version of includes/modules/payment/authorizenet_aim.php different from a default version?

The above test basically says with consideration of being in test mode that if you are in test mode then the module doesn't care whether SSL is defined or enabled, it will allow the plugin to move forward/operate, though later in the code, being in testmode will prevent the purchase from being considered official.

DIR_FS_LOGS was not defined but is now.
But I looked in define('DIR_FS_SQL_CACHE', 'D:/Inetpub/aaatex/ZenCart154B/cache')
and there are no debug logs there. Nothing at all from today.

Perhaps my configure files are bad?????

30 Dec 2015, 8:50 PM
#25
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #25 by mc12345678

lat9:

Is your site running with an SSL certificate? I believe that one of the authorizenet_aim changes going from ZC 1.5.0 -> 1.5.4 was the requirement that the checkout process be SSL-secured for that payment module to be enabled.

QuickBooksDev:

We are using a shared SSL cert. It should be enabled.

How can I tell if it is enabled and is working for 1.5.4?

lat9:

When you go to your login page, does the link show https://www.yourstore.com? If it does, then you've got SSL enabled.

QuickBooksDev:

Yes, it is https://.... just like 1.5.0
https://www1122.ssldomain.com/...
It is a shared cert.

This line of question and answer does not confirm that the constant ENABLE_SSL is set to true, as the store owner could have set the HTTP_SERVER to https: and would see the same result throughout the store functionality, but the plugin doesn't look at that for operation but instead at ENABLE_SSL which is defined in includes/configure.php (or previously defined in includes/local/configure.php if included for development).

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

30 Dec 2015, 8:54 PM
#26
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #26 by mc12345678

QuickBooksDev:

DIR_FS_LOGS was not defined but is now.
But I looked in define('DIR_FS_SQL_CACHE', 'D:/Inetpub/aaatex/ZenCart154B/cache')
and there are no debug logs there. Nothing at all from today.

Perhaps my configure files are bad?????

Honestly don't know, though if the upgrade had been performed as recommended then the configure.php file would have included a define for DIR_FS_LOGS... Otherwise, just guessing until they are provided for comment.

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

30 Dec 2015, 8:59 PM
#27
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #27 by quickbooksdev

I do not see an ENABLE_SSL in either configure.php (user and admin). I do see ENABLE_SS_CATALOG and ENABLE_SSL_ADMIN set to true.

So it looks like I have a bad configure.php????

Shall I just add define('ENABLE_SSL', 'true');

or is there a better way to re-build configure.php???

30 Dec 2015, 9:08 PM
#28
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #28 by quickbooksdev

I am having an issue updating configure.php. The server is locking it up for some reason.

30 Dec 2015, 9:12 PM
#29
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #29 by mc12345678

QuickBooksDev:

I do not see an ENABLE_SSL in either configure.php (user and admin). I do see ENABLE_SS_CATALOG and ENABLE_SSL_ADMIN set to true.

So it looks like I have a bad configure.php????

Shall I just add define('ENABLE_SSL', 'true');

or is there a better way to re-build configure.php???

Really all depends on your proficiency, level of effort, desire to have it generated one way or another... Could have had all of the issues identified by this point by posting it, and since that hasn't been taken as an option:

You have:

  1. Temporarily remove the current includes/configure.php (rename, copy to local machine, etc.) and upload the zc_install directory from a fresh copy of ZC for your version. Run zc_install on the site but use a db_prefix that is not currently in use and do not install the default product... Modify the created includes/configure.php file to use the db_prefix of your active store. Then wthin phpmyadmin (or other generate sql document) remove (drop) all the tables that begin with that prefix.
  2. Reference the provided dist-configure.php file (or whatever it's called I forget now) to see what lines shold exist in the standard version of that file.
  3. Create a local version of the file by doing an install on a local computer, follow the FAQs (I leave dscovery of those to you at the moment) to "move" to the applicable server/database... If making a local copy/install be sure you are not referencing your live site's database because installation anew will delete the old database...
  4. Combinations of the above or other FAQs on how to verify/check your configure.php.

Or, post the thing excluding the sensitive data but maintaining the formatting (ie end of line has a / or there is a subdirectory involved, etc...) And the community will help... Already DrByte has stepped in to try to help... Not much bigger hitter than him and previously lat9's support...

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

30 Dec 2015, 9:14 PM
#30
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #30 by mc12345678

QuickBooksDev:

I am having an issue updating configure.php. The server is locking it up for some reason.

To clear or rather set the write permissions. And if you're using a tool that creates a backup when saving changes, the write permissions of that file need to allow writing to the file (or the file removed)...

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

30 Dec 2015, 9:16 PM
#31
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #31 by quickbooksdev

I use fileZilla. We have been having a server problem (Windows 2012) with configure.php going into ReadOnly mode with nothing that I can do to reset it. I have to get to my host provider support to do it. I do sometimes edit from FileZilla. Maybe that is setting it to ReadOnly??????

30 Dec 2015, 9:40 PM
#32
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #32 by quickbooksdev

I have uploaded a new configure.php.
with
define('ENABLE_SSL', 'true');
and
define('DIR_FS_LOGS'), 'D:/Inetpub/.../ZenCart154B/logs');

and now my checkout page is blank.

Still nothing in logs nor cache.

30 Dec 2015, 9:45 PM
#33
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #33 by quickbooksdev

I removed define('DIR_FS_LOGS'), 'D:/Inetpub/.../ZenCart154B/logs'); and now I get the check out screen WITH the credit card info:-):-):-):-):-)

What an ordeal!

I believe that the upgrade procedure was wrong. The update did not provide a configure.php and the doc said to copy the one from the old 1.5.0 which I did and changed the DB, etc.. But it seems that there is more that should be there.

I am kind of worried about define('DIR_FS_LOGS'), 'D:/Inetpub/.../ZenCart154B/logs'); causing the blank screen. Probably getting some type of error.

But thanks. Now I can relax for the evening.

30 Dec 2015, 9:46 PM
#34
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #34 by mc12345678

QuickBooksDev:

I use fileZilla. We have been having a server problem (Windows 2012) with configure.php going into ReadOnly mode with nothing that I can do to reset it. I have to get to my host provider support to do it. I do sometimes edit from FileZilla. Maybe that is setting it to ReadOnly??????

I forget where I've found the code that does it, but basically ZC self-preserves by making the store front configure.php read-only after "some" action... No filezilla is not setting it to read-only.

I did also forget another option for generating a new includes/configure.php file, backup the database, remove includes/configure.php (rename, copy to somewhere else, etc), upload the fresh zc_install, install the store anew which will overwrite the database, then upload the database like you were doing a standard upgrade. (Drop the tables associated with the current new store, import the backup of the tables made from this same ZC version).

Oh and then there is well, do the upgrade all over again, this time only changing pertinent data associated with the database assignment or store location, not by using an old version of the configure.php...

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

30 Dec 2015, 9:51 PM
#35
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #35 by quickbooksdev

Thanks

Before I do that I will work on the next problem when I entered an invalid credit card
Communications Error - Please notify webmaster. - Your credit card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.

Log in logs has

Comm results: 60 SSL certificate problem: unable to get local issuer certificate

30 Dec 2015, 9:51 PM
#36
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #36 by mc12345678

QuickBooksDev:

I removed define('DIR_FS_LOGS'), 'D:/Inetpub/.../ZenCart154B/logs'); and now I get the check out screen WITH the credit card info:-):-):-):-):-)

What an ordeal!

I believe that the upgrade procedure was wrong. The update did not provide a configure.php and the doc said to copy the one from the old 1.5.0 which I did and changed the DB, etc.. But it seems that there is more that should be there.

I am kind of worried about define('DIR_FS_LOGS'), 'D:/Inetpub/.../ZenCart154B/logs'); causing the blank screen. Probably getting some type of error.

But thanks. Now I can relax for the evening.

Umm that's because that is a completely incorrect format for a define:

define('DIR_FS_LOGS'), 'D:/Inetpub/.../ZenCart154B/logs');

Should be:

define('DIR_FS_LOGS', 'D:/Inetpub/.../ZenCart154B/logs');

As it has an extra right parenthesis in the wrong location...

All depends on where you look for the directions to install... Unfortunately it would seem that the documents for the ZC 1.5.4 version didn't get a good read thru before initial distribution, but that's also why the forum is here which is to help others with their issue... Speaking of which, there is one that could use your input if it's not too much for you.

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

30 Dec 2015, 9:53 PM
#37
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #37 by quickbooksdev

mc12345678:

I forget where I've found the code that does it, but basically ZC self-preserves by making the store front configure.php read-only after "some" action... No filezilla is not setting it to read-only.

I did also forget another option for generating a new includes/configure.php file, backup the database, remove includes/configure.php (rename, copy to somewhere else, etc), upload the fresh zc_install, install the store anew which will overwrite the database, then upload the database like you were doing a standard upgrade. (Drop the tables associated with the current new store, import the backup of the tables made from this same ZC version).

Oh and then there is well, do the upgrade all over again, this time only changing pertinent data associated with the database assignment or store location, not by using an old version of the configure.php...

And at the same time trying to keep this database in sync with the real production database on ZC1.5.0. Oh boy!

30 Dec 2015, 10:06 PM
#38
mc12345678 avatar

mc12345678

Totally Zenned

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

Post #38 by mc12345678

QuickBooksDev:

Thanks

Before I do that I will work on the next problem when I entered an invalid credit card
Communications Error - Please notify webmaster. - Your credit card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.

Log in logs has

Comm results: 60 SSL certificate problem: unable to get local issuer certificate

Just so I understand correctly, you're going to troubleshoot the error message received for when an incorrect credit card is provided? Reason that is important?

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

30 Dec 2015, 10:14 PM
#39
quickbooksdev avatar

quickbooksdev

New Zenner

Join Date:
Sep 2015
Location:
Daytona Beach, FL USA
Posts:
69
Plugin Contributions:
0

Post #39 by quickbooksdev

mc12345678:

Just so I understand correctly, you're going to troubleshoot the error message received for when an incorrect credit card is provided? Reason that is important?

The log had
Comm results: 60 SSL certificate problem: unable to get local issuer certificate
which to me is not caused by an invalid cc number. Or does it???????

30 Dec 2015, 10:24 PM
#40
drbyte avatar

drbyte

Sensei

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

Post #40 by drbyte

QuickBooksDev:

The log had
Comm results: 60 SSL certificate problem: unable to get local issuer certificate
which to me is not caused by an invalid cc number. Or does it???????
No, that has nothing to do with the CC number. It's caused by the server's internal SSL Certificate Authorities (not your shared certificate) not being up-to-date. Your hosting company has to fix that.

Try running http://your_site.com/extras/curltester.php to expose the CURL+SSL problems on your server, and let your hosting company take care of those ... that file is self-contained but will test CURL the same way ZC uses it, but without needing to run ZC to do the testing.

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