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, 51 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - randomtheme error [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
sanpaku
Nuke Soldier
Nuke Soldier


Joined: Sep 08, 2003
Posts: 21

Location: roundabout

PostPosted: Thu Apr 05, 2007 2:32 pm Reply with quoteBack to top

Hi!

When trying to work out this module, i find that i've an error which reads:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/doingmything/includes/sql_layer.php on line 286
Access Denied

ummm...what have i done incorrectly?

TIA
Find all posts by sanpakuView user's profileSend private messageVisit poster's websiteICQ Number
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Thu Apr 05, 2007 2:45 pm Reply with quoteBack to top

sanpaku wrote:
Hi!

When trying to work out this module, i find that i've an error which reads:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/doingmything/includes/sql_layer.php on line 286
Access Denied

ummm...what have i done incorrectly?

TIA

This is a very "general" type error . Can you turn error reporting on as well? Also, the title of your post,
Quote:
randomtheme error

can you be more descriptive? Is this a module, block , what ? What version of nuke?

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
sanpaku
Nuke Soldier
Nuke Soldier


Joined: Sep 08, 2003
Posts: 21

Location: roundabout

PostPosted: Thu Apr 05, 2007 3:07 pm Reply with quoteBack to top

[quote="hue"]
sanpaku wrote:
Hi!

When trying to work out this module, i find that i've an error which reads:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/doingmything/includes/sql_layer.php on line 286
Access Denied

ummm...what have i done incorrectly?

TIA



This is a very "general" type error . Can you turn error reporting on as well?



Not sure exactly what that is Sad Sorry...still muddling thru learning in/outs of nuke

This is a block: nuke vs is 76; nothing in block details that specifies particular vs capable of working on:

install directions pretty basic - only outta sorts is that of the english lang file but doable.

add'l details if helpful:
# Block - Random Theme
http://www.kissoftware.co.uk

Appears site no longer active/avail nor can i scour any info on author - lippylion.

bunch of tia!
Find all posts by sanpakuView user's profileSend private messageVisit poster's websiteICQ Number
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Thu Apr 05, 2007 3:24 pm Reply with quoteBack to top

[quote="sanpaku"]
hue wrote:
sanpaku wrote:
Hi!

When trying to work out this module, i find that i've an error which reads:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/doingmything/includes/sql_layer.php on line 286
Access Denied

ummm...what have i done incorrectly?

TIA



This is a very "general" type error . Can you turn error reporting on as well?



Not sure exactly what that is Sad Sorry...still muddling thru learning in/outs of nuke

This is a block: nuke vs is 76; nothing in block details that specifies particular vs capable of working on:

install directions pretty basic - only outta sorts is that of the english lang file but doable.

add'l details if helpful:
# Block - Random Theme
http://www.kissoftware.co.uk

Appears site no longer active/avail nor can i scour any info on author - lippylion.

bunch of tia!

Please post line 286 .

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
sanpaku
Nuke Soldier
Nuke Soldier


Joined: Sep 08, 2003
Posts: 21

Location: roundabout

PostPosted: Thu Apr 05, 2007 9:11 pm Reply with quoteBack to top

[quote="hue"]
sanpaku wrote:
hue wrote:
sanpaku wrote:
Hi!

When trying to work out this module, i find that i've an error which reads:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/doingmything/includes/sql_layer.php on line 286
Access Denied

ummm...what have i done incorrectly?

TIA



This is a very "general" type error . Can you turn error reporting on as well?



Not sure exactly what that is Sad Sorry...still muddling thru learning in/outs of nuke

This is a block: nuke vs is 76; nothing in block details that specifies particular vs capable of working on:

install directions pretty basic - only outta sorts is that of the english lang file but doable.

add'l details if helpful:
# Block - Random Theme
http://www.kissoftware.co.uk

Appears site no longer active/avail nor can i scour any info on author - lippylion.

bunch of tia!

Please post line 286 .


Lines 280-290

function sql_fetch_row(&$res, $nr=0)
{
global $dbtype;
switch ($dbtype) {

case "MySQL":
$row = mysql_fetch_row($res);
return $row;
break;;

case "mSQL":
Find all posts by sanpakuView user's profileSend private messageVisit poster's websiteICQ Number
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Fri Apr 06, 2007 4:11 am Reply with quoteBack to top

Here's a little trick that I found at www.karakas-online.de .
Find this code below

Code:
case "MySQL":
$row = mysql_fetch_row($res);
return $row;
break;;

and replace it with something like this

Code:
case "MySQL":
   if ($row = mysql_fetch_row($res)) {
      return $row;
   } else {
      print (mysql_error());
   }
    break;;

Once that's done, overwrite your file and check the error now ! Note, this is not a fix . What this will do is give you more of a descriptive error so that it can be fixed Smile
As always, make backups of your files before doing any edits.

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
sanpaku
Nuke Soldier
Nuke Soldier


Joined: Sep 08, 2003
Posts: 21

Location: roundabout

PostPosted: Thu Apr 12, 2007 2:23 pm Reply with quoteBack to top

Ok - here we go!

Parse error: syntax error, unexpected ')' in /home/www/dreamwur/includes/sql_layer.php on line

And now, wouldnt you know that i've gotten the same error(s) on my recipe module.

Parse error: syntax error, unexpected ')' in /home/www/dreamwur/includes/sql_layer.php on line 339

Is this amiss on my end? Last year, running same version of the recipe module, i had abs no issues. Cant say same of the randomtheme module.

I'm pulling my hair out reading the PHP-How-to...its a great little write up PROVIDED that you've a clue what you're looking at/for Smile (shez, i need to learn more PHP!)

tia!
Find all posts by sanpakuView user's profileSend private messageVisit poster's websiteICQ Number
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Thu Apr 12, 2007 4:19 pm Reply with quoteBack to top

sanpaku wrote:
Ok - here we go!

Parse error: syntax error, unexpected ')' in /home/www/dreamwur/includes/sql_layer.php on line

And now, wouldnt you know that i've gotten the same error(s) on my recipe module.

Parse error: syntax error, unexpected ')' in /home/www/dreamwur/includes/sql_layer.php on line 339

Is this amiss on my end? Last year, running same version of the recipe module, i had abs no issues. Cant say same of the randomtheme module.

I'm pulling my hair out reading the PHP-How-to...its a great little write up PROVIDED that you've a clue what you're looking at/for Smile (shez, i need to learn more PHP!)

tia!

It looks at though you pasted the code in the wrong place (the code I suggested) . Getting back to your random theme block , I am sure if it's random then it has to pull the loaded themes from the database . That said, did you run any sql queries for this block >?

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot 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.573 Seconds - 459 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::