osCmax v2.5 User Manual
Results 1 to 2 of 2

3 errors I don't know how to fix

This is a discussion on 3 errors I don't know how to fix within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm using Eclipse as my editor. I was able to fix all but 3 of the errors it reported. If ...

      
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    57
    Rep Power
    3


    Default 3 errors I don't know how to fix

    I'm using Eclipse as my editor. I was able to fix all but 3 of the errors it reported. If someone could give me a hand, I'd appreciate it.

    #1: Start tag <a> not closed
    in admin/stats_monthly_sales.php line 244:
    PHP Code:
    <td class="smallText"><a href="<?php  
                    
    echo $_SERVER['PHP_SELF'] . "?" $_SERVER['QUERY_STRING'] . "&print=yes";
                    
    ?>" target="print" title="<?php echo TEXT_BUTTON_REPORT_PRINT_DESC "">" . TEXT_BUTTON_REPORT_PRINT; ?></a>
                    </td>
                    <td class="
    smallText"><a href='<?php echo $_SERVER['PHP_SELF'] . "?" . ereg_replace('&invert=yes','',$_SERVER['QUERY_STRING']);
                    if (!
    $invert) echo "&invert=yes";
                    echo "' title= '" . TEXT_BUTTON_REPORT_INVERT_DESC . "'>" . TEXT_BUTTON_REPORT_INVERT; ?></a>
                    </td>
                    <td class="smallText"><a href="#" onClick="window.open('
    <?php  
                    
    echo $_SERVER['PHP_SELF'] . "?&help=yes";    ?>','help',config='height=400,width=600,scrollbars=1, resizable=1')" title="<?php echo TEXT_BUTTON_REPORT_HELP_DESC "">" . TEXT_BUTTON_REPORT_HELP; ?></a>
                    </td>
    #2: syntax error, unexpected '(', expecting ',' or ';'
    in admin/includes/classes/sessions.php line 33:
    PHP Code:
    var $cookie_path substr(DIR_WS_ADMIN0, -1); 
    The opening parenthesis after substr is highlighted as the error.

    #3: syntax error, unexpected "EOF"
    in catalog/affiliate_password_forgotten.php
    It doesn't point to any line, just puts the cursor at the top of the file.

    I'm using v2.0.25 with the Compromise template and I have not edited the above 3 files in anyway.

    Thanks for any help with this!

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: 3 errors I don't know how to fix

    Could be Eclipse plugin issue...
    Output from gPHPEdit:
    "No syntax errors detected in xxx/xxx/stats_monthly_sales.php"

    You could try removing the carriage return here:
    Code:
                    <td class="smallText"><a href="<?php  echo $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'] . "&print=yes"; ?>" target="print" title="<?php echo TEXT_BUTTON_REPORT_PRINT_DESC . "">" . TEXT_BUTTON_REPORT_PRINT; ?></a>
    For #2 & 3, I suspect that it's due to not taking account of the functions and any required library that are called, prior to running the PHP.

    Though may well be off-the-wall, 'cos I don't use an IDE
    Last edited by ridexbuilder; 06-10-2010 at 11:16 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. PayPal Errors
    By justedee in forum Paypal
    Replies: 13
    Last Post: 09-05-2007, 12:21 PM
  2. Errors with paypal_ipn
    By RobPrince in forum Paypal
    Replies: 4
    Last Post: 07-01-2007, 05:24 AM
  3. errors i have.
    By inversechi in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-07-2006, 11:51 AM
  4. Some questions (and errors)
    By danijel in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 12-16-2003, 11:23 AM
  5. errors
    By litotes in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-07-2003, 08:25 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
  •