Warning: file_get_contents(/sites/all/libraries/flux-slider/flux.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of /home2/(mysite)/public_html/includes/locale.inc).

Comments

Gyver06’s picture

I just installed the Flux-Slider and got exactly the same error message while trying to access the "Flux Slider Options" tab at first opening.
I just re-saved what is already set on the "Flux Slider Slides" tab and the error went away.
Try it, maybe that will solve your problem too.

raynimmo’s picture

Priority: Normal » Minor

Thanks for the reports guys.

I cant seem to replicate this error, it was something that I came across with the initial 7.x-1.0 release but have since rectified the checks for the Flux libraries presence.

I will leave this thread open for now and see if anyone else reports the same condition.

fuquam’s picture

That seemed to do it. The warning went away.

fuquam’s picture

Status: Active » Closed (cannot reproduce)
Gyver06’s picture

It seems that there is a file missing "form_theme.js" as what is in the code inside the "flux_slider_options.admin.inc" file.

There is the concerning code:

function flux_slider_option_configuration_form($form, &$form_state) {
// Get the path to the module.
$path = drupal_get_path('module', 'flux_slider');
// Attach the JS and CSS to the form.
$form['#attached'] = array(
'css' => array(
'type' => 'file',
'data' => $path . '/css/form_theme.css',
),
'js' => array(
'type' => 'file',
'data' => $path . '/js/form_theme.js',
),
);

Could someone please have a closure look at this and try to solve the display and installation issues this wonderful slider is encountering ?
I think this module has been released a little bit to fast. It doesn't seem to be working fine out of the box.

raynimmo’s picture

Status: Closed (cannot reproduce) » Closed (fixed)

Thanks again for the bug report, this made me delve a little deeper.

As you had stated, the inclusion of the form_theme.js file was removed early on in development as the start of an idea that wasn't continued.

With regards to your comment about the readiness of the release I admit that with hindsight I should have marked it up as RC (Release Candidate) for a while and worked out a few more bugs before pushing it to a supposed stable version.

I have addressed your concerns on a thread at http://drupal.org/node/1880556#comment-6907520 and I feel that the current 7.x-1.4 release deals with the issues stated above, is stable and does not throw errors during or after install.

Ivan Simonov’s picture

Version: 7.x-1.2 » 7.x-1.5
Status: Closed (fixed) » Active

Still got warning in 7.x-1.5 after flushing all caches.
Drupal version : 7.21 , 7.22

steps to reproduce:

1. open /admin/dashboard
2. flush all caches
3. open frontpage with slider enabled
4. open /admin/dashboard and got warning

Warning: file_get_contents(/sites/all/libraries/flux-slider/flux.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of .../includes/locale.inc).

raynimmo’s picture

I think i have already addressed this issue over on the thread at http://drupal.org/node/1881400#comment-6910020

As i stated there, this seems to be an issue with the Locale module as searches through the issue queues finds many instances of this reported across a whole host of modules, most of them seem to be centered around including extenal JavaScript files. It seems to me like the localization functions may be trying to parse the external script and is throwing an error.

Nearly every mention of it is on a thread which is automatically closed after no further activity. It seems that a page refresh rectifies the problem and nobody seems to follow them up.

As i mentioned in that thread, there does seem to be a patch for the Locale module over at http://drupal.org/documentation/modules/locale but there has been some recent comments and some reservations on whether the patch should be applied.

I will leave this thread open for now until i have some time to research this further and i am sure the errors are not within this module.

raynimmo’s picture

- removed double posting

raynimmo’s picture

Status: Active » Closed (fixed)

Closed after 3 months of no activity.