Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default [Done 1.5.2] paypaldp: Module is disabled because SSL is not enabled on your site

    Running Zen Cart v1.5.1. PayPal Payments Pro (USA) is enabled as a payment method, with the Debug Mode set to "Log and Email". SSL is enabled on both the store-side and in the admin.

    A test order was successfully placed in the store. Whenever the details of that order are viewed in my admin, I receive a log and an email that indicates that "Module is disabled because SSL is not enabled on your site". Examining the code, the message is coming from /includes/modules/payment/paypaldp.php's update_status function:
    Code:
      /**
       *  Sets payment module status based on zone restrictions etc
       */
      function update_status() {
        global $order, $db;
    //    $this->zcLog('update_status', 'Checking whether module should be enabled or not.');
        // if store is not running in SSL, cannot offer credit card module, for PCI reasons
        if (!defined('ENABLE_SSL') || ENABLE_SSL != 'true') {
          $this->enabled = FALSE;
          $this->zcLog('update_status', 'Module disabled because SSL is not enabled on this site.');
        }
    The update_status function is being called by the paypaldp constructor, since an $order object exists. Since ENABLE_SSL is defined only on the store-side, that's why the message is being set and the module disabled. Since there is no credit-card information captured during the admin processing, my initial thought is that the code should be modified to perform this check only if operating during the store-side processing.

    Will this affect my ability to issue a refund?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: paypaldp: Module is disabled because SSL is not enabled on your site

    Would you mind testing this change to the code:
    Code:
        if (IS_ADMIN_FLAG === false) {
          // if store is not running in SSL, cannot offer credit card module, for PCI reasons
          if (!defined('ENABLE_SSL') || ENABLE_SSL != 'true') {
            $this->enabled = FALSE;
            $this->zcLog('update_status', 'Module disabled because SSL is not enabled on this site.');
          }
        }
    .

    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.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: paypaldp: Module is disabled because SSL is not enabled on your site

    Quote Originally Posted by DrByte View Post
    Would you mind testing this change to the code:
    That does the trick, DrByte. Thanks.

 

 

Similar Threads

  1. Replies: 12
    Last Post: 5 Aug 2015, 05:59 AM
  2. v151 Installation of this Module is Disabled Until Your Admin Is Configured for SSL
    By jtfindc in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 11 Dec 2014, 04:11 PM
  3. Replies: 0
    Last Post: 5 Feb 2010, 06:17 PM
  4. Replies: 6
    Last Post: 21 Jul 2009, 05:38 AM
  5. "Your cart is empty" with SSL enabled
    By dfetter in forum General Questions
    Replies: 1
    Last Post: 18 Jan 2008, 04:37 AM

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