Json line after updating block

Permalink
Hi,

I made a new block/package. But if I click "Update" after filling in my block, concrete5 gives me an JSON line: {"aID":"87","arHandle":"Main","cID":"82","error":false,"bID":"157"}

If I refresh the URL (F5) the page is loaded normally.

The strange thing about this is that I only have this problem in IE8. IE7 (compatibility mode), FF or Chrome doesn't give this problem.

Can anybody help me with this problem?
The bases of my new block is the form block.

DeWebmakers
 
andrew replied on at Permalink Reply
andrew
Hmm - are you SURE that the IE8 cache is cleared? If the new javascript for concrete5.4 weren't loaded you'd definitely get that error.

Are there other javascript errors on the page when you're updating the block? Does this happen to other blocks/all blocks or just to a custom one?
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi Andrew,

It just happens with the custom block, all other blocks seem to work fine. And I don't see any javascript errors!

Even in IE8 the block is updated, so it works! Just the redirection or refreshing of the page doesn't seem to work.

I also tested it with the developers mode in Chrome and it doesn't give any kind of error.

Cache could be a problem, I'll test it again.

Thank you so far...
McBerning replied on at Permalink Reply
Same problem (5.4.0.5):

Page reload after inserting or editing a block of simpleNews addon does not work in IE8. Content block for me works fine??? No problem occurs in Firefox.

Only JSON String is shown (no html code, javascript error and so on). Really hard to debug... BUT A BIG PROBLEM FOR ME!!! Maybe i temporary go back to Version 5.3.3.2. Seems to be more stable.

Don't think that it is a caching problem. Tried to clear every cache. Problem still exists.

Please try to fix!
THX Marc
RadiantWeb replied on at Permalink Reply
RadiantWeb
I have been racking my brian as I am having this issue on all the simple addons as well. only on ie8

do your blocks use either an instance or a copy of the WYSIWYG content editor?

Chad
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi Chad,

No, sorry..... I didn't figure it out yet...

TinyMCE isn't causing the problem. I tried this already...

I think it's coming from the javascript, but I'm not sure. The fact that you don't get an error is frustrating... No error, no problem...right!?

Maybe we can ban IE (all versions), the world would be better of.... :-)
McBerning replied on at Permalink Reply
My work around: Force IE8 to behave like IE7...

Add the following meta tag to your page type files (default.php, etc.)

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Please try to fix this problem!!!

Best regards.
Marc
RadiantWeb replied on at Permalink Reply
RadiantWeb
I think I have this resolved for my forms. I believe it was that my select options in my form did not have a value. I had <option>value</option>, and the ajax request was requiring a value. <option value=value>value</option>

Chad
DeWebmakers replied on at Permalink Reply
DeWebmakers
Thanks Chad,

But I haven't got any selectionboxes. But maybe it could help me. Seems that ajax doesn't like empty values.

So I'll change the code so no empty values are being transferred. See if it works...

I'll keep you guys posted...
opusdev replied on at Permalink Reply
opusdev
-- BUMP --
I'm seeing this on FF12.0 when debugging a site built with Concrete 5.5.2.1.

Any help would be greatly appreciated.

thanks
~o~
cgrauer replied on at Permalink Reply
cgrauer
I know this thread is very old, but just in case someone still encounters this problem (as I did...), perhaps this may be a hint:

The json-line is returned by the process storing a new or updated block. As blocks are stored with an ajax call it just prints a json object as return for the ajax call (find it in /concrete/startup/process.php line 804 for version 5.6.3.2).
Now if the json object is displayed in the browser window rather than processed by a javascript call, this implies that the block's add/update form was submitted without using ajax. And this implies that javascript crashed somewhere before.

At least in my case this was the problem. There was an error in the auto.js file of my blocktype, and since auto.js is loaded dynamically no message was displayed in the console.