Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Plugin Contributions
    0

    help question PHP Parse error: syntax error, unexpected '.'

    Can anybody explain why i am getting this error?

    [03-Jan-2011 20:46:03] PHP Parse error: syntax error, unexpected '.' in /home/content/i/n/v/inventivedge/html/catalog/store_admin/includes/modules/product/collect_info.php on line 343


    Here is the line of code


    <td class="main"><?php echo zen_draw_separator('pixel_trans.gif'../../../../admin/includes/modules/product/, '24'../../../../admin/includes/modules/product/, '15') . '&nbsp;' . zen_draw_radio_field('products_virtual'../../../../admin/includes/modules/product/, '1', $is_virtual) . '&nbsp;' . TEXT_PRODUCT_IS_VIRTUAL . '&nbsp;' . zen_draw_radio_field('products_virtual'../../../../admin/includes/modules/product/, '0', $not_virtual) . '&nbsp;' . TEXT_PRODUCT_NOT_VIRTUAL . ' ' . ($pInfo->products_virtual == 1 ? '<br /><span class="errorText">' . TEXT_VIRTUAL_EDIT . '</span>' : ''); ?></td>




    zen cart version 1.3.9h

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: PHP Parse error: syntax error, unexpected '.'

    Quote Originally Posted by xcarsonx View Post
    Can anybody explain why i am getting this error?

    [03-Jan-2011 20:46:03] PHP Parse error: syntax error, unexpected '.' in /home/content/i/n/v/inventivedge/html/catalog/store_admin/includes/modules/product/collect_info.php on line 343


    Here is the line of code


    <td class="main"><?php echo zen_draw_separator('pixel_trans.gif'../../../../admin/includes/modules/product/, '24'../../../../admin/includes/modules/product/, '15') . '&nbsp;' . zen_draw_radio_field('products_virtual'../../../../admin/includes/modules/product/, '1', $is_virtual) . '&nbsp;' . TEXT_PRODUCT_IS_VIRTUAL . '&nbsp;' . zen_draw_radio_field('products_virtual'../../../../admin/includes/modules/product/, '0', $not_virtual) . '&nbsp;' . TEXT_PRODUCT_NOT_VIRTUAL . ' ' . ($pInfo->products_virtual == 1 ? '<br /><span class="errorText">' . TEXT_VIRTUAL_EDIT . '</span>' : ''); ?></td>

    zen cart version 1.3.9h
    This code doesn't match the original zencart distribution code.
    What modules have you installed?

    To fix the problem just copy the code back from the original files. Be aware that doing this will probably break whatever add-on it was that made the changes.

    Cheers
    Rod

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: PHP Parse error: syntax error, unexpected '.'

    Because all of this relative path names, e.g. ../../../../admin/includes/modules/product/ are not valid there.

    But as it's not clear where they've come from or what they're trying to do, you'll need to take Rod's advice and go back to whatever introduced them in the first place to fix this.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

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. Replies: 10
    Last Post: 4 Nov 2010, 09:40 PM
  4. 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
  5. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM

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