Page 69 of 80 FirstFirst ... 1959676869707179 ... LastLast
Results 681 to 690 of 791
  1. #681
    Join Date
    Apr 2009
    Posts
    468
    Plugin Contributions
    2

    Default Re: Square WebPay

    The errors
    Code:
    PHP Deprecated: Creation of dynamic property square_webPay::$token
    etc. are because these variable have not been declared in /includes/modules/payment/square_webPay.php

    If you add a lines
    Code:
    public  $order_status, $gateway_currency;
    protected $token, $client, $oauthClient, $_logDir, $sdkApiVersion, $_check;
    to /includes/modules/payment/square_webPay.php near where you see the other definitions.

    The error
    Code:
    PHP Deprecated: Return type of Square\Models\Location::jsonSerialize(bool $asArrayWhenEmpty = false) should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php on line 807.
    is telling you what you need to do.
    in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php
    Add
    Code:
    #[\ReturnTypeWillChange]
    before each function decleration in that module.

    I think the last error is created because the earlier module failed. If not you would have to change the php in /includes/modules/pages/checkout_payment/jscript_square_webPay.php
    Code:
    addressLines: ['<?= addslashes($order->billing['street_address'] ?? ''); ?>', '<?= addslashes($order->billing['suburb'] ?? ''); ?>'],
    You may have to do this for all the addslashes commands in this file.


    As an alternative you could buy the later version from https://mxworks.cc/?product=zen-cart...in-for-php-8-x
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  2. #682
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,582
    Plugin Contributions
    29

    Default Re: Square WebPay

    Quote Originally Posted by BigB View Post
    This is interesting and thought I would share... I have this error message in the back end of my ZenCart v2.0.1 install that reads:
    ERROR: module not loaded due to missing language file: /home/mydirectory/siteurl.com/includes/languages/english/modules/payment/autoload.php

    Is this a Zen Cart file that should have been installed with the Zen Cart v2.0.1 setup? I have checked the path with files for upload for the webPay module and the only file there for FTP/Upload to this location is the file "Square_webPay.php...
    Is this a problem with why I am not able to authorize the module or perhaps something altogether different? Thanks for any help with this. I looked through the thread and didn't see anything about this...
    Not a lot of help, but that missing file is not a Zen Cart 2.0.1 file. It's also not the right type of file name for a language file which makes me think something else is wrong.

    Did this error first occur after installing this module? Maybe you uploaded some files to the wrong folders?? Try uninstalling and re-installing the plugin.

  3. #683
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Square WebPay

    It sounds like you have a file called

    includes/modules/payment/autoload.php

    which, as @Jeking says, shouldn't be there.

    There *is* a file called

    includes/modules/payment/square_webPay/autoload.php

    If you tried to upload your files one by one (never a good idea), perhaps you did this one incorrectly.

    Clean up includes/modules/payment and then reinstall Square Webpay.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #684
    Join Date
    Jun 2024
    Posts
    91
    Plugin Contributions
    0

    Default Re: Square WebPay

    Quote Originally Posted by brittainmark View Post
    The errors
    Code:
    PHP Deprecated: Creation of dynamic property square_webPay::$token
    etc. are because these variable have not been declared in /includes/modules/payment/square_webPay.php

    If you add a lines
    Code:
    public  $order_status, $gateway_currency;
    protected $token, $client, $oauthClient, $_logDir, $sdkApiVersion, $_check;
    to /includes/modules/payment/square_webPay.php near where you see the other definitions.

    The error
    Code:
    PHP Deprecated: Return type of Square\Models\Location::jsonSerialize(bool $asArrayWhenEmpty = false) should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php on line 807.
    is telling you what you need to do.
    in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php
    Add
    Code:
    #[\ReturnTypeWillChange]
    before each function decleration in that module.

    I think the last error is created because the earlier module failed. If not you would have to change the php in /includes/modules/pages/checkout_payment/jscript_square_webPay.php
    Code:
    addressLines: ['<?= addslashes($order->billing['street_address'] ?? ''); ?>', '<?= addslashes($order->billing['suburb'] ?? ''); ?>'],
    You may have to do this for all the addslashes commands in this file.


    As an alternative you could buy the later version from https://mxworks.cc/?product=zen-cart...in-for-php-8-x
    I'll look into these codes and files... thanks for the tips and heads up on the new pluging... If I can't wrangle this prob I'm considering pulling the trigger that...

  5. #685
    Join Date
    Jun 2024
    Posts
    91
    Plugin Contributions
    0

    Default Re: Square WebPay

    Quote Originally Posted by jeking View Post
    Not a lot of help, but that missing file is not a Zen Cart 2.0.1 file. It's also not the right type of file name for a language file which makes me think something else is wrong.

    Did this error first occur after installing this module? Maybe you uploaded some files to the wrong folders?? Try uninstalling and re-installing the plugin.
    Honestly, I'm not sure when that error messsgae showed up... I haden't noticed before... but all the sudden it was there... I have un-installed and re-installed the plugin... the error code remains... it shows in the modules section of the site's back-end/admin area where one activates/de-activates payment plugins...

  6. #686
    Join Date
    Jun 2024
    Posts
    91
    Plugin Contributions
    0

    Default Re: Square WebPay

    Quote Originally Posted by swguy View Post
    It sounds like you have a file called

    includes/modules/payment/autoload.php

    which, as @Jeking says, shouldn't be there.

    There *is* a file called

    includes/modules/payment/square_webPay/autoload.php

    If you tried to upload your files one by one (never a good idea), perhaps you did this one incorrectly.

    Clean up includes/modules/payment and then reinstall Square Webpay.
    I did FTP the module's contents and followed the correct paths for files and folder upload/creation etc... I'll go back in to cPanel and take another look in there via File Manager... I don't recall seeing a file named square_webPay/autoload.php... the only file I have for upload to that location is the Square_webPay.php file...

  7. #687
    Join Date
    Jun 2024
    Posts
    91
    Plugin Contributions
    0

    Default Re: Square WebPay

    OK... from what I can see there seems to be the possibilty of a discrepency in File & Folder path structure with Zen Cart v2.0.1 and previous versions...
    In the module package for FTP to the includes section... there are two distinct folder & file paths...

    The 1st path: includes/languages/english/modules/payment/xxxx.php file etc...
    The 2nd path: includes/modules/payment/square_webPay/autoload.php --> according to Zen Cart v2.1.0 error massage... THIS is where the "missing" file is located...

    the Zen Cart error code I have right now in the admin of my v2.0.1 installation reads:
    ERROR: module not loaded due to missing language file: /home/brian670/guitarcourses.briankguitar.com/includes/languages/english/modules/payment/autoload.php

    This is clearly a different path than what the package states... Now... I'm not sure about how to go further to correct the issue... perhaps simply "copy" the autoload.php file over to the other location?... or perhaps this will create even further issues?...
    Last edited by BigB; 15 Jun 2024 at 06:05 PM.

  8. #688
    Join Date
    Apr 2009
    Posts
    468
    Plugin Contributions
    2

    Default Re: Square WebPay

    I think you just have a file in includes/modules/payment/ called "autoload.php" I would copy it down to your local machine and delete the file on the server. See if that is the issue. If it is you might get a clue as to where it belongs / has come from by looking in the file.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  9. #689
    Join Date
    Jun 2024
    Posts
    91
    Plugin Contributions
    0

    Default Re: Square WebPay

    Quote Originally Posted by brittainmark View Post
    I think you just have a file in includes/modules/payment/ called "autoload.php" I would copy it down to your local machine and delete the file on the server. See if that is the issue. If it is you might get a clue as to where it belongs / has come from by looking in the file.
    When I go to the path location where the error massage says the file is missing... it is indeed missing... it was never uploaded to that location... there is no autoload.php file in there... which makes sense..
    As per the Square WebPay module's FTP files and folder structure it shouldn't be there however for the path you are referring to... yes that file DOES exist there...I have it there in my install for the module on the server for my site...

    What I'm trying to figure out right now is why the error message telling me that there should be an autoload.php file in the location it specifies... it does appear to be a very direct error to this location.. but, the module doesn't say to put that file at the end of the includes/languages/english/modules/payment/xxxx.php path... it wants the file at the end of the includes/modules/payment/square_webPay/autoload.php path....

    Are you suggesting I should remove the current autoload.php file out of where it is supposed to be.... see if the error code goes away... and then perhaps re-upload the file?...

  10. #690
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    496
    Plugin Contributions
    0

    Default Square WebPay not displayed as a payment in checkout

    I just installed Square WebPay but it does not display as an payment option in check out. Snippets of examples attached.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot 2024-06-15 192633.png 
Views:	17 
Size:	11.5 KB 
ID:	20653   Click image for larger version. 

Name:	Screenshot 2024-06-15 192722.jpg 
Views:	16 
Size:	20.4 KB 
ID:	20654   Click image for larger version. 

Name:	Screenshot 2024-06-15 192840.jpg 
Views:	13 
Size:	21.6 KB 
ID:	20655  


 

 
Page 69 of 80 FirstFirst ... 1959676869707179 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 780
    Last Post: 7 Apr 2025, 02:03 AM
  3. Square Support for SqPaymentForm ending 15th July 2022
    By brittainmark in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Apr 2022, 02:40 PM
  4. v156 Square Payments and strange request from Square
    By ianhg in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2020, 11:14 AM
  5. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM

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