Error in log and throwing internal errors

Hi all,

I am getting this error in error logs :

Error PHP Undefined index: REQUEST_URI at /home/nacsadpmcloudco/public_html/lib/base.php#175

Which relates to this code :

	// Resolve /owncloud to /owncloud/ to ensure to always have a trailing
		// slash which is required by URL generation.
		if($_SERVER['REQUEST_URI'] === \OC::$WEBROOT &&
				substr($_SERVER['REQUEST_URI'], -1) !== '/') {
			header('Location: '.\OC::$WEBROOT.'/');
			exit();
		}
	}

This is causing multiple Internal server errors and lots of directory cannot Load directory errors

I also have a few of these but i am unsure if this is cause by the above :

Error core File with id "3" has not been found.

Server configuration
Operating system:Linux
Web server:Cent OS
Database:MySQL
PHP version:5.6
ownCloud version (see ownCloud admin page):ownCloud 9.1.0 (stable)
Updated from an older ownCloud or fresh install:Fresh
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808):

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
No external, and server side encryption is disabled - server runs behind ssl certificate

Thanks in advance for your help

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here. - This shows no errors.

Sorry also have this :

Error files Exception: {"Exception":"BadMethodCallException","Message":"Not in batch","Code":0,"Trace":"#0 \/home\/nacsadpmcloudco\/public_html\/lib\/private\/Files\/Utils\/Scanner.php(143): OC\Files\Cache\Propagator->commitBatch()\n#1 \/home\/nacsadpmcloudco\/public_html\/apps\/files\/lib\/BackgroundJob\/ScanFiles.php(87): OC\Files\Utils\Scanner->backgroundScan('')\n#2 \/home\/nacsadpmcloudco\/public_html\/apps\/files\/lib\/BackgroundJob\/ScanFiles.php(111): OCA\Files\BackgroundJob\ScanFiles->runScanner(Object(OC\User\User))\n#3 \/home\/nacsadpmcloudco\/public_html\/lib\/private\/BackgroundJob\/Job.php(52): OCA\Files\BackgroundJob\ScanFiles->run(NULL)\n#4 \/home\/nacsadpmcloudco\/public_html\/lib\/private\/BackgroundJob\/TimedJob.php(53): OC\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))\n#5 \/home\/nacsadpmcloudco\/public_html\/cron.php(144): OC\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))\n#6 {main}","File":"\/home\/nacsadpmcloudco\/public_html\/lib\/private\/Files\/Cache\/Propagator.php","Line":145}

from your filled out issue template:

Before posting snip make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

As currently two different issue are mixed in here i'm closing this thread. If these issues are happining again after the update to oC 9.1.1 please create new threads for each of the error.