You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Index.php Line 25: Char 1: Object Expected [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Salz
Guest






PostPosted: Thu Jul 07, 2005 12:48 pm Reply with quoteBack to top

PHPNUKE 7.5 patched (chatserv) and using latest bbtonuke.

Site runs fine, however bottom left of IE the Yellow Error message appears when index.php finishes loading. Here's the joy:

Line: 25
Char: 1
Error: Object Expected
Code: 0
URL: http://mydomain.com/index.php

Now looking at my index.php, line 25 is:
$name = $row['main_module'];

Curious if there's a bug or just something I missed. Noticed my theme (TI2K) uses hover over buttons for index.php but those don't work. Related or shooting in the dark? Like I said, site runs fine, but I wanted to see why this was showing up down there.

Thx in advance.
Find all posts by Anonymous
Salz
Guest






PostPosted: Thu Jul 07, 2005 12:52 pm Reply with quoteBack to top

UPDATE:

Just testing something out. I went into IE's security tab, disabled scripting, and went back to my site, and the error is gone. Re-enable the scripting causes the yellow error message as posted above to reappear again.

I think I'm onto something, but at this point I'm looking for some help to solve this. I would assume it's something to do with the javascript but why would it refer to line 25?

Suggestions please. thx again in advance.
Find all posts by Anonymous
Salz
Guest






PostPosted: Thu Jul 07, 2005 12:59 pm Reply with quoteBack to top

UPDATE AGAIN:

Solved it. For those who run into this, for the theme i was using, i didn't include the code for the javascript in the includes/my_header.php.

In example:

Code:
<SCRIPT TYPE="text/javascript">
<!--

function newImage(arg) {
    if (document.images) {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}

function changeImages() {
    if (document.images && (preloadFlag == true)) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}

var preloadFlag = false;
function preloadImages() {
    if (document.images) {
        header_03_over = newImage("themes/Ti2k/images/header_03-over.gif");
        header_04_over = newImage("themes/Ti2k/images/header_04-over.gif");
        header_05_over = newImage("themes/Ti2k/images/header_05-over.gif");
        header_06_over = newImage("themes/Ti2k/images/header_06-over.gif");
        header_07_over = newImage("themes/Ti2k/images/header_07-over.gif");
        preloadFlag = true;
    }
}

// -->
</SCRIPT>


If you have this problem, do not just write over your current my_header.php as mods like Sentinel have the ipban.php in there. Good luck.
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.180 Seconds - 311 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::