Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
nilor CreditAttribution: nilor commentedGo to admin/config/system/browscap and click the "Refresh browscap data" button.
Comment #2
Joe Vangsness CreditAttribution: Joe Vangsness commentedI 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.
Comment #3
asteward CreditAttribution: asteward commentedTried clearing my cache and got the same error as Joe
Comment #4
FotAd CreditAttribution: FotAd commentedsame 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)
Comment #5
design dog CreditAttribution: design dog commentedInstall 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
Comment #6
design dog CreditAttribution: design dog commentedDare 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.
Comment #7
design dog CreditAttribution: design dog commented?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\?
Comment #8
crystaldawn CreditAttribution: crystaldawn commentedThis 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.
Comment #9
manObject CreditAttribution: manObject commentedWith 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!
Comment #10
dshesq CreditAttribution: dshesq as a volunteer commentedOpenfolio 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.