Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2019
    Location
    Nashville TN
    Posts
    15
    Plugin Contributions
    0

    bug Parse error: syntax error, unexpected HELP

    Version info below

    Sites been working great for a long time, the problem just started --Whenever I try to check on customers order I get a blank white page with this message?
    I tried searching it but couldn't find it with the order page. Anyone know what the fix is?


    Parse error: syntax error, unexpected ''("select orders_status_id, or' (T_CONSTANT_ENCAPSED_STRING) in /home3/polishdb/public_html/admin-panel/orders.php on line 29



    Zen Cart 1.5.5f
    Database Patch Level: 1.5.5
    PHP Version 7.1.14
    Database: MySQL 5.6.41-84.1

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,625
    Plugin Contributions
    123

    Default Re: Parse error: syntax error, unexpected HELP

    This is not a bug. Your copy of the file admin/orders.php has been modified.
    Post lines (say) 28-38 and so we can see what's wrong.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Oct 2019
    Location
    Nashville TN
    Posts
    15
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected HELP

    Thank you,
    here is 28-38

    from " . TABLE_ORDERS_STATUS . "
    where language_id = '" . (int)$_SESSION['languages_id'] . "' order by orders_status_id");
    while (!$orders_status->EOF) {
    $orders_statuses[] = array('id' => $orders_status->fields['orders_status_id'],
    'text' => $orders_status->fields['orders_status_name'] . ' [' . $orders_status->fields['orders_status_id'] . ']');
    $orders_status_array[$orders_status->fields['orders_status_id']] = $orders_status->fields['orders_status_name'];
    $orders_status->MoveNext();
    }

    $action = (isset($_GET['action']) ? $_GET['action'] : '');
    $order_exists = false;

  4. #4
    Join Date
    Jul 2012
    Posts
    16,719
    Plugin Contributions
    17

    Default Re: Parse error: syntax error, unexpected HELP

    Can you do that again, but this time enclose in [CODE][/CODE] tags? Simply click the # button on the messagebox toolbar before pasting the code.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Oct 2019
    Location
    Nashville TN
    Posts
    15
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected HELP

    I reuploaded that php file and it resolved the issue.... any idea on how that would of changed on it’s own?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Parse error: syntax error, unexpected HELP

    Quote Originally Posted by akjnashville View Post
    any idea on how that would of changed on it’s own?
    It didn't change on its own.
    Most likely you uploaded a different version of it as part of a plugin you tried to install.
    Or, perhaps your first install of the file failed due to an FTP timeout problem.
    In Zen Cart files don't change on their own. It always requires human interaction ... whether that's you or someone else with access to your files.
    .

    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.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 27 Sep 2014, 10:53 AM
  2. 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
  3. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  4. Replies: 3
    Last Post: 15 Apr 2009, 03:23 PM
  5. 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

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