» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 65
0 members and 65 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Error in theme within the Theme packs forums, part of the nukemods releases category; I just installed php nuke in mysite and was configuring it, all done and working good with default Deepblue template. ...



Go Back   Nukemods Forum » nukemods releases » Theme packs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2005, 09:38 AM
Junior Member
 
Join Date: Feb 2005
Posts: 13
Error in theme
I just installed php nuke in mysite and was configuring it, all done and working good with default Deepblue template.


the error is shown like this

Fatal error: Call to a member function on a non-object in /home/onlineqatar.com/www/html/themes/subBlack3dBlue/theme.php on line 55

i tried other themes, but failed with same message. Help me please ti fix it

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-10-2005, 05:42 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
Please do not PM me but because i am in a good mood I'll try to help you out!
Just gimme some time to figure out what line 55 is I'll get back to you!
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-10-2005, 05:47 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
I checked it out, nothing seems to be wrong :s Could you try to redownload the themepackage from this site, then upload the theme.php you find in the newly downloaded package??
IF that doesn't work, could you please try any other themepack (eg subblack3d or fisubsilver?) and let me know if the error still exists?

Mighty_Y
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-11-2005, 01:59 AM
Junior Member
 
Join Date: Feb 2005
Posts: 13
Error
yes i tried the subBlack3d newly downloaded from this site., still

Fatal error: Call to a member function on a non-object in /home/onlineqatar.com/www/html/themes/subBlack3d/theme.php on line 56

is there any other configuration to be done ?? like chmod to any files ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-11-2005, 05:42 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
open theme.php and find
Code:
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
replace with
Code:
    $sql = "SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'";
		if( !$query = $db->sql_query($sql) )
		{
			die('Could not obtain banner information', '', __LINE__, __FILE__, $sql);
		}    
   $numrows = $db->sql_numrows($query);
And then report back
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-11-2005, 06:45 AM
Junior Member
 
Join Date: Feb 2005
Posts: 13
hi,

I replaced the one mentioned now another message shown like this

Parse error: parse error, unexpected ',' in /home/onlineqatar.com/www/html/themes/subBlack3d/theme.php on line 59
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-11-2005, 06:47 AM
Junior Member
 
Join Date: Feb 2005
Posts: 13
Quote:
/************************************************** **********/

$bgcolor1 = "4A4A4A";
$bgcolor2 = "383838";
$bgcolor3 = "383838";
$bgcolor4 = "4A4A4A";
$textcolor1 = "#FFCC00";
$textcolor2 = "#FFCC00";

include("themes/subBlack3d/tables.php");

/************************************************** **********/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************** **********/

function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
if ($banners == 1) {
$sql = "SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'";
if( !$query = $db->sql_query($sql) )
{
die('Could not obtain banner information', '', __LINE__, __FILE__, $sql);
}
$numrows = $db->sql_numrows($query); /* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];

if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];

/* Check if this impression is the last one and print the banner */

if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-11-2005, 07:05 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
oops, replace this:
Code:
 die('Could not obtain banner information', '', __LINE__, __FILE__, $sql);
with
Code:
 die('Could not obtain banner information on line '. __LINE__ .' in file '. __FILE__ .' at '.$sql);
then report back
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-11-2005, 07:18 AM
Junior Member
 
Join Date: Feb 2005
Posts: 13
Quote:
Fatal error: Call to a member function on a non-object in /home/onlineqatar.com/www/html/themes/subBlack3d/theme.php on line 57
shall i send u the theme.php ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-11-2005, 07:59 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
yes please, I can't find any problem in that line
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error SQL Error : 1064 theme iCGstation XelAleX Nuke 7.x - Themes 0 03-21-2005 05:17 PM
PACK THEME ERROR mohdasim87 Theme packs 1 02-02-2005 10:49 AM
Help!! Changed theme, now I just get an error mhrutherford Theme packs 2 07-16-2004 01:17 PM
theme error w/ $user? iphoenix Site design 1 06-05-2003 08:53 PM
Theme Error BULLWiNkLE Purged Topics 17 03-09-2003 05:14 PM


All times are GMT -5. The time now is 05:47 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31