Shape 5

Joomla Club Extensions => Frontpage Display Version 1 - Club => : jimn3 May 31, 2008, 03:45:38 PM



: Frontpage Display Bug! In IE7 and Opera.
: jimn3 May 31, 2008, 03:45:38 PM
Hi, I have found a bug in Frontpage Display with IE7. In IE7 sometimes when you load a page with the Frontpage Display on it, IE displays an error that says "Internet Explorer Cannot Open the Internet Site [Site URL]- Operation Aborted”.
I was looking on the internet and there is an bug in IE7 and Opera. I found on this site that it is caused by putting javascript in the body.
http://www.nirmaltv.com/2007/08/08/how-to-fix-internet-explorer-cannot-open-the-internet-site-operation-aborted-error/ (http://www.nirmaltv.com/2007/08/08/how-to-fix-internet-explorer-cannot-open-the-internet-site-operation-aborted-error/)
They said
If there are any Javascripts running inside the body tag or inside a table which is directly a child of body, then most of the times this error is bound to happen.
I was looking in the code and I found a solution.
You need to change line 378 in mod_s5_frontpage_display.php from
:
<script type="text/javascript" >
to
:
<script defer type="text/javascript" >

I changed that and it worked. So I want to let the Shape5 team and users about this bug.
Thanks


: Re: Frontpage Display Bug! In IE7 and Opera.
: stevewest July 25, 2008, 04:42:45 PM
Hi,

Thank you for the information! It really helped me with this stupid bug. Also, the correct syntex is the following:

<script defer="defer" type="text/javascript">

thx,

SW


: Re: Frontpage Display Bug! In IE7 and Opera.
: infostyle July 28, 2008, 03:18:04 AM
I have the same problem with the Frontpage Display Module and Internet Explorer 7.0, unfortunately your fix did not work for me and my Template Plazza Magazine template, and I am forced to abandon the script for now.


: Re: Frontpage Display Bug! In IE7 and Opera.
: thornr18 August 03, 2008, 02:16:19 PM
I have the same problem on a site I'm developing using Magnumopus.

In my case it only happens when I log in the frontend and try to move to a page displaying the Frontpage module.

I've tried the fix above - doesn't work I'm afraid.

Is it possible to take the script out of the module so it doesn't get added to the body?


: Re: Frontpage Display Bug! In IE7 and Opera.
: need300z August 10, 2008, 04:12:31 PM
I'm having the same problem... works just fine in firefox but no go in IE 7

http://gotsoleboutique.com/estore/



: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek August 10, 2008, 04:55:21 PM
Hi, I checked your site in IE7 and didn't receive any errors. What error message are you receiving?


: Re: Frontpage Display Bug! In IE7 and Opera.
: need300z August 10, 2008, 10:53:06 PM
ok thats weird as hell. hmm maybe its because I cleared out my cache but all works now..

thanks for the reply though


: Re: Frontpage Display Bug! In IE7 and Opera.
: fh45 August 21, 2008, 12:59:21 AM
Hello,

Just installed the Front_display today and everthing is working very well, except from this stupid IE7 error. I have tried both
:
Code:
<script type="text/javascript" >to

Code:
<script defer type="text/javascript" >
and this
:
<script defer="defer" type="text/javascript">
as suggested by jimn3 and stevewest but it is still not working I am getting the same error message; "Internet Explorer Cannot Open the Internet Site [Site URL]- Operation Aborted.

Our development site is www.jclickcity.com (http://www.jclickcity.com)

If any one have some suggestions to help us out it would be great.

Thanks,
Finn


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek August 24, 2008, 10:52:37 AM
Finn,

This error can also be caused by incorrect server settings. However when I view your site I get the following error:

Fatal error: Call to a member function getDefault() on a non-object in /home/jclick/public_html/includes/router.php on line 116


: Re: Frontpage Display Bug! In IE7 and Opera.
: fh45 August 25, 2008, 01:59:08 AM
Hi Mikek,

Sorry for not replying before now. But I diden't get any email alert about your post.

It is correct that we have an error on our development site after we upgraded from 1.5.3 to 1.5.6, but this error do not have anything to do with the error I reported 21.08.08 regarding S5 Front Display in IE7 because this was before we upgraded, so I do hope you will be able to help us getting S5 Front Display to work in IE7 as well.

We are working hard on getting the Joomla upgrade error fixed but it is very difficult to get anything out of joomla.org, we are not the only one with this error in fact there is quite many who are "crying" for help.

In the meantime I hope you will be able to come back to us and I will let you know when we are clear of our upgrade problems.

Thanks and best regards,
Finn


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek August 25, 2008, 07:02:23 AM
Hello, let me know when the site is back up so I can see the frontpage display error, right now that error is the only thing that loads on the page.


: Re: Frontpage Display Bug! In IE7 and Opera.
: fh45 August 27, 2008, 07:55:41 PM
Hi Mikek,

The site is up now and we have also loaded images in S5 Front Display.

Still the same error in IE7. ;)

