Page 19 of 23 FirstFirst ... 91718192021 ... LastLast
Results 181 to 190 of 230
  1. #181
    Join Date
    Mar 2006
    Location
    San Francisco, CA
    Posts
    45
    Plugin Contributions
    0

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

    Thank you so much, DrByte! That was it -- due to the e-mail error codes we received we were substituting our personal access token for the OAuth application secret and wondering why were weren't seeing the green button to authorize the app. Thank you for highlighting that difference for us. Once we reinstalled the app and tested it, everything is now working perfectly again. Much gratitude to you -- we really appreciate your quick answer, insight and direction!

  2. #182
    Join Date
    Jul 2013
    Location
    Brisbane, Australia
    Posts
    33
    Plugin Contributions
    0

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

    Hi. I was hoping someone could please help with an error re the cron job to automatically handle token refreshes.

    Cron job installed via cPanel on server:
    php /home/my_username/public_html/square_handler.php
    Error Log:
    [12-Sep-2018 12:05:02 Australia/Brisbane] PHP Fatal error: Uncaught Error: Class 'square' not found in /home/my_username/public_html/square_handler.php:19
    Stack trace:
    #0 {main}
    thrown in /home/my_username/public_html/square_handler.php on line 19
    Email returned:
    Status: 500 Internal Server Error
    X-Powered-By: PHP/7.0.31
    Access-Control-Allow-Origin: *
    Set-Cookie: cookie_test=please_accept_for_session; expires=Fri, 12-Oct-2018 02:05:02 GMT; Max-Age=2592000; path=/; domain=recoveredheritage.com.au
    Set-Cookie: zcrm_ac08606c3ae64282ac69e5945c47bda5=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; domain=recoveredheritage.com.au
    Content-Type: text/html; charset=utf-8
    My situation:
    Square v0.94 installed successfully and all looks OK in Admin
    ZC1.5.5e (modified with plugins)
    Website: recoveredheritage.com.au. Still under development (maintenance mode currently on but the error persists even when its off).

    Line 19 of that file states
    $square = new square;
    . I tried re-uploading all the SQUARE plugin files in case I missed one in the classes directory somehow - but error persists. As yet, I haven't been able to find a solution or the problem discussed in either the zencart or general community. Can anyone point me in the right direction to resolve this please?

    Thanks.

  3. #183
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,851
    Plugin Contributions
    8

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

    Getting similar results on four sites, but sporadically. All four cron settings are exactly the same (Other than the username, of course)

    None error every time the cron is run.

    One only throws a debug file occasionally.

    Two throw no debug files but email with different cron errors. Both are 500 errors with different coding.

    One actually resets the mod to false.

  4. #184
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,851
    Plugin Contributions
    8

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

    Discovered that our 500 errors was that Perl Module for https was not installed on the server for some reason. One was a typo.

    Still can't tell what caused the debug or whether the Perl fix will stop that from happening.

    We will see after cron run.

  5. #185
    Join Date
    Jul 2013
    Location
    Brisbane, Australia
    Posts
    33
    Plugin Contributions
    0

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

    Discovered that our 500 errors was that Perl Module for https was not installed on the server for some reason.
    Thank you dbltoe. I appreciate your assistance.

    I'm a real newie here so don't really know what I'm doing...but I tried to muddle my way through. But, my attempt was unsuccessful: same error log generated when cron job ran. Are you able to give more specific instructions?

    Attempt details: My ISP server (inDesign) was showing no Perl modules installed. l looked at the available Perl modules and there's one called Business::OnlinePayment:HTTPS. Installed this. Now the installed Perl includes that one + Net::HTTPS::Any + Tie::IxHash.

    Thanks
    Last edited by GerriM; 12 Sep 2018 at 11:44 PM. Reason: typos corrected, reference quote added

  6. #186
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,142
    Plugin Contributions
    0

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

    @DrBytes which .php file generates the call for the text to appear when you start typing in your credit card number?
    Example when start typing 42 I notice the page refresh and visa appears. Notice it’s lower case but their logo is VISA. I notice the same when typing in 52 which shows masterCard and I want it to show MasterCard. Also americanExpress & discover.
    It’s just cosmetic if you have the time please.
    I used the developers tool kit and could not find masterCard & also search in the database with no avail. Is the call embed in hex code?

    With @lat9 help I received this answer.
    On further inspection (aren't demo sites wonderful?), it appears that the text is being added by the Square payment method's jQuery (see /includes/modules/pages/checkout_one/jscript_square.php). The values displayed appear to be coming back from an AJAX call to Square.

    Mark
    Mark
    Hare Do - Does the rabbit beat Zen "never".
    Zen Cart 1.5.5f Update Release

  7. #187
    Join Date
    Jan 2004
    Posts
    64,985
    Blog Entries
    7
    Plugin Contributions
    76

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

    Quote Originally Posted by GerriM
    PHP Fatal error: Uncaught Error: Class 'square' not found in /home/my_username/public_html/square_handler.php:19
    thrown in /home/my_username/public_html/square_handler.php on line 19
    Line 19 is trying to execute the Square module code, but it's not been loaded into memory yet.
    Line 18 does the loading by passing the name of the module whose files should be loaded. But they won't load if the files aren't found in the proper locations.

    I suspect you've missed uploading some files for the module. Line 18 expects at least these 2 files:
    /includes/modules/payment/square.php
    /includes/languages/english/modules/payment/square.php
    There are lots of other important files related to the Square module, but if these aren't present then line 18 will fail, which will cause line 19 to give the error you quoted.
    .

    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.

  8. #188
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,851
    Plugin Contributions
    8

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

    All sites getting this debug file has the files in the required places. The debug happens when the cron job runs in cpanel or when square_handler.php is run from the browser.

    An example of the emailed code:
    Code:
    Status: 500 Internal Server ErrorAccess-Control-Allow-Origin: *
    Set-Cookie: **************; domain=.*******.com; secure; HttpOnly
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Content-Type: text/html; charset=utf-8
    This is after the Perl fix.

  9. #189
    Join Date
    Jan 2004
    Posts
    64,985
    Blog Entries
    7
    Plugin Contributions
    76

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

    Could be that the cron job is running a different (older) version of PHP too.
    .

    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. #190
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,851
    Plugin Contributions
    8

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

    Sites are running 5.6

    Server 7.1

 

 
Page 19 of 23 FirstFirst ... 91718192021 ... LastLast

Similar Threads

  1. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 123
    Last Post: 29 Oct 2018, 02:43 AM
  2. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 99
    Last Post: 20 Mar 2018, 06:41 PM
  3. v154 Support Thread: AddToAny for Zen Cart (The Universal Sharing Platform)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 6 Jul 2015, 11:05 PM
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 32
    Last Post: 4 Nov 2012, 08:01 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR