Problem/Motivation

I was getting an error indicating a problem finding .../js/window-size.js when assembling the file_get_contents function in common.inc. Sorry, I creamed the actual error message. Oops, no I didn't. It still comes up on the live site:
Warning: file_get_contents(sites/all/themes/adaptivetheme/at_core/js/window-size.js) [function.file-get-contents]: failed to open stream: No such file or directory in drupal_build_js_cache() (line 4817 of /var/www/vhosts/babc.ws/nndocs/drupal/includes/common.inc).

Proposed resolution

Found the problem in template.preprocess.inc

Line 414 reads: drupal_add_js($path_to_at_core . '/js/window-size.js',

Apparently, somewhere along the way, you changed the js directory to scripts.

Changed 414 to: drupal_add_js($path_to_at_core . '/scripts/window-size.js',

Remaining tasks

You need to modify template.preprocess.inc and release for testing. It seems to have corrected the problem for me and I haven't seen any other consequences.

User interface changes

None

API changes

Unknown

Original report by [username]

// Text of original report here.
Couldn't find any.

Gratuitous Remarks

Old code is still on the remote site, nicksnose.com/drupal (it's just a site I'm working on for our rescue, so you can get in to look at stuff if necessary). You should see the error whenever you access an uncached page.

Let me know if you'd like to.

Hope this helps, love the theme.

I thought this might be why Superfish menus are not dropping down in Corolla 7.x-2.2+7-dev but, alas, that problem persists. Don't suppose you have any thoughts on that?

CommentFileSizeAuthor
#2 IMG_2703.JPG2.17 MBDruper
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jeff Burnz’s picture

My bad, I did change the directory name! Gee I did a search for references, I am using a new IDE (phpStorm), I will blame that... lol.

Yes, I know why the menus are not working, its a display none rule I have used, but for some reason Superfish is not overriding it when a menu is in this region.

I got it to work, but it still does not look right, I would be happy to fix this up for you if you give me access, for the dogs and all, dog lover here!!!

Druper’s picture

FileSize
2.17 MB

I would like nothing better!

I reported the menu issue in Corolla (http://drupal.org/node/1529014) but would gladly take your help, any time.

let me know when you've joined the site and I'll make you an admin.

Thanks a ton, from dogs and dog lovers everywhere!

Our current foster (attached).

Jeff Burnz’s picture

I need access to the code, you can send me the details jeff@adaptivethemes.com

I have a GSD, https://lh5.googleusercontent.com/-LsgrK0vP1NA/T4YBFGJya4I/AAAAAAAAAcg/A...

Jeff Burnz’s picture

Status: Active » Fixed

I need to mark the original issue as fixed for house keeping.

For the other Corolla issues I can hopefully find some time over the weekend, I am keep to help out further. I haven't forgotten! You can always nudge me as well via email.

Druper’s picture

Jeff, Have you been getting my emails?

Jeff Burnz’s picture

Yes, but no time this weekend.

Status: Fixed » Closed (fixed)

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