Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    33
    Plugin Contributions
    0

    parse error-please help

    Parse error: syntax error, unexpected T_DNUMBER in /home/menucomp/public_html/cori/zencart/includes/modules/payment/paypal.php on line 268

    Here is the codeI placed it in crimson editor and line 268 is right before where the highlight is.)

    function admin_notification($zf_order_id) {
    global $db;
    $output = '';
    $sql = "select * from " . TABLE_PAYPAL . " where zen_order_id = '" . (int)$zf_order_id . "' order by paypal_ipn_id DESC LIMIT 1";
    70.103.140.120n = $db->Execute($sql);
    error(19): wrong syntax
    if (70.103.140.120n->RecordCount() > 0) require(DIR_FS_CATALOG. DIR_WS_MODULES . 'payment/paypal/paypal_admin_notification.php');
    return $output;
    }

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: parse error-please help

    What version are you using? You might have a corrupt file from an upload problem.
    Below is line 264-271 from this file in ZenCart 1.3.5

    Code:
      function admin_notification($zf_order_id) {
        global $db;
        $output = '';
        $sql = "select * from " . TABLE_PAYPAL . " where zen_order_id = '" . (int)$zf_order_id . "' order by paypal_ipn_id DESC LIMIT 1";
        $ipn = $db->Execute($sql);
        if ($ipn->RecordCount() > 0) require(DIR_FS_CATALOG. DIR_WS_MODULES . 'payment/paypal/paypal_admin_notification.php');
        return $output;
      }
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2006
    Posts
    33
    Plugin Contributions
    0

    Re: parse error-please help

    Thanks Kobra, I was just about to announce that I've figured it out when I read your post. I just replaced it with a back-up copy and it's working fine now. But perhaps you can help me with something else.... I want to implement the paypal loge onto my site in place of the image icons on the select payment page-can you help me with that???

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: parse error-please help

    I have done this but do not recall the exact file...I normally take the lazy way out.

    If you can identify the image name that is currently in the place you want PayPal, you can search for it get the size and make the PayPal this size on your graphic editor.

    Then name this the same name as the current one and replace it in an override folder if allowed or overwrite it and I keep a log of these so I can remember the files that were changed that could not be overriden when upgrading time rolls around.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Please Help! Parse Error - Group pricing .php
    By annettes in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Apr 2011, 11:38 PM
  2. PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'
    By mfsuchta in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Aug 2008, 02:16 AM
  3. Strange PARSE error viewing orders, please help
    By NullMind in forum General Questions
    Replies: 5
    Last Post: 6 Nov 2007, 11:26 PM
  4. Parse error PLEASE HELP!!
    By laurieudy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Nov 2007, 09:40 PM
  5. please help, homepage not showing up, parse error
    By villyt in forum General Questions
    Replies: 1
    Last Post: 12 Aug 2007, 02:35 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