Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jan 2012
    Posts
    50
    Plugin Contributions
    0

    Default PHP Parse error: syntax error, unexpected '[' in payeezyjs.php

    spbwshop.co.uk
    V1.5.5e

    I upgraded from 1.5.1 recently and, after some trials & tribulations, now have the shop fully working. We did get sales through PayPal but when I went on to the Admin to check our API details today I found that the modules no longer show. As per attached. Yet it appears to be still working.

    Are they hidden? Or somewhere else?

    Thanks
    Attached Images Attached Images  

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

    Default Re: PayPal modules no longer showing

    You have a partial white page. Please check your logs folder for any debug files, and paste the content here. (minus sensitive data like admin folder name).

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

    Default Re: PayPal modules no longer showing

    Thanks,
    If this is the Cpanel error log then it is only showing a 404 with the sitemap.

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

    Default Re: PayPal modules no longer showing

    No, there is a logs folder in the root of your zen cart installation.

  5. #5
    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

  6. #6
    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

  7. #7
    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

  8. #8
    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...

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,931
    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).

  10. #10
    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

 

 
Page 1 of 3 123 LastLast

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