Results 1 to 7 of 7

Thread: I keep getting this error!!

  1. #1
    New user
    Join Date
    06-07-11.
    Posts
    6

    Default I keep getting this error!!

    Hello all,
    I'm new here and trying to find my way in this system.
    I keep getting this error after fixing the = its comming back after some time over and over again
    and i dont know where its comming from,

    Parse error: syntax error, unexpected '=' in localconfig.php on line 35

    What to do?

    Greetings,
    Tim

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: I keep getting this error!!

    Hi,

    the mentioned error comes from your local configuration file "localconfig.php".

    Connect via FTP to your Contao webspace, open the subdirectory "system/config" and there the file "localconfig.php". Check the entries around line 35 whether there is a syntax error (e.g. missing semicolons/apostrophes etc.pp.). Did you add manually something to this configuration file?
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    06-07-11.
    Posts
    6

    Default Re: I keep getting this error!!

    Quote Originally Posted by xchs
    Hi,

    the mentioned error comes from your local configuration file "localconfig.php".

    Connect via FTP to your Contao webspace, open the subdirectory "system/config" and there the file "localconfig.php". Check the entries around line 35 whether there is a syntax error (e.g. missing semicolons/apostrophes etc.pp.). Did you add manually something to this configuration file?
    I know it is comming from that file but after editing it, the site works for some time and after that the same error is comming back. And i did not add a manually line in the localconfig file.

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: I keep getting this error!!

    Can you post the complete "localconfig.php" without (!) any passwords or DB credentials?
    Contao Community Moderator
    → Support options

  5. #5
    New user
    Join Date
    06-07-11.
    Posts
    6

    Default Re: I keep getting this error!!

    Quote Originally Posted by xchs
    Can you post the complete "localconfig.php" without (!) any passwords or DB credentials?
    <?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

    /**
    * Contao Open Source CMS
    * Copyright (C) 2005-2011 Leo Feyer
    *
    * Formerly known as TYPOlight Open Source CMS.
    *
    * This program is free software: you can redistribute it and/or
    * modify it under the terms of the GNU Lesser General Public
    * License as published by the Free Software Foundation, either
    * version 3 of the License, or (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with this program. If not, please visit the Free
    * Software Foundation website at <http://www.gnu.org/licenses/>.
    *
    * PHP version 5
    * @copyright Leo Feyer 2005-2011
    * @author Leo Feyer <http://www.contao.org>
    * @package Config
    * @license LGPL
    * @filesource
    */

    ### INSTALL SCRIPT START ###
    $GLOBALS['TL_CONFIG']['websitePath'] = '';
    $GLOBALS['TL_CONFIG']['licenseAccepted'] = true;
    $GLOBALS['TL_CONFIG']['installPassword'] =
    'b0860addbc738c6b27091105803962a3c892aa8b:b6e746f2 f2243514ad1f211'; =
    $GLOBALS['TL_CONFIG']['installCount'] = 0;
    $GLOBALS['TL_CONFIG']['encryptionKey'] = 'b408ea5a46cfc7b4b34c67427b254199';
    $GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQL';
    $GLOBALS['TL_CONFIG']['dbHost'] = 'localhost';
    $GLOBALS['TL_CONFIG']['exampleWebsite'] = 1306929489;
    $GLOBALS['TL_CONFIG']['cron_weekly'] = 201127;
    $GLOBALS['TL_CONFIG']['latestVersion'] = '2.9.5';
    $GLOBALS['TL_CONFIG']['cron_daily'] = 20110705;
    $GLOBALS['TL_CONFIG']['websiteTitle'] = 'De Werkmeester BV';
    $GLOBALS['TL_CONFIG']['adminEmail'] = 'tim@fourstar.nl';
    $GLOBALS['TL_CONFIG']['displayErrors'] = true;
    ### INSTALL SCRIPT STOP ###

    ?>

    The "=" is the problem in the red line :!:

  6. #6
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: I keep getting this error!!

    Quote Originally Posted by Timh92
    $GLOBALS['TL_CONFIG']['installPassword'] =
    'b0860addbc738c6b27091105803962a3c892aa8b:b6e746f2 f2243514ad1f211'; =
    Yes, that's wrong. The encrypted password string must be in the same line as the variable name "$GLOBALS['TL_CONFIG']['installPassword']". Does this apply in your case? If not, change it accordingly.
    Contao Community Moderator
    → Support options

  7. #7
    New user
    Join Date
    06-07-11.
    Posts
    6

    Default Re: I keep getting this error!!

    Quote Originally Posted by xchs
    Quote Originally Posted by Timh92
    $GLOBALS['TL_CONFIG']['installPassword'] =
    'b0860addbc738c6b27091105803962a3c892aa8b:b6e746f2 f2243514ad1f211'; =
    Yes, that's wrong. The encrypted password string must be in the same line as the variable name "$GLOBALS['TL_CONFIG']['installPassword']". Does this apply in your case? If not, change it accordingly.
    Great,Thank you! I hope it is fixed now and it won't come back!

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
  •