Problem loading page, reloading in 5 seconds

I have a new owncloud setup with server 9 and randomly I get the following error when users login.

Problem loading page, reloading in 5 seconds - this cycles for around 2 minutes and then drops the user back at the login screen, I have tried several different computers/browsers/internet connections and i still get the same fault.

I also get in logging in as admin but only when loading the personal page. As soon as I go to menu then admin the page loads fine, if I then go back to personal it loads fine.

Here's the log entry for this problem, over and over again! >>>
{"reqId":"nqf\/eE4Ah4U30kD21Cnq","remoteAddr":"2a0xxxxxxxxxxxxxbb1","app":"index","message":"Exception: {\"Exception\":\"ParseError\",\"Message\":\"syntax error, unexpected '<', expecting end of file\",\"Code\":0,\"Trace\":\"#0 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/private\\/Template\\/Base.php(148): OC\\Template\\Base->load('\\/home\\/sites\\/1b\\/...', NULL)\n#1 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/private\\/legacy\\/template.php(226): OC\\Template\\Base->fetchPage(NULL)\n#2 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/private\\/legacy\\/template.php(248): OC_Template->fetchPage()\n#3 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/public\\/AppFramework\\/Http\\/TemplateResponse.php(156): OC_Template->fetchPage()\n#4 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/private\\/AppFramework\\/Http\\/Dispatcher.php(112): OCP\\AppFramework\\Http\\TemplateResponse->render()\n#5 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/private\\/AppFramework\\/App.php(99): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files\\Controller\\ViewController), 'index')\n#6 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/private\\/AppFramework\\/Routing\\/RouteActionHandler.php(46): OC\\AppFramework\\App::main('ViewController', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#7 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->_invoke(Array)\n#8 \\/home\\/sites\\/1b\\/7\\/787290e362\\/publichtml\\/lib\\/private\\/Route\\/Router.php(280): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#9 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/lib\\/base.php(891): OC\\Route\\Router->match('\\/apps\\/files\\/')\n#10 \\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/index.php(54): OC::handleRequest()\n#11 {main}\",\"File\":\"\\/home\\/sites\\/1b\\/7\\/787290e362\\/public_html\\/core\\/templates\\/layout.user.php\",\"Line\":8}","level":3,"time":"2017-01-13T09:48:01+00:00","method":"GET","url":"\/index.php\/apps\/files\/","user":"JIMMY"}

{"reqId":"hNwZ\/hm2Ha+jyU5vrtbE","remoteAddr":"2xxxxxxxx:600:2bb1","app":"PHP","message":"Undefined index: id at \/home\/sites\/1b\/7\/787290e362\/public_html\/core\/ajax\/share.php#229","level":3,"time":"2017-01-13T09:12:43+00:00","method":"GET","url":"\/index.php\/core\/ajax\/share.php?

Any help would be really appreciated.

John

Can you tell us your exact server version and your php version? On the admin page, are code signing errors shown?

The owncloud server is 9.1.3 (stable)

PHP version is 5.6 (I tried running php 7 too, but had the same problem)

Thanks
John

Might be possible that:

  1. You're running a broken custom / own template
  2. Your hoster, CDN (cloudflare etc.) is injecting custom stuff into the javascript / sourcecode of oC
  3. You're running a 3rdparty app causing this issue