Page 1 of 2 12 LastLast
Results 1 to 10 of 821

Hybrid View

  1. #1
    Join Date
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Zen-Cart 1.5.5e, PHP 5.4.44, MySQL 5.6.15, Square Payment Module 0.90.

    I have the files placed correctly, with square_handler.php in the domain/shop folder and the rest in domain/shop/includes. Application ID and Application Secret are entered correctly from the SquareUp.com app I created. I am seeing the red (Access Token needed). When I click on the green Click here I get the prompt and I enter the login and password for Square which then closes the tab and returns me to my Zen-Cart admin tab. Where can I find a log of the error?

  2. #2
    Join Date
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Aha, a clue perhaps... When I get sent back to Payment Modules I see:

    ERROR: module not loaded due to missing language file: C:/Web Files/localuser/CHCG/Shop/includes/languages/english/modules/payment/square_handler.php

    And that folder contains a file called square.php, not square_handler.php. Do I need to rename? The setting for the location for domain/shop/square_handler.php is correct on Square, so it doesn't make sense for it to be looking in the languages folders.
    Last edited by billsey5; 29 Apr 2018 at 01:00 AM.

  3. #3
    Join Date
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    No one has any ideas? I'm kind of stuck...

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,692
    Plugin Contributions
    11

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    ERROR: module not loaded due to missing language file: C:/Web Files/localuser/CHCG/Shop/includes/languages/english/modules/payment/square_handler.php
    Can you verify that this is what you are seeing?

    The system should NOT be looking for that file in that location.

    Square.php should be the correct file.

    Square_handler.php should be in the root of your site.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    I tried again a few minutes ago and didn't get that message again. I still just get returned without a request to authorize from Square. Where should I look for log files that might shed some light on this?

  6. #6
    Join Date
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    OK, I found what looks to be a logfile tied to the error. I've tweaked it just to hide the admin directory name. Looks like something to do with checking a version number?

    [03-May-2018 20:40:54 America/Los_Angeles] Request URI: /shop/...../modules.php?set=payment&module=square, IP address: 71.95.106.83
    #1 trigger_error() called at [C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php:68]
    #2 plugin_version_check_for_updates() called at [C:\Web Files\localuser\CHCG\Shop\includes\modules\payment\square.php:87]
    #3 square->__construct() called at [C:\Web Files\localuser\CHCG\Shop\.....\modules.php:185]

    [03-May-2018 20:40:54 America/Los_Angeles] PHP Notice: CURL error checking plugin versions: 60:SSL certificate problem: self signed certificate in certificate chain
    Trying file_get_contents() instead. in C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php on line 68
    [03-May-2018 20:40:56 America/Los_Angeles] Request URI: /shop/...../modules.php?set=payment&module=square, IP address: 71.95.106.83
    #1 file_get_contents() called at [C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php:70]
    #2 plugin_version_check_for_updates() called at [C:\Web Files\localuser\CHCG\Shop\includes\modules\payment\square.php:87]
    #3 square->__construct() called at [C:\Web Files\localuser\CHCG\Shop\.....\modules.php:185]

    [03-May-2018 20:40:56 America/Los_Angeles] PHP Warning: file_get_contents(https://plugins.zen-cart.com/versioncheck/156): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
    in C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php on line 70
    [03-May-2018 20:40:56 America/Los_Angeles] Request URI: /shop/...../modules.php?set=payment&module=square, IP address: 71.95.106.83
    #1 trigger_error() called at [C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php:72]
    #2 plugin_version_check_for_updates() called at [C:\Web Files\localuser\CHCG\Shop\includes\modules\payment\square.php:87]
    #3 square->__construct() called at [C:\Web Files\localuser\CHCG\Shop\.....\modules.php:185]

    [03-May-2018 20:40:56 America/Los_Angeles] PHP Notice: file_get_contents() error checking plugin versions.
    Trying http instead. in C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php on line 72
    [03-May-2018 20:40:56 America/Los_Angeles] Request URI: /shop/...../modules.php?set=payment&module=square, IP address: 71.95.106.83
    #1 file_get_contents() called at [C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php:73]
    #2 plugin_version_check_for_updates() called at [C:\Web Files\localuser\CHCG\Shop\includes\modules\payment\square.php:87]
    #3 square->__construct() called at [C:\Web Files\localuser\CHCG\Shop\.....\modules.php:185]

    [03-May-2018 20:40:56 America/Los_Angeles] PHP Warning: file_get_contents(http://plugins.zen-cart.com/versioncheck/156): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
    in C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php on line 73
    [03-May-2018 20:40:56 America/Los_Angeles] Request URI: /shop/...../modules.php?set=payment&module=square, IP address: 71.95.106.83
    #1 trigger_error() called at [C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php:76]
    #2 plugin_version_check_for_updates() called at [C:\Web Files\localuser\CHCG\Shop\includes\modules\payment\square.php:87]
    #3 square->__construct() called at [C:\Web Files\localuser\CHCG\Shop\.....\modules.php:185]

    [03-May-2018 20:40:56 America/Los_Angeles] PHP Notice: file_get_contents() error checking plugin versions.
    Aborting. in C:\Web Files\localuser\CHCG\Shop\includes\functions\plugin_support.php on line 76

  7. #7
    Join Date
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    No other idea? Is there a different way to get Square support with Zen Cart? If not is there a suggestion for a replacement for Zen Cart that will work?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by billsey5 View Post
    Aha, a clue perhaps... When I get sent back to Payment Modules I see:

    ERROR: module not loaded due to missing language file: C:/Web Files/localuser/CHCG/Shop/includes/languages/english/modules/payment/square_handler.php
    That would only appear if you put a file named square_handler.php into the /includes/modules/payment directory. The system looks for the module files, and their corresponding matching filename for language file. That error message means you've got a module file present without a matching language file.
    And in this situation you should not have a "square_handler.php" file in the /includes/modules/payment directory. It belongs in the root directory of your shop.
    .

    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.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by billsey5 View Post
    Zen-Cart 1.5.5e, PHP 5.4.44, MySQL 5.6.15, Square Payment Module 0.90.
    Is it possible to upgrade to a more current version of PHP? PHP 5.4 is really old: its last update was Sept 2015.

    Quote Originally Posted by billsey5 View Post
    I am seeing the red (Access Token needed). When I click on the green Click here I get the prompt and I enter the login and password for Square which then closes the tab and returns me to my Zen-Cart admin tab.
    The normal flow is:
    - Click green button
    - it takes you to the Square site, asking for login if you're not already logged in. Presents an authorization prompt if not already authorized.
    - returns you to your store admin
    - If the "Access Token Needed" alert is still showing, press F5 to reload the admin page in your browser.

    Quote Originally Posted by billsey5 View Post
    I tried again a few minutes ago and didn't get that message again. I still just get returned without a request to authorize from Square.
    Is the directory you've been quoting (C:/Web Files/localuser/CHCG/Shop/) a local development PC? Or is it the live production server for your domain?
    What browser/s are you doing this Admin / SquareLogin in?

    Quote Originally Posted by billsey5 View Post
    Where should I look for log files that might shed some light on this?
    Any logs generated by the module are stored with other error reports in the /logs/ folder as "myDebug-xxxxxxxx.log" filenames.
    .

    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
    Apr 2018
    Location
    Oregon
    Posts
    13
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Let me try to cover everything, I have gotten closer though. The server is live, but not visible to the public yet. I'm using Firefox 59 and have tested with IE and Edge as well.

    The cert is a Let's Encrypt cert. It seems like curl has problems with those even though no one else seems to. After using the test script for curl and putting a replacement cacert.pem file in the PHP environment, and upgrading the site to 5.6 the test script was able to run completely.

    Once curl would work correctly the green button acted as it should and Square was active on the site.

    I now find that I can add things to my cart, go through the checkout process until I get to the confirm my order where after I push the button it waits for a minute or two and then gives me a 500 - internal server error. A refresh of the page gives the warning about resending data the take me back to the payment information page with a "Unable to process payment due to a communications error. You may try again or contact us for assistance." notice.

    Let me know where I can look for more info on fixing this.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 109
    Last Post: 1 Dec 2024, 01:36 PM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. v154 Support Thread: AddToAny for Zen Cart (The Universal Sharing Platform)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 8 Apr 2019, 02:39 PM
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 2006, 06:43 AM

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