After installing Openfolio the site seems to function ok (www.lizsteward.co.uk) but i'm getting the following error message when i view a gallery.

Notice: Undefined index: ismobiledevice in browscap_ctools_browscap_access_ctools_access_check() (line 34 of /homepages/5/d439780509/htdocs/openfolio-7.x-1.0-alpha3/profiles/openfolio/modules/contrib/browscap_ctools/plugins/access/browscap_access.inc).

Any advice on how to resolve?

Comments

nilor’s picture

Go to admin/config/system/browscap and click the "Refresh browscap data" button.

Joe Vangsness’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.0-alpha11

I am getting the same error message after going to a gallery. When I used the suggested fix:

"Go to admin/config/system/browscap and click the "Refresh browscap data" button"

I get this error message in the browscap dialgo box:

Warning: Error parsing /tmp/.private/w_folio1/browscap_folio1.dev4.webenabled.net.ini on line 386 in _browscap_import() (line 90 of /home/clients/websites/w_folio1/public_html/folio1/profiles/openfolio/modules/contrib/browscap/import.inc).

Any suggestions? Really like this distribution.

asteward’s picture

Tried clearing my cache and got the same error as Joe

FotAd’s picture

same problem here and i can't find a resolution help would realy be appreciated. Just installed 7.22 profile: OpenFolio (openfolio-7.x-1.0-alpha13)

design dog’s picture

Install current updates // mainly new and current version of Browscap.

After new update/install > Go here, Read, and change line 51 on import.inc

https://drupal.org/node/1852184

As stated, after uploaded change to line 51 // run Refresh BrowseCap Data

design dog’s picture

Issue summary: View changes

Dare I say ... but the other alternative if the above does not work in Openfolio is by going to above link and disengaging line 32-40 with // or /** therefore bypassing ismobile detect in browscap_access.inc and the error will go away with your gallery views still functioning. Just probably not mobile. Last resort but it works.

design dog’s picture

?this may be theme specific / also I believe this might have to do with Openfolio and that particular View / so it might also be fixed with creating a different view similar without mobile detect\?

crystaldawn’s picture

This is a duplicate of: https://drupal.org/node/2171549

You get this error because the "browscap" table is completely empty (since it's a first install, it should be empty which is why you get this on new installs). The reason it's empty is because the URLs for fetching the browscap data have changed recently but the module has never been updated for the new URL's. This includes the current Dev version as of today's date. #19 at the above queue item has the correct fix for this issue.

manObject’s picture

With a new site running under localhost on my 64 bit desktop I get exactly the same error message:

"Undefined index: ismobiledevice in browscap_ctools_browscap_access_ctools_access_check() (line 34 of C:\wamp\www\openfolio_site_name\profiles\openfolio\modules\contrib\browscap_ctools\plugins\access\browscap_access.inc)."

On trying the recommended fix:

"Go to admin/config/system/browscap and click the "Refresh browscap data" button"

I get:

"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1859072 bytes) in C:\wamp\www\openfolio_site_name\profiles\openfolio\modules\contrib\browscap\import.inc on line 104"

A strange bug also affects freshly uploaded images; the thumbnails appear as they should but the full size images appear in the form of a text dump (both bulk and single file uploads are affected). This stops happening once the affected files are opened at least once from the 'Manage Photos' utility. I hope that this bug doesn't appear whenever the image is unable to be fetched from the browser's temporary internet file cache, or once the site goes live, new visitors won't think much of it!

dshesq’s picture

Openfolio Drupal browscap error statement:

Notice: Undefined index: ismobiledevice in browscap_ctools_browscap_access_ctools_access_check() (line 34 of /var/www/html/lmhart/openfolio/profiles/openfolio/modules/contrib/browscap_ctools/plugins/access/browscap_access.inc).
To solve this I did the following:

In var/www/html/xxx/openfolio/profiles/openfolio/modules/contrib/broscap/import.ini

Used the following code:

// Retrieve the browscap data using HTTP.
$browscap_data = drupal_http_request('http://browscap.org/stream?q=Lite_PHP_BrowsCapINI', $options);

and

in Config > System > Browscap > Refresh browscap data

Returns something like “Current browscap data version: 6005”
The error statement disappeared.