• PHP Help PHP Coding
  • Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,in configuration.php

I developed a site on joomla, sort of a demo server I now want to move it into a new server and uploaded all the php files and configuration files including importing the old database into the new site through phpmyadmin.

when i load the page tethys-plantgeria.com/index php it gives me a parse error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in \HOSTING\DFS\20\9\7\0\2076609079\user\sites\tethys-plantgeria.com\www\configuration.php on line 53

How do i remove this error message and get the site working..

Here is a copy of configuration.php file

<?php
class JConfig {
	public $offline = '0';
	public $offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
	public $display_offline_message = '1';
	public $sitename = 'Tethysplantgeria';
	public $editor = 'tinymce';
	public $list_limit = '20';
	public $access = '1';
	public $debug = '0';
	public $debug_lang = '0';
	public $dbtype = 'mysql';
	public $host = '';
	public $user = '';
	public $password = '';
	public $db = '';
	public $dbprefix = 'jos_';
	public $live_site = '';
	public $secret = '3so6lxk3tba4tdkb';
	public $gzip = '0';
	public $error_reporting = 'default';
	public $helpurl = 'http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help16:{keyref}';
	public $ftp_host = '';
	public $ftp_port = '';
	public $ftp_user = '';
	public $ftp_pass = '';
	public $ftp_root = '';
	public $ftp_enable = '0';
	public $offset = 'UTC';
	public $offset_user = 'UTC';
	public $mailer = 'sendmail';
	public $mailfrom = 'nianyanwu@yahoo.com';
	public $fromname = 'Tethysplantgeria';
	public $sendmail = '/usr/sbin/sendmail';
	public $smtpauth = '0';
	public $smtpuser = '';
	public $smtppass = '';
	public $smtphost = 'mail.tethys-plantgeria.com';
	public $smtpsecure = 'none';
	public $smtpport = '25';
	public $caching = '0';
	public $cache_handler = 'file';
	public $cachetime = '15';
	public $MetaDesc = 'TethysPlantgeria';
	public $MetaKeys = '';
	public $MetaAuthor = '1';
	public $sef = '1';
	public $sef_rewrite = '0';
	public $sef_suffix = '0';
	public $unicodeslugs = '0';
	public $feed_limit = '10';
	public $log_path = '/site/tethys-plantgeria.com/www/logs'';
	public $tmp_path = '/site/tethys-plantgeria.com/www/tmp'';
	public $lifetime = '15';
	public $session_handler = 'database';
	public $MetaRights = '';
	public $sitename_pagetitles = '1';
	public $force_ssl = '0';
	public $feed_email = 'author';
	public $cookie_domain = '';
	public $cookie_path = '';
}

    Have a good look at line 53 and the quotes you're using.

      @ i've seen the quotes will work on it.thanks,i thought as much though cos it gave me a different color on my code editor

      will try and let you know

        @ phew! removing the double '' finally worked but the page opens only when you type index.php as the directory pathway.When i type directly the url www.tethys-plantgeria.com it doesn't open the page rather it says i do not have the permission to view this directory..how do i get this resolved

        the same applies for the administrator page like tethys-plantgeria.com/administrator it doesn't open the page rather it opens only when i put index.php after it.

        Lastly i still get this errors like:

        JFolder: :folder: Path is not a folder. Path: \HOSTING\DFS\20\9\7\0\2076609079\user\sites\tethys-plantgeria.com\www\administrator\language

        Warning: Invalid argument supplied for foreach() in \HOSTING\DFS\20\9\7\0\2076609079\user\sites\tethys-plantgeria.com\www\libraries\joomla\language\language.php on line 1221

        on the administrator page..

        thats about it,once i get all these resolved i think its a go with this project.

        waiting for your suggestions

        Nb;thanks so much with your assistance so far..

          I attached a copy of the language.php code on

          Warning: Invalid argument supplied for foreach() in \HOSTING\DFS\20\9\7\0\2076609079\user\sites\tethys-plantgeria.com\www\libraries\joomla\language\language.php on line 1221

            It sounds like your webserver isn't configured to look for 'index.php' as a default index file. For example, on Apache, you would want to look into modifying the DirectoryIndex directive in http.conf or a .htaccess file.

            EDIT: As for your other errors, start from the first error and work your way down. I've never used Joomla so I have no idea what this JFolder class does, but apparently the "path is not a folder" as the error message states.

              Write a Reply...