Views Ajax fonction + Boost = error in IE

superfedya - October 28, 2009 - 14:28
Project:Boost
Version:6.x-1.16
Component:Views
Category:bug report
Priority:normal
Assigned:superfedya
Status:fixed
Description

This problem only for Internet Explorer and not for Firefox/Chrom.
When I try to use ajax fonction I see error. I attach a image, please, look at this.

Thanks!

AttachmentSize
ajax_boots_views.jpg383.6 KB

#1

superfedya - October 28, 2009 - 14:43

Error appears only when this option an ON:
"Cache html documents/pages"

#2

mikeytown2 - October 28, 2009 - 21:26

For some reason, Boost is thinking it's html, when in fact its javascript. If you could apply this patch to Boost have it output watchdog error messages, that would be helpful. Let me know what the message is when you visit that link.

AttachmentSize
boost-debug.patch 1.09 KB

#3

superfedya - October 28, 2009 - 22:07

Sorry, but I dunno how to use .patch files on shared host X_X

#4

mikeytown2 - October 29, 2009 - 01:37
Status:active» postponed (maintainer needs more info)

Edit the module file, it's not that hard...

I'll be adding in debug functionality in the next release btw so if you can wait around for a little bit then this problem should be easier to solve. #617394: Verbose setting of 7 & 9 for debugging

#5

superfedya - October 29, 2009 - 02:24

Ok, I will wait. Thanks!

#6

superfedya - October 29, 2009 - 03:17

Ok, I will wait. Thanks!

#7

mikeytown2 - November 3, 2009 - 00:56

Download http://drupal.org/node/621560
Enable verbose 9
Let me know whats up

#8

superfedya - November 3, 2009 - 04:50

Ok, I enable verbose 9, Views Ajax not working for IE...

#9

mikeytown2 - November 3, 2009 - 06:21

when you hit views ajax, what does watchdog output for that url?

#10

superfedya - November 5, 2009 - 02:56

But where I can see this Watchdog?

#11

mikeytown2 - November 5, 2009 - 03:09

admin/reports/dblog

#12

superfedya - November 9, 2009 - 23:32

Debug: _boost_ob_handler()
HTTP Info: 200 - text/html, text/javascript
Path: cache/normal/www.mysite.com/site/views/ajax_view_name=News1&view_display_id=block_1&view_args=&view_path=node&view_base_path=null&view_dom_id=1&pager_element=0&page=1.html
Content Container: node_page_default
Content Type:
ID:
Cache This: TRUE."

and

Debug: boost_cache_set_node_relationships()
7 of 7 given entries to the boost_cache_relationships table added or updated; 0 entries removed due to them being outdated.

#13

mikeytown2 - November 10, 2009 - 00:12

k so the front page is returning the correct http content type: text/javascript. Which means the file should be saved with the correct extension, .json. Try the latest dev which should be available for download in the next 30 min; I've reworked some of the code surrounding this issue, so hopefully it got fixed in the process. If not this gives me something to work with; the view is a block type, not a page type.

Edit:
Dev is ready, give it a shot

#14

superfedya - November 10, 2009 - 01:33

no result:
Debug: _boost_ob_handler()
HTTP Info: 200 - text/html, text/javascript
Path: cache/normal/www.madfanboy.com/site/views/ajax_view_name=News1&view_display_id=block_1&view_args=&view_path=node&view_base_path=null&view_dom_id=1&pager_element=0&page=1.html
Content Container: node_page_default
Content Type:
ID:
Cache This: TRUE.

and

Debug: boost_cache_set_node_relationships()
7 of 7 given entries to the boost_cache_relationships table added or updated; 0 entries removed due to them being outdated.

#15

superfedya - November 10, 2009 - 02:11

delete this post please.

#16

superfedya - November 10, 2009 - 02:11

delete this post

#17

mikeytown2 - November 10, 2009 - 02:18
Version:6.x-1.13» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» needs review

Try turning off "Asynchronous Operation: output HTML, close connection, then store static file." If that doesn't work, using the latest dev, try this patch. Remember to flush the cache before testing.

AttachmentSize
boost-616938.patch 2.27 KB

#18

mikeytown2 - November 11, 2009 - 08:45
Status:needs review» postponed (maintainer needs more info)

Get 1.15 and set
Boost Tags: Only Set the header
Save
update rules from boost-rules and let me know if this fixes your issue.

#19

superfedya - November 12, 2009 - 22:02