Best regards,
Finn


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek August 27, 2008, 08:54:11 PM
Finn,

Can you please private message me super admin login access and ftp access?


: Re: Frontpage Display Bug! In IE7 and Opera.
: tradewise August 31, 2008, 09:17:27 PM
Hi, I checked your site in IE7 and didn't receive any errors. What error message are you receiving?

I'm getting this same error, be aware thought that the bug does not present UNTIL you login, any page you access after login that has  S5 Frontpage Display on it generates the error.

For me my site www.frasercoastonline.com.au uses S5 Frontpage Display with ForeverAce template. We've built the whole look of the site around  S5 Frontpage Display now it looks like we've got to do a total rethink on layout and use something else, unless an urgent  fix for this is forthcoming.


: Re: Frontpage Display Bug! In IE7 and Opera.
: tradewise August 31, 2008, 09:28:38 PM
Update now have it working:

I tried this <script defer type="text/javascript" > change to Line 375 mod_s5_frontpage_display.php didn't work for me,

But then I saw the post after that with <script defer="defer" type="text/javascript"> and this seemed to work

Regards Steve!!!


: Re: Frontpage Display Bug! In IE7 and Opera.
: tradewise August 31, 2008, 09:43:18 PM
Hmmmm I typed too soon!.

There seems to be two issues at play here, whilst I got the S5 FrontPage Display working, I then also restored Mod_Login to the Toolbar position and problem is back again.

Seems that  with the above <script defer="defer" type="text/javascript"> fix you can get S5 FrontPage Display working, BUT you can't  have Mod_Login in the Toolbar as well.  I moved Login back to Left (very ugly!) and everything works again.

To solve these issues we just need to educate the masses that IE is crap - use FireFox! - Problems Solved but alas it's not that easy!  So in the interim we'll need a fix for this.



: Re: Frontpage Display Bug! In IE7 and Opera.
: tradewise August 31, 2008, 09:52:04 PM
I typed too soon again.... problem is back after clicking a few menus first few OK the dead after that.  Looks like a redesign and not use these 2 modules - such a shame bottom line is we need to make things accessible to everybody even if they do insist on using MicroCrap!.


: Re: Frontpage Display Bug! In IE7 and Opera.
: tradewise September 01, 2008, 01:26:26 AM
Work Around Found.
I spent about 4 hours on this today to find a work around. The problem is not just the S5 FrontPage Display as first thought, it seems to be when the S5 FrontPage Display is on a Content Page and that content page is being accessed by a logged in user. For example having the S5 FrontPage Display on the home page will render the error almost every time.

However the S5 FrontPage Display is unaffected if
A. The User is NOT Logged In
B. The Module is not displayed on a Content Type Page - Example the Front Page.

My work around for this is as follows:
1. Move the Home Menu Item to another Menu Module that is not displayed in any module position so its hidden.
2.  Create a Second fake Home Page that points to a Non Content Page Example Contacts or Weblinks
1. Change the Login Module to to Redirect to the Fake Home on Login and to Real Home on Logout
4. Assign all the modules that normally show on the Real Home to display on the Fake one.
5. Ensure that the S5 FrontPage Display is not displayed on any content type page when a user is logged in.
6. TEST TEST TEST in both login and logged out states.

Hope this helps someone - Regards Steve!!!


: Re: Frontpage Display Bug! In IE7 and Opera.
: lisarosemann September 01, 2008, 07:59:55 AM
I too am having the same exact problem. Disabling it for logged in users will not work for me, so a fix would be nice.


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek September 02, 2008, 08:01:22 AM
To anyone else experiencing this problem another work around would be to search for the following mod_s5_frontpage_display.php in the modules folder:

<?php if ($s5_fd_show_first == "1") { ?>
s5_fd_box1();
<?php } ?>

<?php if ($s5_fd_show_first == "2") { ?>
s5_fd_box2();
<?php } ?>

<?php if ($s5_fd_show_first == "3") { ?>
s5_fd_box3();
<?php } ?>

<?php if ($s5_fd_show_first == "4") { ?>
s5_fd_box4();
<?php } ?>

<?php if ($s5_fd_show_first == "5") { ?>
s5_fd_box5();
<?php } ?>

<?php if ($s5_fd_show_first == "6") { ?>
s5_fd_box6();
<?php } ?>


