I received the following error after enabling Mobile Tools Browscap:

Warning: file_exists() expects parameter 1 to be string, array given in ctools_get_plugins() (line 253 of /var/www/hosts/kmdsi-a/sites/all/modules/ctools/includes/plugins.inc).

Also when attempting to save a device group I receive this error:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'kmdsi-a.mobile_tools_device_group' doesn't exist: INSERT INTO {mobile_tools_device_group} (dgid, title, purl_modifier, theme, themekey_id, description, detector, detection_settings, weight, httpheaders) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => mobiliz [:db_insert_placeholder_1] => mobiliz [:db_insert_placeholder_2] => m.kmdsi.com [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => [:db_insert_placeholder_5] => Mobile devices other than tablets and desktop. [:db_insert_placeholder_6] => mobile_tools_browscap [:db_insert_placeholder_7] => a:1:{s:21:"mobile_tools_browscap";a:3:{s:19:"activation_callback";s:30:"mobile_tools_browscap_activate";s:29:"mobile_tools_browscap_default";a:3:{s:6:"mobile";s:6:"mobile";s:6:"tablet";i:0;s:7:"desktop";i:0;}s:33:"mobile_tools_browscap_user_agents";a:2:{s:66:"Mozilla/5.0 (compatible; MSIE 9.0; %Windows NT 6.0; Trident/5.0%)%";s:66:"Mozilla/5.0 (compatible; MSIE 9.0; %Windows NT 6.0; Trident/5.0%)%";s:73:"Mozilla/5.0 (compatible; MSIE 9.0; %Windows NT 6.0; WOW64; Trident/5.0%)%";s:73:"Mozilla/5.0 (compatible; MSIE 9.0; %Windows NT 6.0; WOW64; Trident/5.0%)%";}}} [:db_insert_placeholder_8] => 0 [:db_insert_placeholder_9] => a:0:{} ) in drupal_write_record() (line 7013 of /var/www/hosts/kmdsi-a/includes/common.inc).

Here's another error I receive:

Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 2267 of /var/www/hosts/kmdsi-a/includes/form.inc).

I should mention that I had Mobile Tools 2 installed and when I attempted to enable Mobile Tools Browscap the screen went blank and wouldn't allow it to be enabled, this was also on D7.

Comments

minoroffense’s picture

Status: Active » Closed (works as designed)

Yeah you have to fully uninstall Mobile Tools 2.x before installing 3.x. I'll add that note to the README file.

Try restoring 2.x, fully uninstall the module and them install 3.x.

matt-e-matic’s picture

Thanks, that appears to work, however, when I save the device group I get this error:

Notice: Undefined index: none in mobile_tools_device_group_form_submit() (line 300 of /var/www/hosts/kmdsi-a/sites/all/modules/mobile_tools/mobile_tools.admin.inc).

I noticed Mobile Tools Roles in the module list, but I'm not able to uninstall it.

matt-e-matic’s picture

Status: Closed (works as designed) » Active
kenppx’s picture

I also have similar problem. And I can not enable device detection.

Warning: Invalid argument supplied for foreach() form_type_checkboxes_value()
(/home/mysite/www/nobu/includes/form.inc ファイル 2267行).

minoroffense’s picture

Status: Active » Closed (works as designed)

Please create a separate issue for the Invalid argument warning and some details on how you triggered it. The issue regarding the missing tables has been resolved (essentially, don't try to upgrade from 2.x).

minoroffense’s picture

minoroffense’s picture

Issue summary: View changes

I forgot to add an error that I receive.