Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    3
    Plugin Contributions
    0

    Default syntax error, unexpected $end in admin english.php

    I have been going over this code for days now trying to find the error a can't. I was changing the date format. then after this occured..
    The error I'm getting is

    Parse error: syntax error, unexpected $end in /home/botanarc/public_html/admin/includes/languages/english.php on line 1342

    line 1342 is the last line on the page..

    please help I'm pulling my hair out!


    code I have changed
    define('JS_DOB', '* The \'Date of Birth\' entry must be in the format: xx/xx/xxxx (date/month/year).\n');



    setlocale(LC_TIME, 'en_US.ISO_8859-1');

    define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()

    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

    define('DATE_FORMAT', 'd/m/Y'); // this is used for date()

    define('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // this is used for date()

    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

    define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order



    ////

    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);



    last line section of code


    require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . FILENAME_EMAIL_EXTRAS);

    include(zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/', FILENAME_OTHER_IMAGES_NAMES, 'false'));




    ?>
    Last edited by botanarchy; 10 Dec 2009 at 12:04 PM.

  2. #2
    Join Date
    Dec 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: syntax error, unexpected $end in admin english.php

    I trying to find the post I followed to change the date
    Last edited by botanarchy; 10 Dec 2009 at 12:05 PM.

  3. #3
    Join Date
    Dec 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: syntax error, unexpected $end in admin english.php

    allways the way, as soon as I ask for help, I manage to fix it,

    it read
    ////

    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);




    // removed for meta tags


    should have read

    ////

    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
    }
    }

 

 

Similar Threads

  1. Syntax error Unexpected $end
    By Appa306 in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2011, 04:36 PM
  2. Replies: 10
    Last Post: 4 Nov 2010, 09:40 PM
  3. Replies: 0
    Last Post: 18 Jun 2010, 03:19 PM
  4. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  5. Parse error: syntax error, unexpected $end in /home/mindmint/www/www/admin/ezpages.ph
    By Paul R. - Mindmint in forum Customization from the Admin
    Replies: 1
    Last Post: 1 Nov 2006, 08:21 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