and replace it with:


function s5_load_boxes() {

<?php if ($s5_fd_show_first == "1") { ?>
s5_fd_box1();
<?php } ?>

<?php if ($s5_fd_show_first == "2") { ?>
s5_fd_box2();
<?php } ?>

<?php if ($s5_fd_show_first == "3") { ?>
s5_fd_box3();
<?php } ?>

<?php if ($s5_fd_show_first == "4") { ?>
s5_fd_box4();
<?php } ?>

<?php if ($s5_fd_show_first == "5") { ?>
s5_fd_box5();
<?php } ?>

<?php if ($s5_fd_show_first == "6") { ?>
s5_fd_box6();
<?php } ?>

}

window.onload = s5_load_boxes;


: Re: Frontpage Display Bug! In IE7 and Opera.
: lisarosemann September 02, 2008, 04:29:58 PM
Worked like a charm. Thanks for the speedy resolution!


: Re: Frontpage Display Bug! In IE7 and Opera.
: gimmi80 October 04, 2008, 03:17:51 PM
I want to try this modification but I can not locate the file. Where is it?


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek October 05, 2008, 06:45:59 AM
Hi, it's in your modules folder, look for mod_s5_frontpage_display.php


: Re: Frontpage Display Bug! In IE7 and Opera.
: itbythesea October 12, 2008, 01:05:53 PM
The problem is not only with Front Page display. If you edit the specific php you solve the current problem, but might find the same happening with another module or component.

Now, if you do the following, your fix should work with all modules:
Go To:
/libraries/joomla/html/html/behavior.php
Search for:
      $tooltipInit = '      window.addEvent(\'domready\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Replace domready with load:
      $tooltipInit = '      window.addEvent(\'load\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Save.
I just did it and it solved all my problems. It seems IE7 does not like domready.



: Re: Frontpage Display Bug! In IE7 and Opera.
: Adrian November 05, 2008, 11:54:56 PM
Happening to me too. I replace domready with load and it working so far. I like this way, i do it by my self.


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek November 06, 2008, 08:00:13 AM
Did you try the fix I posted above?


: Re: Frontpage Display Bug! In IE7 and Opera.
: Adrian November 06, 2008, 08:27:18 AM
Yes, i said i "...Replace domready with load:..." and it is working, login with no problem.


: Re: Frontpage Display Bug! In IE7 and Opera.
: davejohns November 08, 2008, 08:17:50 PM

Im unable to locate mod_s5_frontpage_display.php anywhere,

Can you point out exactly where it is in the file structure please?


: Re: Frontpage Display Bug! In IE7 and Opera.
: Adrian November 08, 2008, 08:29:52 PM
Read what itbythesea said in reply 24

".....
Go To:
/libraries/joomla/html/html/behavior.php
Search for:
      $tooltipInit = '      window.addEvent(\'domready\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Replace domready with load:
      $tooltipInit = '      window.addEvent(\'load\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Save........"

Good Luck.


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek November 08, 2008, 11:03:23 PM

Im unable to locate mod_s5_frontpage_display.php anywhere,

Can you point out exactly where it is in the file structure please?

Hello, this is in your modules folder


: Re: Frontpage Display Bug! In IE7 and Opera.
: Adrian November 08, 2008, 11:11:57 PM
In your root hosting for your domain -- Like

/ libraries / joomla/html/html/behavior.php

No modules, is in the Root. "/"

Good Luck


: Re: Frontpage Display Bug! In IE7 and Opera.
: lolo229 January 20, 2009, 10:56:17 PM
Hi, the probleme back with joomla 1.5.9
I've make all modification in this topic and the probleme is the same!!!!
Somebody have an idea???

Thank's Laurent


: Re: Frontpage Display Bug! In IE7 and Opera.
: mikek January 21, 2009, 07:41:53 AM
Hello, please use the following tutorial:

http://www.shape5.com/component/option,com_smf/Itemid,75/topic,2652.0/


: Re: Frontpage Display Bug! In IE7 and Opera.
: jeroenveen January 21, 2009, 12:31:16 PM
The problem is not only with Front Page display. If you edit the specific php you solve the current problem, but might find the same happening with another module or component.

Now, if you do the following, your fix should work with all modules:
Go To:
/libraries/joomla/html/html/behavior.php
Search for:
      $tooltipInit = '      window.addEvent(\'domready\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Replace domready with load:
      $tooltipInit = '      window.addEvent(\'load\', function(){ var JTooltips = new Tips($$(\''.$selector.'\'), '.$options.'); });';
Save.
I just did it and it solved all my problems. It seems IE7 does not like domready.



Fixed it all. Thanks!