Jump to content

e-Payments Interac - allowed Zones


Papirus39

Recommended Posts

Hi bsmither,

Is there someting else to do except filling the general tab for having this module to work?

In the adress bar I Have:

xxx.com/index.php?_g=rm&type=gateway&cmd=call&module=e_Payments_Interac&cart_order_id=150518-141806-1255

And the page stay blank, no error, no message

There is something that I'm doing wrong for sure.

Thanks

 

 

Link to comment
Share on other sites

That URL is correct, and I get a page with a [Close] [Print] in the upper-left corner, and a summary of the order.

Generally, when one gets a blank white page, there is a problem with the Smarty template. In this case, it would be in the module's folder, /skin/print.tpl. My copy has 108 lines of code.

Also, Smarty will throw an error if the template has something wrong with it, but CubeCart's admin, Error Log is too late to record it. However, it should show up in PHP's error_log.

You said, "I Enable the error log." Please explain which error log and where did you enable it? I ask because many think the web server error log shown to you in the hosting account control panel is all that is needed. You actually want PHP's error_log.

Do this, then report back.

 

Link to comment
Share on other sites

Hi.

On the webhost server the php error log is on.

Here is a part of the recent content:

[Mon May 18 19:15:39 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/406.shtml, referer: http://vapchoix.com/index.php?_a=gateway
[Mon May 18 19:15:21 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/404.shtml, referer: http://vapchoix.com/index.php?_a=checkout
[Mon May 18 19:15:21 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/public_html, referer: http://vapchoix.com/index.php?_a=checkout
[Mon May 18 19:15:20 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/406.shtml, referer: http://vapchoix.com/index.php?_a=checkout
[Mon May 18 19:13:53 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/404.shtml, referer: http://vapchoix.com/index.php?_a=checkout
[Mon May 18 19:13:53 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/public_html, referer: http://vapchoix.com/index.php?_a=checkout
[Mon May 18 19:13:53 2015] [error] [client 216.246.238.153] File does not exist: /home/coiff264/public_html/vapchoix.com/406.shtml, referer: http://vapchoix.com/index.php?_a=checkout

I hope this will help you to help me.

Link to comment
Share on other sites

Please create the file I linked to earlier.

What you posted above is the web server error log. The web server error log is saying that a document to display 404 and 406 errors does not exist.

This payment gateway provides no method of collecting payment. Therefore, CubeCart considers this order as Pending (as the order is still expecting payment).

Link to comment
Share on other sites

I hope thats the file you're speaking about:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$LANG.common.order_id} {$SUM.cart_order_id}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="modules/gateway/e_Payments_Interac/skin/style/print.css" media="screen,print" />
<style type="text/css" media="print">
form, input.button {
    display: none;
    visibility: hidden;
}
</style>
</head>

<body>
<form action="index.php" method="get">
  <input type="submit" value="{$LANG.common.close}" class="button" />
  <input type="button" value="{$LANG.common.print}" class="button" onclick="window.print();" />
  </form>

<div id="wrapper">
  <div id="header">
     <img src="{$STORE_LOGO}" alt="" />
  </div>

  <div id="address">
    <div id="deliver-to">
      <strong>{$LANG.address.delivery_address}</strong><br />
      {$ADDRESS_DELIVERY.title} {$ADDRESS_DELIVERY.first_name} {$ADDRESS_DELIVERY.last_name}<br />
      {if !empty($ADDRESS_DELIVERY.company_name)}{$ADDRESS_DELIVERY.company_name}<br />{/if}
      {$ADDRESS_DELIVERY.line1} <br />
      {if !empty($ADDRESS_DELIVERY.line2)}{$ADDRESS_DELIVERY.line2}<br />{/if}
      {$ADDRESS_DELIVERY.town}<br />
      {$ADDRESS_DELIVERY.state}, {$ADDRESS_DELIVERY.postcode}<br />
      {$ADDRESS_DELIVERY.country}
    </div>
    <div id="invoice-to">
    <strong>{$LANG.address.billing_address}</strong><br />
      {$ADDRESS_INVOICE.title} {$ADDRESS_INVOICE.first_name} {$ADDRESS_INVOICE.last_name}<br />
      {if !empty($ADDRESS_INVOICE.company_name)}{$ADDRESS_INVOICE.company_name}<br />{/if}
      {$ADDRESS_INVOICE.line1}<br />
      {if !empty($ADDRESS_INVOICE.line2_d)}{$ADDRESS_INVOICE.line2}<br />{/if}
      {$ADDRESS_INVOICE.town}<br />
      {$ADDRESS_INVOICE.state}, {$ADDRESS_INVOICE.postcode}<br />
      {$ADDRESS_INVOICE.country}
    </div>
  </div>

  <div id="info">
    <span style="float: right;"><strong>{$LANG.common.order_id}:</strong> {$SUM.cart_order_id}</span>
    <strong>{$LANG.common.date}:</strong> {$ORDER_DATE}
  </div>

  <div class="product">
    <span class="price"><strong>{$LANG.common.price}</strong></span>
    <strong>{$LANG.common.product}</strong>
  </div>

  {foreach from=$ITEMS item=item}
  <div class="product">
    <span class="price">{$item.price_total}</span>
    {$item.quantity} x {$item.name} {if !empty({$item.product_code})}- {$item.product_code}{/if} ({$item.price})<br />
    {if $item.options}
      {foreach from=$item.options item=option}
        {$option} <br />
      {/foreach}
    {/if}
  </div>
  {/foreach}

  <div id="totals">
    <div class="total">{$LANG.basket.total_sub}: {$SUM.subtotal}</div>
    <div class="total">{$LANG.basket.total_discount} {if $SUM.percent}({$SUM.percent}){/if}: {$SUM.discount}</div>
    <div class="total">{$LANG.basket.shipping}: {$SUM.shipping}</div>
    {if $TAX}
        <div class="total">{$LANG.basket.total_tax}: {$TAX}</div>
      {elseif $TAXES}
          {foreach from=$TAXES item=tax}
          <div class="total">{$tax.name}: {$tax.value}</div>
          {/foreach}
      {/if}
    <div class="total"><strong>{$LANG.basket.total_grand}: {$SUM.total}</strong></div>
  </div>
  {if !empty($SUM.customer_comments)}
  <div>{$LANG.basket.your_comments}:<br /><em>&quot;{$SUM.customer_comments}&quot;</em></div>
  {/if}

  {if $BANK}
  <div class="payment_method">
    <strong>Pay by e-Payment Bank Transfer - Interac</strong><br />
    <br />
    <div><strong>{$LANG.gateway.bank_name}:</strong> {$MODULE.bankName}</div>
    <div><strong>{$LANG.gateway.bank_account_name}:</strong> {$MODULE.accName}</div>
    <div><strong>e-Payment Email Address:</strong> {$MODULE.addressCode}</div>
    <div><strong>e-Payment Secret Question ?</strong> {$MODULE.secretCode}</div>
    <div><strong>Answer to Secret Question ?</strong> {$MODULE.answerCode}</div>
 </div>
  {/if}

  <div id="thanks">{$LANG.common.thanks}</div>
  <div id="footer">
    {$LANG.gateway.postal_address}: {$STORE.address}, {$STORE.county}, {$STORE.postcode} {$STORE.country}<br />
    {$STORE.name}, {$STORE.url}
  </div>

</div>
</body>
</html>

Link to comment
Share on other sites

I did it. But there was a error_log in the main folder. Must I remove the ini-custom.inc.php file

The last errors:

[18-May-2015 20:38:11 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 218
[18-May-2015 20:38:12 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 218
[18-May-2015 20:38:27 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 218
[18-May-2015 20:38:47 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 218

Link to comment
Share on other sites

If you wish, you may remove the ini-custom file, but then you may not get any more errors logged in a convenient error_log file.

Those last errors are just warnings and won't cause PHP to crash. On the other hand, it seems CubeCart is having some difficulty gathering up the list of inventory for this order.

Not being able to view the order's details in the CubeCart administration is very much linked to the module's inability to get a summary of the order to print.

Please try to look further back in the error log to see if any log entries are related to not being able to write to the database.

The module's code is written such that, if CubeCart cannot deliver the data about the order (who and what), the module just dead-ends with no output and no default jumping back to the main page with an error message.

Link to comment
Share on other sites

This resume the error log since may the 14th

[04-May-2015 02:46:02 Europe/London] PHP Warning:  unlink(/home/coiff264/public_html/vapchoix.com/setup) [<a href='http://docs.php.net/manual/en/function.unlink.php'>function.unlink.php</a>]: No such file or directory in /home/coiff264/public_html/vapchoix.com/admin/sources/dashboard.index.inc.php on line 38
[04-May-2015 09:47:02 Canada/Eastern] PHP Notice:  Failed loading XML:Start tag expected, '<' not found
 in /home/coiff264/public_html/vapchoix.com/classes/language.class.php on line 570
[04-May-2015 13:53:08 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113
[04-May-2015 10:13:29 Canada/Eastern] PHP Warning:  unlink(/home/coiff264/public_html/vapchoix.com/language/fr-FR.xml) [<a href='http://docs.php.net/manual/en/function.unlink.php'>function.unlink.php</a>]: No such file or directory in /home/coiff264/public_html/vapchoix.com/classes/language.class.php on line 580
[06-May-2015 09:16:58 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/admin/sources/products.index.inc.php on line 369

[07-May-2015 15:36:13 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113
[07-May-2015 12:17:52 Canada/Eastern] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/coiff264/public_html/vapchoix.com/includes/functions.inc.php:305) in /home/coiff264/public_html/vapchoix.com/includes/functions.inc.php on line 661

[09-May-2015 09:39:02 Canada/Eastern] PHP Warning:  fread() [<a href='http://docs.php.net/manual/en/function.fread.php'>function.fread.php</a>]: Length parameter must be greater than 0 in /home/coiff264/public_html/vapchoix.com/admin/sources/maintenance.index.inc.php on line 237
[09-May-2015 09:39:03 Canada/Eastern] PHP Warning:  unlink(/home/coiff264/public_html/vapchoix.com/setup) [<a href='http://docs.php.net/manual/en/function.unlink.php'>function.unlink.php</a>]: No such file or directory in /home/coiff264/public_html/vapchoix.com/admin/sources/maintenance.index.inc.php on line 271

[11-May-2015 12:49:09 Canada/Eastern] PHP Warning:  file_get_contents(/home/coiff264/public_html/vapchoix.com/modules/plugins/category_discounts/config.xml) [<a href='http://docs.php.net/manual/en/function.file-get-contents.php'>function.file-get-contents.php</a>]: failed to open stream: No such file or directory in /home/coiff264/public_html/vapchoix.com/controllers/controller.admin.session.true.inc.php on line 45

[12-May-2015 22:19:53 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113
[12-May-2015 22:20:29 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113
[12-May-2015 22:24:58 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '66.249.65.185' New IP Address: '66.249.65.171' Old User Agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' New User Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' in /home/coiff264/public_html/vapchoix.com/classes/session.class.php on line 650

[14-May-2015 10:58:40 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '66.249.64.241' New IP Address: '66.249.64.241' Old User Agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' New User Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' in /home/coiff264/public_html/vapchoix.com/classes/session.class.php on line 650

[14-May-2015 10:37:11 Canada/Eastern] PHP Warning:  in_array() expects parameter 2 to be array, null given in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 1322

[14-May-2015 11:09:07 Canada/Eastern] PHP Notice:  Canada Post Error -2001: Merchant CPC Id not found on server.  in /home/coiff264/public_html/vapchoix.com/modules/shipping/Canada_Post/shipping.class.php on line 84

[14-May-2015 19:18:36 Canada/Eastern] PHP Fatal error:  Call to undefined function price_tiers_setconfigoption() in /home/coiff264/public_html/vapchoix.com/modules/plugins/price_tiers/admin/index.inc.php on line 0
[14-May-2015 23:57:49 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113
[14-May-2015 20:22:02 Canada/Eastern] PHP Warning:  Division by zero in /home/coiff264/public_html/vapchoix.com/modules/plugins/price_tiers/hooks/class.cubecart.display_product.php on line 0

[14-May-2015 22:18:18 Canada/Eastern] PHP Notice:  modules/index needs to be updated. in /home/coiff264/public_html/vapchoix.com/classes/acp.class.php on line 205
[14-May-2015 22:18:18 Canada/Eastern] PHP Warning:  Unable to load content for modules:index in /home/coiff264/public_html/vapchoix.com/controllers/controller.admin.session.true.inc.php on line 84
[15-May-2015 03:37:14 Canada/Eastern] PHP Notice:  modules/index needs to be updated. in /home/coiff264/public_html/vapchoix.com/classes/acp.class.php on line 205
[15-May-2015 03:37:14 Canada/Eastern] PHP Warning:  Unable to load content for modules:index in /home/coiff264/public_html/vapchoix.com/controllers/controller.admin.session.true.inc.php on line 84

[15-May-2015 03:57:04 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 218

[15-May-2015 11:08:46 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '66.249.64.241' New IP Address: '66.249.64.246' Old User Agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' New User Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' in /home/coiff264/public_html/vapchoix.com/classes/session.class.php on line 650
[15-May-2015 12:52:17 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/admin/sources/settings.language.inc.php on line 172

[16-May-2015 04:09:01 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '66.249.64.251' New IP Address: '66.249.64.246' Old User Agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' New User Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' in /home/coiff264/public_html/vapchoix.com/classes/session.class.php on line 650

[18-May-2015 00:34:44 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/admin/sources/settings.language.inc.php on line 172

[18-May-2015 11:19:17 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '66.249.64.251' New IP Address: '66.249.64.251' Old User Agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' New User Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' in /home/coiff264/public_html/vapchoix.com/classes/session.class.php on line 650

[18-May-2015 12:28:52 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113

[18-May-2015 14:18:49 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '66.249.64.246' New IP Address: '66.249.64.246' Old User Agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' New User Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' in /home/coiff264/public_html/vapchoix.com/classes/session.class.php on line 650

[18-May-2015 12:53:19 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/cubecart.class.php on line 1977
[18-May-2015 17:20:34 UTC] PHP Warning:  Invalid Security Token in /home/coiff264/public_html/vapchoix.com/classes/sanitize.class.php on line 113
[18-May-2015 13:52:47 Canada/Eastern] PHP Warning:  Invalid argument supplied for foreach() in /home/coiff264/public_html/vapchoix.com/classes/order.class.php on line 218

Some errors were there many times.

Link to comment
Share on other sites

I didn't remove the ini-cutoms.inc.php yet, but there is no more reported in the error_log

But in the ini.inc.php

there was this:

// These are in case something goes wrong before we get to debug
ini_set('display_errors', true);
error_reporting(E_ALL ^ E_NOTICE);


if (version_compare(PHP_VERSION, '5.4.0') >= 0) {
    define('CC_PHP_ID', 54);
} elseif (version_compare(PHP_VERSION, '5.3.0') >= 0) {
    define('CC_PHP_ID', 53);
} elseif (version_compare(PHP_VERSION, '5.2.0') >= 0) {
    define('CC_PHP_ID', 52);
} else {
    die("You need PHP 5.2 or higher to use CubeCart.");

What will I have to do?

Thanks

Link to comment
Share on other sites

Definitely some problems.

This one, [18-May-2015 12:53:19 Canada/Eastern], implies you have no enabled gateways.

This one, [18-May-2015 13:52:47 Canada/Eastern], implies you have an order by that order number, but there is nothing in it.

This one, [07-May-2015 12:17:52 Canada/Eastern], implies a file was being downloaded from your store at the same time CubeCart was telling the browser to go to a different page. This one is interesting.

I will also recommend that you install one or more language packs. Maybe en-US and en-UK. I see that you tried to delete the fr-FR language pack.

If you upgraded to CC604, I will have to conclude that not all of the files got installed. This one, [15-May-2015 03:37:14 Canada/Eastern], implies that
/admin/sources/modules.index.inc.php does not exist, but rather
/admin/sources/modules.inc.php or
/admin/sources/modules/index.inc.php is present. These are probably from CC4.

 

Link to comment
Share on other sites

I see nothing unusual in the file, however, this query is merely interesting:

[70] SELECT SQL_CALC_FOUND_ROWS `status`, `countries` FROM `psCubeCart_modules` WHERE psCubeCart_modules.folder = 'languages' LIMIT 1; -- (0.000273942947388 sec) [CACHE READ]

But I do not know if it is significant.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...