Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Jan 2019
    Location
    London, UK
    Posts
    15
    Plugin Contributions
    0

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    OK, that has allowed me to use PHP v7.2 but now have another error in DEBUG:

    [15-Jan-2019 02:40:05 Europe/London] Request URI: /shop/admin/modules.php?set=payment, IP address: 77.101.186.85
    #1 payflow->payflow() called at [/home/sites/kentontrimmings.co.uk/public_html/shop/admin/modules.php:195]
    --> PHP Warning: Use of undefined constant PEAR_LOG_INFO - assumed 'PEAR_LOG_INFO' (this will throw an Error in a future version of PHP) in /home/sites/kentontrimmings.co.uk/public_html/shop/includes/modules/payment/payflow.php on line 171.



    modules.php:195
    $module = new $class;

    payflow.php:171
    // Regular mode:
    if ($this->enableDebugging) $this->_logLevel = PEAR_LOG_INFO;


    Sorry, not a PHP programmer, so this is mainly gobbledegook to me :)

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,401
    Plugin Contributions
    2

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    Quote Originally Posted by jonoo62 View Post
    OK, that has allowed me to use PHP v7.2 but now have another error in DEBUG:

    [15-Jan-2019 02:40:05 Europe/London] Request URI: /shop/admin/modules.php?set=payment, IP address: 77.101.186.85
    #1 payflow->payflow() called at [/home/sites/kentontrimmings.co.uk/public_html/shop/admin/modules.php:195]
    --> PHP Warning: Use of undefined constant PEAR_LOG_INFO - assumed 'PEAR_LOG_INFO' (this will throw an Error in a future version of PHP) in /home/sites/kentontrimmings.co.uk/public_html/shop/includes/modules/payment/payflow.php on line 171.



    modules.php:195
    $module = new $class;

    payflow.php:171
    // Regular mode:
    if ($this->enableDebugging) $this->_logLevel = PEAR_LOG_INFO;


    Sorry, not a PHP programmer, so this is mainly gobbledegook to me :)
    this is a warning, and should not hinder execution.

    that said, the var PEAR_LOG_INFO is part of the pear package (https://pear.php.net) which i am unfamiliar with and i'm not sure why it would be required here.

    perhaps someone else can chime in.
    no good deed goes unpunished. help out with the green....

  3. #13
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,619
    Plugin Contributions
    260

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    The Payflow contribution hasn't been updated in a while and needs some TLC.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  4. #14
    Join Date
    Apr 2008
    Posts
    126
    Plugin Contributions
    1

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    Quote Originally Posted by carlwhat View Post
    you could try changing the code to:

    PHP Code:
              // handle other order totals:
              
    global ${$order_totals[$i]['code']};
              if ((
    substr($order_totals[$i]['text'], 01) == '-') || (isset(${$order_totals[$i]['code']}->credit_class) && ${$order_totals[$i]['code']}->credit_class == true)) { 
    THANK YOU!!! My website hosting company upgraded to php 7.2.17 last night, and today I woke up to find this exact problem - my paypal modules disappeared from the admin Payment Modules page (incomplete loading). And this was after I had already upgraded to 1.56a and tested the store a few weeks ago on a slightly earlier version of php 7.2. I had the same error:

    Code:
    PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/xxxx/xxxx/public_html/shop/includes/modules/payment/payflow.php on line 1202.
    The above fix worked perfectly. Thank you for giving me back my payment modules!

  5. #15
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,619
    Plugin Contributions
    260

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    Would some nice person please update the plugin with these fixes?
    https://www.zen-cart.com/downloads.php?do=file&id=212
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  6. #16
    Join Date
    Apr 2008
    Posts
    126
    Plugin Contributions
    1

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    Related to the PEAR_LOG_INFO warning:

    I checked back into my older 1.38 store backup, and the file includes/modules/payment/paypal/paypal_curl.php contains these lines, among others:

    PHP Code:
      /**
       * What level should we log at? Valid levels are:
       *   PEAR_LOG_ERR   - Log only severe errors.
       *   PEAR_LOG_INFO  - Date/time of operation, operation name, elapsed time, success or failure indication.
       *   PEAR_LOG_DEBUG - Full text of requests and responses and other debugging messages.
       *
       * @access protected
       *
       * @var integer $_logLevel
       */

      
    var $_logLevel PEAR_LOG_DEBUG
    The current version has this instead:
    PHP Code:
      /**
       * What level should we log at? Valid levels are:
       *   1 - Log only severe errors.
       *   2 - Date/time of operation, operation name, elapsed time, success or failure indication.
       *   3 - Full text of requests and responses and other debugging messages.
       *
       * @access protected
       *
       * @var integer $_logLevel
       */
      
    var $_logLevel 3
    Therefore, it seems that these were old constants that are no longer defined or used, and that the code in payflow.php at line 171 should be changed from:
    PHP Code:
         // Regular mode:
        
    if ($this->enableDebugging$this->_logLevel PEAR_LOG_INFO;
        
    // DEV MODE:
        
    if (defined('PAYPAL_DEV_MODE') && PAYPAL_DEV_MODE == 'true'$this->_logLevel PEAR_LOG_DEBUG
    To:

    PHP Code:
        // Regular mode:
        
    if ($this->enableDebugging$this->_logLevel 2;
        
    // DEV MODE:
        
    if (defined('PAYPAL_DEV_MODE') && PAYPAL_DEV_MODE == 'true'$this->_logLevel 3
    I will test this now....

  7. #17
    Join Date
    Apr 2008
    Posts
    126
    Plugin Contributions
    1

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    I found one other undefined constant that was causing "Use of undefined constant PAYPAL_DEV_MODE" errors.

    I have incorporated all the fixes into a new file, and tested it on 1.56a. No more issues that I can see.

    I have uploaded the fixed files as a new version 1.5.6 on the https://www.zen-cart.com/downloads.php?do=file&id=212 page, but I do not see it showing up. Does it have to be approved or something?

  8. #18
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,619
    Plugin Contributions
    260

    Default Re: All Paypal/Payflow Modules are missing under ADMIN, Modules, Payment. - NEWBIE

    Yes. I'll get it approved in a day or two. Thanks for doing this.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v138a can we empty all files under include/modules/payment/paypal/logs?
    By yisou in forum General Questions
    Replies: 2
    Last Post: 10 Jun 2013, 03:35 PM
  2. Modules are missing in admin area
    By arthena in forum Addon Shipping Modules
    Replies: 4
    Last Post: 20 Jan 2013, 10:42 AM
  3. My Paypal Payment Modules are Missing
    By rem1010 in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 1 Oct 2009, 11:46 PM
  4. PayPal Modules missing from ADMIN after applying patch
    By tazman_130us in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 7 Apr 2007, 06:17 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