Internet Explorer JS error
Posted: 16 April 2011 03:06 AM   [ Ignore ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-04-08

Hi,

I’ve tried a ton of stuff to fix an IE issue I’m having with safecracker and ChannelFiles.

I’ve spoke to the guys over at DevDemon and they think it’s an issue with safecracker - so here I am… :)

i’ve stripped the template down to the bare bones and hard coded an entry ID in…

<!DOCTYPE html>
     <
html >
     
[removed][removed]
 
<head>
 <
body>

        
{exp:safecracker channel="file-storage" entry_id="104" }
         {field
:batch-file}
          
<input type="submit"/>
        
{/exp:safecracker}

 
</body>
 </
html

Debug is set to 1
Cache is cleared
I’m logged in as super admin.
I’ve re-uploaded channel files and safecracker…

The error displayed is….

Webpage error details

User Agent
Mozilla/4.0 (compatibleMSIE 8.0Windows NT 6.0Trident/4.0SLCC1; .NET CLR 2.0.50727Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)
TimestampFri15 Apr 2011 22:02:16 UTC

Message
Syntax error
Line
1
Char
1
Code
0
URI
http://DOMAIN.co.uk/test?ACT=32&ui=core,widget,mouse,position,draggable,resizable,sortable,button,dialog,tabs,datepicker&plugin=tablesorter,scrollable,scrollable.navigator,ee_filebrowser,markitup,thickbox,toolbox.expose,overlay,tmpl&v=1299695045&include_jquery=y

MessageObject doesn't support this property or method
Line: 16
Char: 2
Code: 0
URI: http://DOMAIN.co.uk/themes/third_party/channel_files/channel_files_pbf.js 

If I remove channel files, I still get the syntax error on line 1 - the doctype… which is defo correct :)

Any ideas on how to fix this?

Hopefully it’s something dumb on my part :)

Thanks in advance,

J

Profile
 
 
Posted: 18 April 2011 07:46 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Can I see the contents of your script tag in your <head>?

Profile
 
 
Posted: 18 April 2011 07:49 PM   [ Ignore ]   [ # 2 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-04-08

ah… that’s just a link to the google jQuery cdn…

I’ll PM you a link to the site…

J

Profile
 
 
Posted: 18 April 2011 07:50 PM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

OK, try adding include_jquery=“no” to your sc form. The problem is, jquery’s getting loaded twice.

Profile
 
 
Posted: 19 April 2011 12:03 PM   [ Ignore ]   [ # 4 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-04-08

hi Rob,

Kickass!!!!

replacing that line with $this->EE->functions->fetch_site_index(1) worked a treat - no more IE errors, and the Channel Files upload works too smile

Excellent Stuff smile

Profile