Hello,

when accessing the filedepot page (/filedepot) the sidebar is missing.
The HTML is as follows:

<div id="yui-gen0" style="width: 255px; position: absolute; top: 0px; height: 495px; left: 0px;" class="yui-layout-unit yui-layout-unit-left yui-layout-scroll yui-resize"><div class="yui-layout-wrap" id="yui-gen1" style="height: 480px; width: 230px; top: 0px; left: 0px;"><div class="yui-layout-bd yui-layout-bd-nohd yui-layout-bd-noft" style="height: 478px; width: 228px; top: 0px;"><div id="filedepot_sidecol">
      <!-- Leftside Folder Navigation generated onload by page javascript -->

      <div id="filedepotNavTreeDiv"></div>
      <div class="clearboth"></div>
    </div></div></div><div id="yui-gen2" class="yui-resize-handle yui-resize-handle-r"><div class="yui-layout-resize-knob"></div></div></div>

The Firebug Console reports:
console output

The problem seems to be the language detection. On this site a path prefix is used (de, en, es, it).

Thank you
cat

CommentFileSizeAuthor
console2.jpg99.39 KBcattalk

Comments

cattalk’s picture

The syntax error in common.js in line 2137:

var oResults = eval('(' + json + ')');

Is there a problem with the brackets, or with hte brackets being in quotes?

thx
cat

cattalk’s picture

I have disabled the path prefix for the filedepot page, but the problem stays. The error occurs in common.js in the showLeftNavigation function:

YAHOO.filedepot.showLeftNavigation = function() {
  /* Generate Left Side Folder Navigation */
  var surl = ajax_post_handler_url + '/getleftnavigation';
  var navcallback = {
    success: function(o) {
      var json = o.responseText.substring(o.responseText.indexOf('{'), o.responseText.lastIndexOf('}') + 1);
      var oResults = eval('(' + json + ')');
common.js:2135SyntaxError: Unexpected token '<'
      renderLeftNavigation(oResults);
    },
    failure: function(o) {
      YAHOO.log('AJAX error loading leftside navigation : ' + o.status);
    },
    argument: {},
    timeout:55000
  }

thx
cat

cattalk’s picture

Status: Active » Fixed

I found the solution. It was a basic page that had some php content as body:

<?php drupal_goto($path='filedepot'); ?>

This page was causing an error or warning:

Warning: Cannot modify header information - headers already sent by...

This apparently made the JS crash.

Anyway, I deleted this page and everything works again.
BTW cron also stopped working because of this.

Sorry for the trouble!
cat

blainelang’s picture

Thanks Cat for posting your issue and follow-up. It may help someone else track down a similar issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.