Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports
Author Message
guidyy
Worker
Worker


Joined: Nov 22, 2004
Posts: 208
Location: Italy

PostPosted: Wed Jan 05, 2005 5:05 am Reply with quote

Hi,
i'm running sentinel 2.1.3 at my website, and i have a problem with the recipes module

when i try to rate a recipe, or post a comment i get this errors

Rate Recipe:
Warning: implode(): Bad arguments. in
/modules/Recipes/general_functions.php.inc on line 22

these are lines from 18 to 28
Code:


function getCategoryName($cat_id){
   GLOBAL $db;
   if ((!(isset($cat_id))) || $cat_id<0){
      return ""._NOTKNOWN;
   } else {
      $sql ="select category from ".$_SESSION["recipeprefix"]."_categories where id=$cat_id";
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);
      return $row[category];
   }
}

function getCategory($recipeid) {
   GLOBAL $db;
   $sql="select cat_id from ".$_SESSION["recipeprefix"]."_recipes_categories_rl where id=$recipeid";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
      $category[] = getCategoryName($row[cat_id]);
   }
   return implode(", ",$category);


Post Comment:
Something is not right. This message is just to keep things from messing up down the road

which doent explain much....

If i comment the call to Sentinel in my mainfile.php everything is just fine.


Any idea how to fix it?
Let me know if u need more info.
Thanks, Guido Only registered users can see links on this board! Get registered or login!

Note: i'm quite sure everything was working with 2.1.1
phpnuke 6.9 chatserv 2.8
 
View user's profile Send private message Visit poster's website MSN Messenger
guidyy
PostPosted: Wed Jan 05, 2005 8:18 am Reply with quote

Nevermind...
It was the santy worm protection ...
Fixed.
Guido
 
organizedhome
New Member
New Member


Joined: Nov 16, 2005
Posts: 4

PostPosted: Mon Jul 31, 2006 7:50 am Reply with quote

Ouch! Guido, could you be more specific? I'm getting the same error at Only registered users can see links on this board! Get registered or login!


Thanks!
 
View user's profile Send private message
guidyy
PostPosted: Mon Jul 31, 2006 8:59 am Reply with quote

Man! this thread is older than dirt.
It was a problem with an old phpnuke (6.9) with an old version of sentinel...
I think i commented out santy worm protection on the /includes/sentinel.php
and implemented it via .htaccess
Sorry but after 20 month I can't be more specific! Smile
Guido
 
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6792
Location: Ha Noi, Viet Nam

PostPosted: Mon Jul 31, 2006 11:07 am Reply with quote

If you are using the latest version and having this problem organizedhome please confirm.
There should be a setting in Sentinels genral configuration page for turning Sany Worm protection on/off.
 
View user's profile Send private message Send e-mail
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.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©