Results 1 to 10 of 23

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: PayPal modules no longer showing

    It is a huge file - attached
    Attached Files Attached Files

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: PayPal modules no longer showing

    that is the acces log, generated by your server. Your debug file looks like this myDEBUG-adm-1504872109-96821.log

  3. #3
    Join Date
    Jan 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: PayPal modules no longer showing

    Sorry, did not go deep enough.

    [08-Sep-2017 06:50:15 America/Chicago] PHP Parse error: syntax error, unexpected '[' in /home/*****/public_html/includes/modules/payment/payeezyjszc.php on line 158
    function selection()
    {
    global $order;

    // Payeezy currently only accepts "American Express", "Visa", "Mastercard", "Discover", "JCB", "Diners Club"
    $cc_types = [];
    if (CC_ENABLED_VISA == 1) {
    $cc_types[] = ['id' => 'Visa', 'text' => 'Visa'];
    }
    if (CC_ENABLED_MC == 1) {
    $cc_types[] = ['id' => 'Mastercard', 'text' => 'Mastercard'];
    }
    if (CC_ENABLED_DISCOVER == 1) {
    $cc_types[] = ['id' => 'Discover', 'text' => 'Discover'];
    }
    if (CC_ENABLED_AMEX == 1) {
    $cc_types[] = ['id' => 'American Express', 'text' => 'American Express'];
    }
    if (CC_ENABLED_JCB == 1) {
    $cc_types[] = ['id' => 'JCB', 'text' => 'JCB'];
    }
    if (CC_ENABLED_DINERS_CLUB == 1) {
    $cc_types[] = ['id' => 'Diners Club', 'text' => 'Diners Club'];
    }

    // Prepare selection of expiry dates

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,950
    Plugin Contributions
    96

    Default Re: PayPal modules no longer showing

    Quote Originally Posted by spbw View Post
    Sorry, did not go deep enough.
    The log that you're receiving
    Code:
    [08-Sep-2017 06:50:15 America/Chicago] PHP Parse error:  syntax error,  unexpected '[' in  /home/*****/public_html/includes/modules/payment/payeezyjszc.php on line  158
    implies that your store is running on an older (PHP 5.3?) version of PHP, prior to the implementation of updated PHP array references that the payeezyjszc payment method uses.

    As a quick fix, you can simply rename the file /includes/modules/payment/payeezyjsrc.php to payeezyjsrc.php.notused while you sort out your hosted PHP version, bringing it up to at least PHP 5.6 (preferably 7.0 or 7.1).

  5. #5
    Join Date
    Jan 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: PayPal modules no longer showing

    Checked the Cpanel and it tells me, under server info, that it is PHP5.6.1

  6. #6
    Join Date
    Jan 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: PayPal modules no longer showing

    Sorry

    5.6.31

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: PayPal modules no longer showing

    Obviously cpanel is wrong, or you would not get this error. Check in your Zen Cart admin with pressing the version button to see what your actual php version is .

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,950
    Plugin Contributions
    96

    Default Re: PayPal modules no longer showing

    Use your admin's Tools->Server/Version Info. What PHP version does that show?

  9. #9
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: PayPal modules no longer showing

    This FAQ describes how to address such an issue of a blank or partial blank page: http://www.zen-cart.com/content.php?124-blank-page

    It would also help to identify what php version you are using.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Replies: 5
    Last Post: 27 Sep 2014, 10:53 AM
  2. Parse error: syntax error, unexpected '{' in my custom php code
    By claudiapsp in forum General Questions
    Replies: 2
    Last Post: 27 Mar 2014, 03:53 PM
  3. Install: Parse error: syntax error, unexpected '/' in /includes/application_top.php
    By dlucarelli in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 26 Aug 2010, 02:08 PM
  4. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM

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