In a clean Drupal 7.20 installation, jquerymobile and libraries modules enabled, all the required jquery and jquerymobile js files downloaded. But after installing the mobile_jquery theme via Web, it doesn't show in admin/appearance. I have to execute drush commands: drush en mobile_jquery;drush mobile_jquery qyedumobiletheme; then in admin/appearance, I can see the sub theme qyedumobiletheme, enable it and set default, then in admin/config/jquerymobile/settings, in GLOBAL SETTINGS, check on qyedumobiletheme, no error shows. Then go to homepage, it shows without jquery mobile effect! Pls see the Attached screenshot.
When opening the page admin/config/jquerymobile/settings/mobile_jquery, it shows:
Notice: Undefined index: autoinitializepage in jquerymobile_admin_local_settings() (line 172 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: subpageurlkey in jquerymobile_admin_local_settings() (line 180 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: activepageclass in jquerymobile_admin_local_settings() (line 187 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: activebtnclass in jquerymobile_admin_local_settings() (line 194 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: ajaxenabled in jquerymobile_admin_local_settings() (line 201 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: linkbindingenabled in jquerymobile_admin_local_settings() (line 209 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: hashlisteningenabled in jquerymobile_admin_local_settings() (line 217 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: pushstateenabled in jquerymobile_admin_local_settings() (line 225 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: defaultpagetransition in jquerymobile_admin_local_settings() (line 233 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: touchoverflowenabled in jquerymobile_admin_local_settings() (line 241 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: defaultdialogtransition in jquerymobile_admin_local_settings() (line 249 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: minscrollback in jquerymobile_admin_local_settings() (line 257 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: loadingmessage in jquerymobile_admin_local_settings() (line 264 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).
Notice: Undefined index: pageloaderrormessage in jquerymobile_admin_local_settings() (line 271 of /usr/share/nginx/qyedu/sites/all/modules/jquerymobile/jquerymobile.admin.inc).

I've tried both mobile_jquery 7.x-2.0-beta1 & jquerymobile 7.x-2.0-beta1 and mobile_jquery 7.x-2.x-dev & jquerymobile 7.x-2.x-dev, the problem is the same.

Comments

fishfree’s picture

In admin/config/jquerymobile/settings, I change "Where are the framework files located?" from "Local files" to "Hosted (http://code.jquery.com)", then not problem any more.

It's better to describe in more detail how to download and put the related js files.

verta’s picture

Title: The theme doesn't work in Drupal 7.20 » The theme doesn't work in Drupal 7.20/7.21

I followed the instructions up to the point of going to step 4, and I see my new sub theme. I was able to enable it. When I click the settings link, I get the White Screen of Death (WSOD).

I tried to go to admin/config/jquerymobile/settings but this link does not work.

Running Drupal 7.21. Any advice is welcome.

Edit - realized that this path only works if http://drupal.org/project/jquerymobile is installed and enabled. Now I am not sure if this module is a dependancy? I have not been able to get it working yet, but should have today.

One problem I am having is that sites/all/libraries does not exist on our site. I cannot set admin/config/jquerymobile/settings to use the hosted option, as it will not validate if the path does not exist.

sootamee’s picture

I managed to fix the firebug error and notice error by editing file jquerymobile.inc line 72

The configuration array is saved with camel cased key, but the reading uses lower case which is incompatible...

So I change:
$settings = _jquerymobile_get_settings($theme_key);

Into:
$settings = array_change_key_case(_jquerymobile_get_settings($theme_key),CASE_LOWER);

jordan8037310’s picture

Status: Active » Closed (duplicate)

This issue is an error with the jquerymobile module and should be resolved there.

Here is the issue in that module's queue: https://drupal.org/node/1837722

It has been fixed as of the most recent dev version.