nitda
February 21, 2018, 5:20pm
1
Please am new here…i have this issue for more than 3 weeks, i need help to resolve it
Error…
An unhandled exception has been thrown:
ParseError: syntax error, unexpected ‘=’, expecting ‘)’ in /var/www/nextcloud/config/config.php:33
Stack trace:
#0 /var/www/nextcloud/lib/private/Config.php(63): OC\Config->readData()
#1 /var/www/nextcloud/lib/base.php(134): OC\Config->__construct(’/var/www/nextcl…’)
#2 /var/www/nextcloud/lib/base.php(596): OC::initPaths()
#3 /var/www/nextcloud/lib/base.php(1080): OC::init()
#4 /var/www/nextcloud/console.php(46): require_once(’/var/www/nextcl…’)
#5 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)
Schmu
February 21, 2018, 5:26pm
2
There is a syntax error in your config file.
Please post your config file here (WITHOUT all the confidential entries - so replace the values with ***) if you need help to correct it.
You can look around line 33. There should be the mistake somewhere.
nitda
February 21, 2018, 5:37pm
3
Thanks , see below the config.php
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'instanceid' => '***',
'passwordsalt' => '****',
'secret' => '*****',
'trusted_domains' =>
array (
0 => '*****',
1 => '******',
),
'datadirectory' => '/var/www/nextcloud-data',
'overwrite.cli.url' => '******',
'dbtype' => 'mysql',
'version' => '13.0.0.14',
'dbname' => '*****',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => '*****',
'dbpassword' => '*****',
'installed' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'maintenance' = true,
'htaccess.RewriteBase-value/' => '',
'htaccess.RewriteBase-value' =>
array (
'/' => '',
),
'mail_from_address' => '*****',
'mail_domain' => 'nitda.gov.ng',
'theme' => '',
'loglevel' => 2,
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'webmail.nitda.gov.ng',
'mail_smtpport' => '443',
'mail_smtpauth' => 1,
'mail_smtpname' => '********',
'mail_smtppassword' => '*****',
'updater.secret' => '***',
);
Schmu
February 21, 2018, 5:44pm
4
nitda:
‘maintenance’ = true,
Yes, here it is.
It should read:
'maintenance' => true,
Or if you would like to take your server out of maintenance:
'maintenance' => false,
nitda
February 21, 2018, 5:49pm
5
thanks …but still same error.
Schmu
February 21, 2018, 5:51pm
6
Did you restart the web server?
If so: Even though you added the > you receive the same error message in the logs? Or does the log mention a different line? Different from “/var/www/nextcloud/config/config.php:33”?
nitda
February 21, 2018, 5:58pm
7
Thanks for your assistance…the cloud is back fully.
1 Like