Skip to main content
Topic: Authentication w/o Registration causes corrupt config.php Parse error:  (Read 3287 times) previous topic - next topic

Authentication w/o Registration causes corrupt config.php Parse error:

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\try2\config.php on line 53

Just installed Classic 2.3.

Looks like a bunch of the placeholders are not replaced properly:
Code: [Select]
define('MAX_UPLOAD_FILESIZE',trim(ini_get('upload_max_filesize')));

__cloudinaryconfig

// Application Page Settings
define("DEFAULT_PAGE","index"); //Default Controller Class
define("DEFAULT_PAGE_ACTION","index"); //Default Controller Action

define('DEFAULT_LAYOUT',LAYOUTS_DIR . 'main_layout.php');
define('HOME_PAGE','__defaultpage');
define("DEFAULT_LANGUAGE","__defaultlanguage"); //Default Language



// Page Meta Information
define('META_AUTHOR','__metaauthor');
define('META_DESCRIPTION','__metadescription');
define('META_KEYWORDS','__metakeywords');
define('META_VIEWPORT','__metaviewport');
define('PAGE_CHARSET','__pageenconding');

// Email Configuration Default Settings
define('USE_SMTP',__usesmtp);
define('SMTP_USERNAME','__smtpusername');
define('SMTP_PASSWORD','__smtppassword');
define('SMTP_HOST','__smtphost');
define('SMTP_PORT','__smtpport');

//Default Email Sender Details. Please set this even if you are not using SMTP
define('DEFAULT_EMAIL','__defaultemail');
define('DEFAULT_EMAIL_ACCOUNT_NAME','__defaultemailaccountname');

// Database Configuration Settings
define('DB_HOST','__dbhost');
define('DB_USERNAME','__dbuser');
define('DB_PASSWORD','__dbpassword');
define('DB_NAME','__dbname');
define('DB_TYPE','__dbtype');

define('DB_PORT','__dbport'); //You can leave empty if using default.

define('DB_CHARSET','__dbcharset');

define('MAX_RECORD_COUNT', __maxrecordlimit); //Default Max Records to Retrieve  per Page
define('ORDER_TYPE','DESC');  //Default Order Type

// Active User Profile Details
__userdefinedid
__userdefinedusername
__userdefinedemail
__userdefinedphoto
__userdefinedrole

 

Re: Authentication causes corrupt config.php Parse error:

Reply #1
Changed title to show that the problem is related to authentication being enabled.