PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
BriX
Hangin' Around


Joined: Dec 04, 2005
Posts: 31

PostPosted: Sun Mar 04, 2007 6:04 pm Reply with quote Back to top

I have been testing NSN Project for about a week. When I try to delete a task I get the following error:
Code:
Parse error: parse error, unexpected '\"' in /path to web dir/modules/Projects/admin/PJTaskDelete.php on line 17


I cannot find \" anywhere in PJTaskDelete.php

Any suggestions or advice welcome.
TIA
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Mar 04, 2007 9:05 pm Reply with quote Back to top

Well what's on and around line 17?
View user's profile Send private message Visit poster's website
BriX
Hangin' Around


Joined: Dec 04, 2005
Posts: 31

PostPosted: Sun Mar 04, 2007 9:24 pm Reply with quote Back to top

This is the entire file minus php tags.

Code:
if(!defined('NSNPJ_ADMIN')) { die("Illegal Access Detected!!!"); }
$task_id = intval($task_id);
$task = pjtask_info($task_id);
$db->sql_query("DELETE FROM `".$prefix."_nsnpj_tasks` WHERE `task_id`='$task_id'");
$db->sql_query("OPTIMIZE TABLE `".$prefix."_nsnpj_tasks`");
$db->sql_query("DELETE FROM `".$prefix."_nsnpj_tasks_members` WHERE `task_id`='$task_id'");
$db->sql_query("OPTIMIZE TABLE `".$prefix."_nsnpj_tasks_members`");
header("Location: modules.php?name=$modname&op=PJProject&project_id=".$task['project_id']");
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Mar 05, 2007 6:15 am Reply with quote Back to top

Change that last line to this:

header("Location: modules.php?name=$modname&op=PJProject&project_id=".$task['project_id']);

Note the last " is removed.
View user's profile Send private message Visit poster's website
BriX
Hangin' Around


Joined: Dec 04, 2005
Posts: 31

PostPosted: Mon Mar 05, 2007 11:24 am Reply with quote Back to top

That fixed it. Thanks!
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Mar 05, 2007 5:40 pm Reply with quote Back to top

RavensScripts
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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