Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2012
    Posts
    12
    Plugin Contributions
    0

    Default Issue with code in Linkpoint_api.php file

    ive been having issues with the code in my website and ive narrowed it down to this line but im not sure whats wrong with it, im only new to this having just recently taken over this website, can you see whats wrong with it?

    Name:  Screenshot 2023-05-26 102932.png
Views: 503
Size:  11.6 KB

  2. #2
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    123
    Plugin Contributions
    5

    Default Re: Issue with code in Linkpoint_api.php file

    Quote Originally Posted by jcrennan View Post
    ive been having issues with the code in my website and ive narrowed it down to this line but im not sure whats wrong with it, im only new to this having just recently taken over this website, can you see whats wrong with it?

    Name:  Screenshot 2023-05-26 102932.png
Views: 503
Size:  11.6 KB
    There are two $ before order_totals: $$order... should be $order...

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Issue with code in Linkpoint_api.php file

    @pilou2 this is not correct

    See https://docs.zen-cart.com/user/upgra...or-unexpected- for notes on this issue.
    That Software Guy. My Store: Zen Cart Modifications
    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. #4
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    123
    Plugin Contributions
    5

    Default Re: Issue with code in Linkpoint_api.php file

    Quote Originally Posted by swguy View Post
    @pilou2 this is not correct

    See https://docs.zen-cart.com/user/upgra...or-unexpected- for notes on this issue.
    Nice documentation! I did not realized it was a 'variable variable' stuff just looking at this code. {} were probably added to avoid this kind of confusion.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Issue with code in Linkpoint_api.php file

    Also note that linkpoint has been removed from the Zen Cart core.
    That Software Guy. My Store: Zen Cart Modifications
    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.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: Issue with code in Linkpoint_api.php file

    Quote Originally Posted by pilou2 View Post
    Nice documentation! I did not realized it was a 'variable variable' stuff just looking at this code. {} were probably added to avoid this kind of confusion.
    The {} were added more for 'compliance' with stricter PHP (7.4? and later) integrations where the {} are now required.

 

 

Similar Threads

  1. v151 PHP Warning: Illegal string offset 'r_error' in linkpoint_api.php
    By BGundlach in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Sep 2014, 09:16 PM
  2. what is linkpoint_api.php used for?
    By linjuming in forum General Questions
    Replies: 2
    Last Post: 13 Jul 2012, 02:01 AM
  3. Date & Time Zone issue with php.ini file
    By chad2012 in forum Installing on a Mac Server
    Replies: 2
    Last Post: 22 Jan 2012, 09:26 PM
  4. PHP Question: Inserting code to refer to another .php file
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Sep 2008, 10:24 PM
  5. Code Needed For File Attachment Upload with PHP Form
    By bumba000 in forum General Questions
    Replies: 0
    Last Post: 28 Mar 2007, 07:40 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