Hello,

I needed this module to get flux slider to work. It is doing as it should and flux slider is working however I noticed many errors in my recent log entries as follows.

PHP ERROR
Invalid argument supplied for foreach() in /home/public_html/sites/all/modules/jqmulti/jqmulti.module on line 211.

BACKTRACE
Type: php
Invalid argument supplied for foreach() in /home/public_html/sites/all/modules/jqmulti/jqmulti.module on line 211.
Backtrace:
jqmulti_find_all_js_files(a:1:{i:0;s:33:"sites/all/libraries/jquery/themes";})[jqmulti.module:211];
.jqmulti_find_all_js_files(a:1:{i:0;s:26:"sites/all/libraries/jquery";})[jqmulti.module:161];
..jqmulti_get_library_files(a:2:{i:0;s:6:"jquery";i:1;b:1;})[jqmulti.module:229];
...jqmulti_get_version(a:1:{i:0;b:1;})[jqmulti.install:47];
....jqmulti_requirements(a:1:{i:0;s:7:"runtime";})[?:?];
.....call_user_func_array(a:2:{i:0;s:20:"jqmulti_requirements";i:1;a:1:{i:1;s:7:"runtime";}})[module.inc:497];
......module_invoke_all(a:2:{i:0;s:12:"requirements";i:1;s:7:"runtime";})[system.admin.inc:1724];
.......system_status(a:1:{i:0;b:1;})[system.admin.inc:20];
........system_main_admin_page(a:0:{})[?:?];
.........call_user_func_array(a:2:{i:0;s:22:"system_main_admin_page";i:1;a:0:{}})[menu.inc:350];
..........menu_execute_active_handler(a:0:{})[index.php:17];
...........index.php

This error is being created when my site users are visitng or editing various pages that have nothing to do with the flux slider.

Any ideas on how to correct this? Otherwise it would seem like the best thing for me to do is disable this module and not use the flux slider..

Paul

CommentFileSizeAuthor
#3 jqmulti-6.x-1.0-beta2-init.patch377 bytesalbeiq

Comments

pareen’s picture

I am getting the same error.

Did you figure out why this is happening?

modiphier’s picture

No, I just disabled the module and hope we get an answer here otherwise I delete it..

albeiq’s picture

Status: Active » Needs review
StatusFileSize
new377 bytes

Initialization of the $result variable seems to solve the problem.

Please check for the attached patch.

modiphier’s picture

Great thanks for the patch.. I added it to my module file and so far I haven't seen the error. I was noticing the error when users logged in to edit content. I will report back if I notice it again.

Thanks again!

Paul

dunx’s picture

Fixed same issue, so patch looks good to go.

goron’s picture

Status: Needs review » Fixed

Thanks. Fixed.

Status: Fixed » Closed (fixed)

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