Bug #66452 [Com]: error on pages
| From: | vovan-ve at yandex dot ru | Date: | Fri, 31 Jan 2014 04:17:32 +0000 |
| Subject: | Bug #66452 [Com]: error on pages | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-18256@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66452&edit=1
ID: 66452
Comment by: vovan-ve at yandex dot ru
Reported by: slchouinard at arkbluecross dot com
Summary: error on pages
Status: Open
Type: Bug
Package: Website problem
Operating System: Windows Vista, ie 8
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
In fact, it does not matter, what browser we use. All adequate browser has limit for local storage.
Sometimes this limit is configurable, sometimes not. Anyway, user doesn't want to store tons of
data, which actually never will be used.
Previous Comments:
------------------------------------------------------------------------
[2014-01-30 14:06:02] slchouinard at arkbluecross dot com
changed browser to ie9 and no more problems. it's a compatability issue between the current
php.net pages and ie8.
------------------------------------------------------------------------
[2014-01-30 08:45:13] vovan-ve at yandex dot ru
The error is caused by exceeding per-site limit for local storage. DOMException: QUOTA_EXCEEDED_ERR
The search input in the header uses jQuery.fn.search plugin. Site tries to save JSON (like this: https://gist.github.com/anonymous/8703100) in
localStorage with 'search-${LANGUAGE_NAME}' key. This JSON currently has size about 1Ð.
I checked just now EN and RU languages - both JSON are same. So, I have 2 same huge JSONs
('search-ru' and 'search-en') in local storage of php.net
Faling to save hige JSON cause browser to perform new same AJAX request for that JSON on every next
page loads. It goes without HTTP caching. So, we has +1MB on each page load.
The problem goes from logic. I doesn't need that search field on every page load even. Why it
loads and stores tons of useless data?
------------------------------------------------------------------------
[2014-01-09 19:43:53] slchouinard at arkbluecross dot com
Description:
------------
Webpage error when trying to view the various code documentation pages in IE8.
Expected result:
----------------
no errors on page.
Actual result:
--------------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR
2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C)
Timestamp: Thu, 9 Jan 2014 19:40:27 UTC
Message: Not enough storage is available to complete this operation.
Line: 248
Char: 25
Code: 0
URI: http://us3.php.net/cached.php?t=1388140826&f=/js/search.js
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66452&edit=1