Nope. Not fixed :(
Logs:

Debug: _boost_ob_handler()
HTTP Info: 200 - text/html, text/javascript
Path: cache/normal/www.madfanboy.com/site/views/ajax_view_name=News1&view_display_id=block_1&view_args=&view_path=node&view_base_path=null&view_dom_id=1&pager_element=0&page=1.html
Content Container: node_page_default
Content Type:
ID:
Cache This: TRUE.

Debug: boost_cache_set_node_relationships()
10 of 10 given entries to the boost_cache_relationships table added or updated; 0 entries removed due to them being outdated.

#20

mikeytown2 - November 13, 2009 - 00:29
Status:postponed (maintainer needs more info)» needs review

k its saving the javascript as html... but thats very strange since it's returning text/javascript as the last option; the one I use.

I wonder if I should do a !== FALSE in the if else block. Try this patch, let me know if it works.

AttachmentSize
boost-616938.patch 3 KB

#21

superfedya - November 13, 2009 - 04:59

Nope.

Debug: _boost_ob_handler()
HTTP Info: 200 - text/javascript. Using .
Path: cache/normal/www.madfanboy.com/site/views/ajax_view_name=News1&view_display_id=block_1&view_args=&view_path=node&view_base_path=null&view_dom_id=1&pager_element=0&page=1.html
Content Container: node_page_default
Content Type:
ID:
Cache This: TRUE.

Debug: boost_cache_set_node_relationships()
10 of 10 given entries to the boost_cache_relationships table added or updated; 0 entries removed due to them being outdated.

#22

mikeytown2 - November 13, 2009 - 08:04

Your using a newer version of apache; one that might not serve .json files as text/javascript; due to apache not respecting the T=*** in the rewrite rule. Try this in your htaccess file

OLD:

  <FilesMatch "\.json\.gz$">
    ForceType text/javascript
  </FilesMatch>

NEW:

  <FilesMatch "(\.json\.gz|\.json)$">
    ForceType text/javascript
  </FilesMatch>

#23

mikeytown2 - November 13, 2009 - 23:34
Status:needs review» fixed

committed
Please Let me know if this doesn't fix the problem. You can grab the code in todays dev when it comes out in about an hour from now. Be sure to get the rules from boost-rules and try again.

#24

superfedya - November 14, 2009 - 01:42

nope. not fixed.

http://localhost/site/?q=views/ajax&view_name=News1&view_display_id=bloc...

Debug: _boost_ob_handler()
HTTP Info: 200 - text/html, text/javascript
Path: cache/normal/www.madfanboy.com/site/views/ajax_view_name=News1&view_display_id=block_1&view_args=&view_path=node&view_base_path=null&view_dom_id=1&pager_element=0&page=1.html
Content Container: node_page_default
Content Type:
ID:
Cache This: TRUE.

#25

mikeytown2 - November 14, 2009 - 01:45
Status:fixed» active

Can you put up a link so I can test the page in question? I need to see what the server is sending.

#26

mikeytown2 - November 14, 2009 - 21:21
Status:active» postponed (maintainer needs more info)

#27

superfedya - November 14, 2009 - 23:34

mikeytown2
Sorry but my site still active, now I add the views in the exception list. If I disable that, no one can navigate :(

But, I do all the test in my localhost (Wamp server for Win).

#28

mikeytown2 - November 14, 2009 - 23:33

I need a way to reproduce the error somehow since I can't do it locally.

#29

superfedya - November 14, 2009 - 23:36

Ok. try now: www.madfanboy.com/site
Error only with Internet Explorer

#30

superfedya - November 14, 2009 - 23:38

Hmmm... now all works...
I use last version of boost (not dev), without any patch (exept for my other error)...

#31

mikeytown2 - November 14, 2009 - 23:38

I'm trying the views pager at the bottom and it appears to be working. Turn on ajax in the view

#32

superfedya - November 14, 2009 - 23:45

yeah, ajax turned on, all works!

#33

mikeytown2 - November 14, 2009 - 23:46
Status:postponed (maintainer needs more info)» fixed

Going to mark this as fixed then.

#34

chadd - November 19, 2009 - 12:05
Version:6.x-1.x-dev» 6.x-1.16
Status:fixed» active

after upgrading to the latest, i get this error in IE when clicking a quicktab containing a view.
quicktabs containing nodes and feeds are fine, it's just the view tab that generates this error.
"an error occurs at /views/ajax."

#35

chadd - November 19, 2009 - 12:17

update: turning off "Asynchronous Operation" fixes the error.
(feel free to mark this fixed)
but don't i want "Asynchronous Operation" turned on?

#36

mikeytown2 - November 19, 2009 - 19:33

Chadd try this patch.
#636704: Removed $ by mistake in boosted1/2.txt & boost-rules page
Also use the latest dev of quicktabs as that fixes the error your having most likely.

#37

mikeytown2 - November 20, 2009 - 00:38
Priority:critical» normal

#38

mikeytown2 - November 20, 2009 - 06:16
Status:active» fixed

marking this as fixed, reopen if this didn't answer your question.

 
 

Drupal is a registered trademark of Dries Buytaert.