Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Bug in includes/modules/payment/paypalwpp.php

    In the language file inclusion, the filename should be prefixed with a slash.

    change

    require(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'], 'create_account.php', 'false'));

    to

    require(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'], '/create_account.php', 'false'));

    (Slash before create_account.php)

    Zen Cart 1.5.6b only; 1.5.6a does not have 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.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Bug in includes/modules/payment/paypalwpp.php

    Note that by doing this, the default version of create_account.php file will be used, not the template override of the file. This is a change from operation from Zen Cart 1.5.6 and 1.5.6a which would use the template override if it existed.

    To allow use of the template override file change to:
    require(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . DIRECTORY_SEPARATOR, 'create_account.php', 'false'));
    Last edited by mc12345678; 19 Jun 2019 at 03:20 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Bug in includes/modules/payment/paypalwpp.php

    As soon as the PR is merged, I will update the 2 posts with the recommended fix. This fix for now will stop your cart from crashing.
    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
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Bug in includes/modules/payment/paypalwpp.php

    Final decision on this issue:
    https://github.com/zencart/zencart/pull/2467
    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.

 

 

Similar Threads

  1. v151 /includes/modules/payment/paypal.php: What's this code supposed to do?
    By lat9 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Apr 2013, 02:58 PM
  2. Replies: 3
    Last Post: 10 Apr 2013, 03:46 PM
  3. v151 Possible Bug includes/modules/main_product_image.php
    By philip937 in forum General Questions
    Replies: 2
    Last Post: 6 Feb 2013, 08:54 AM
  4. Replies: 3
    Last Post: 21 Jan 2009, 04:13 PM
  5. /includes/languages/spanish/modules/payment/paypal.php: no such file or directory
    By thosecars82 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Oct 2008, 06:45 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