PHP fatal error


#1

Hello!
In the web interface owncloud I go to the settings-administration-basic
and he throws me away. I’m looking at log "PHP Fatal error: Connot redeclare class OC_Theme in /var/www/html/iwncloud/themes/example/defaults.php in line 21.
This problem occurred when I updated owncloud 10.0.7 на 10.0.8
Help me please! How to fix it?

This is my file '‘config.php’

<?php
$CONFIG = array (
  'instanceid' => 'ochi8qcaxer9',
  'passwordsalt' => 'JcVeEFNDw9l+S5YD0+z66xOSUqLyVV',
  'secret' => 'pWEzeWB95jtsA4nI9qMtcoO3p46KfEn8CIAEWt8DiGUJXGV8',
  'trusted_domains' => 
  array (
    0 => '*****',
    1 => 'cld.turovmilk.by',
    2 => 'cloud.turovmilk.by',
  ),
  'datadirectory' => '/var/www/html/owncloud/data',
  'overwrite.cli.url' => 'https://cld.turovmilk.by',
  'dbtype' => 'mysql',
  'version' => '10.0.8.5',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_Nick',
  'dbpassword' => 'xtK8dBpBWFRMD/KVz+EH6t364g64v6',
  'logtimezone' => 'Europe/Minsk',
  'installed' => true,
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'turovmilk.by',
  'mail_smtpport' => '25',
  'appstore.experimental.enabled' => true,
  'ldapIgnoreNamingRules' => false,
  'mail_from_address' => 'turovcloud',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtphost' => 'mail.turovmilk.by',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '******@turovmilk.by',
  'mail_smtppassword' => '*****',
  'theme' => '',
  'maintenance' => false,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'onlyoffice' => 
  array (
    'verify_peer_off' => false,
  ),
);

This is my file '‘defaults.php’

<?php
/**
 * @author Björn Schießle <schiessle@owncloud.com>
 * @author Jan-Christoph Borchardt, http://jancborchardt.net
 * @copyright Copyright (c) 2015, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

class OC_Theme {

	/**
	 * Returns the base URL
	 * @return string URL
	 */
	public function getBaseUrl() {
		return 'https://owncloud.org';
	}

	/**
	 * Returns the URL where the sync clients are listed
	 * @return string URL
	 */
	public function getSyncClientUrl() {
		return 'https://owncloud.org/install';
	}

	/**
	 * Returns the URL to the App Store for the iOS Client
	 * @return string URL
	 */
	public function getiOSClientUrl() {
		return 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8';
	}

	/**
	 * Returns the AppId for the App Store for the iOS Client
	 * @return string AppId
	 */
	public function getiTunesAppId() {
		return '543672169';
	}

	/**
	 * Returns the URL to Google Play for the Android Client
	 * @return string URL
	 */
	public function getAndroidClientUrl() {
		return 'https://play.google.com/store/apps/details?id=com.owncloud.android';
	}

	/**
	 * Returns the documentation URL
	 * @return string URL
	 */
	public function getDocBaseUrl() {
		return 'https://doc.owncloud.org';
	}

	/**
	 * Returns the title
	 * @return string title
	 */
	public function getTitle() {
		return 'Custom Cloud';
	}

	/**
	 * Returns the short name of the software
	 * @return string title
	 */
	public function getName() {
		return 'Custom Cloud';
	}

	/**
	 * Returns the short name of the software containing HTML strings
	 * @return string title
	 */
	public function getHTMLName() {
		return 'Custom Cloud';
	}

	/**
	 * Returns entity (e.g. company name) - used for footer, copyright
	 * @return string entity name
	 */
	public function getEntity() {
		return 'Custom Cloud Co.';
	}

	/**
	 * Returns slogan
	 * @return string slogan
	 */
	public function getSlogan() {
		return 'Your custom cloud, personalized for you!';
	}

	/**
	 * Returns logo claim
	 * @return string logo claim
	 */
	public function getLogoClaim() {
		return '';
	}

	/**
	 * Returns short version of the footer
	 * @return string short footer
	 */
	public function getShortFooter() {
		$footer = '© 2016 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
			'<br/>' . $this->getSlogan();

		return $footer;
	}

	/**
	 * Returns long version of the footer
	 * @return string long footer
	 */
	public function getLongFooter() {
		$footer = '© 2016 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
			'<br/>' . $this->getSlogan();

		return $footer;
	}

	public function buildDocLinkToKey($key) {
		return $this->getDocBaseUrl() . '/server/9.0/go.php?to=' . $key;
	}


	/**
	 * Returns mail header color
	 * @return string
	 */
	public function getMailHeaderColor() {
		return '#745bca';
	}

}

Blockquote

Server configuration
Operating system:
“user_ldap” 0.9.1
Operating system: Ubuntu Server 15.10
Web server:Apache/2.4.12
Database:mariaDB 10.0.25
PHP version:PHP 5.6.11
ownCloud version (see ownCloud admin page): ownCloud 10.0.8 (stable)
Updated from an older ownCloud or fresh install:
Special configuration (external storage - nas, external authentication- ldap, reverse proxy - no, server-side-encryption-no):


#2

please update to 10.0.10


#3

I always update owncloud through the application Updater, but I can not go into it, since it is located in the menu “settings-administration-basic”
%D0%91%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B91


#4

You can update manually also. This is the recommended way.

https://doc.owncloud.com/server/10.0/admin_manual/maintenance/manual_upgrade.html