Running Commerce Kickstart 7.2.21 an error message shows up on the /user and front page:

Warning: file_get_contents(profiles/commerce_kickstart/libraries/jquery.bxslider/jquery.bxslider.min.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 von /usr/www/site/dev/public/includes/locale.inc).

It's occurring both with php5.3/php5.4 allow_url_fopen enabled and disable.

Comments

howdytom’s picture

Issue summary: View changes
lsolesen’s picture

Status: Active » Needs review

Thans for reporting this. Problem is that jquery.bxslider changed directory structure, and we are relying on master download: https://github.com/commerceguys/commerce_kickstart/pull/90

kingfisher64’s picture

StatusFileSize
new15.61 KB
new18.56 KB

I'm not sure if it's the same error but firebug reveals a link to a non-existent file (screenshot attached)

How can this be fixed?

Many thanks

Edit - it is the same issue.

Salif’s picture

Same issue as Howdytom as mentioned in #2 by Isolesen

lsolesen’s picture

A quick workaround until next release is to put the file manually into the correct directory as expected by CK.

Salif’s picture

#5 works
Thanks @Isolesen

rpsu’s picture

Same here. Patch attached.

rpsu’s picture

And this should fix problem on sites - apply patch in DRUPAL_ROOT -folder, where profiles -folder is in. Patch file simply fixes path to jquery.bxslider.min.js -file.

howdytom’s picture

#5 @Isolesen: Thank you

kingfisher64’s picture

StatusFileSize
new5.21 KB

For quickness sake the file path is:

profiles/commerce_kickstart/libraries/jquery.bxslider/jquery.bxslider.min.js

attached is v4 of bxslider.min.js which is requested there.

bwill’s picture

@kingfisher64

Thanks for the path and download. I'm a little rusty on patching Drupal. Now I just have to figure out if there are supposed to be nav buttons on the slideshow.

daveparrish’s picture

Status: Needs review » Reviewed & tested by the community

I applied #8 manually and it worked fine for me. By the way, there is another reference to the bxslider library in the commerceguys_marketplace module.

candelas’s picture

Title: 7.x-2.21 No such file or directory in _locale_parse_js_file() (line 1488 » 7.x-2.22 No such file or directory in _locale_parse_js_file() (line 1488

Same problem in 2.22, and patch in #8 still working (thanks @rpsu), so I change the version and hope it will be in dev soon.

bit.cyber’s picture

I created a duplicate of this issue as 2458561, upon moving to 7.x-2.22. (I've since closed it as a duplicate.)
Applied patch contained in #8 - all fixed and now working. Thanks!

MariannevdS’s picture

#10 worked best for me, with #8 the slideshow worked again but the layout looked funny.

candelas’s picture

@MariannevdS but the layout looked funny. Could you please be more explicit to be able to help programmers? Thanks

rpsu’s picture

Version: 7.x-2.21 » 7.x-2.x-dev

  • lsolesen committed 25f91ca on 7.x-2.x
    Issue #2425963 by howdytom: jquery.bxslider restructured repository...
  • bojanz committed fb9e258 on 7.x-2.x
    Merge pull request #90 from lsolesen/issue-2425963
    
    Issue #2425963 by...
bojanz’s picture

Status: Reviewed & tested by the community » Fixed
BarisW’s picture

Status: Fixed » Needs work

Why are there two library definitions of bxslider?
One in commerce_kickstart_slideshow_library() and the other in commerceguys_marketplace_library(). Both have this same error and this issue only fixes one.

BarisW’s picture

Status: Needs work » Fixed

the layout looked funny -> meaning the library definition in commerce_kickstart_slideshow_library() also contains a call to a css file.

I see that the actual commit just reverted to the use of the older external library. That should fix the problem too.

Status: Fixed » Closed (fixed)

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

Glycergic’s picture

I've been struggling with this issue for some time now.

Locally I don't have it, but on production I do. Ran the patch and then git push > git pull. Funny thing is that it solved the issue at first. But after fine-tuning my nginx settings it came back. Locally I run Apache2 though.

It doesn't produce an error, the slideshow just isn't working. If someone could point me in some direction for a possible work around, would be well appreciated!