PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
guidyy
Worker
Worker


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

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

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 to the forums!


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
Worker
Worker


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

PostPosted: Wed Jan 05, 2005 8:18 am Reply with quote Back to top

Nevermind...
It was the santy worm protection ...
Fixed.
Guido
View user's profile Send private message Visit poster's website MSN Messenger
organizedhome
New Member
New Member


Joined: Nov 16, 2005
Posts: 4

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

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 to the forums!



Thanks!
View user's profile Send private message
guidyy
Worker
Worker


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

PostPosted: Mon Jul 31, 2006 8:59 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website MSN Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6299
Location: Vsetin, Czech Republic

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

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 Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum