Hi ,
I am trying to add a job and my tool is working all fine but not inserting a job into job table and log file is not giving any error ,i am unable to understand where is the problem,please help.
this is log file giving when i try to add a job(using 123 as IP address this is the code for log file
select: 'select section_id from wjtp_sectionaction where actionname='AddJob''
2008-01-14 (DEBUG) 123[BaseAction.class.php] - Creating instance of action AddJob...
2008-01-14 (DEBUG) 123[BaseAction.class.php] - ...instance of AddJob created
2008-01-14 (DEBUG) 123[Mysql.class.php] - Executing SQL select: 'select value from wjtp_ustate where person_id=3 and dataset_id is null and display='' and action='' and name='lastdisplay' limit 1'
2008-01-14 (DEBUG) 123[Mysql.class.php] - Executing SQL: 'delete from wjtp_ustate where person_id=3 and dataset_id is null and display='AddJob' and action='' and name='prevparms''
2008-01-14 (DEBUG) 123[Mysql.class.php] - Executing SQL: 'insert into wjtp_ustate (createdon,person_id,dataset_id,display,action,name,data)values(now(),3,null,'AddJob','','prevparms','a:18:{s:6:\"action\";s:12:\"AddJobAction\";s:7:\"display\";s:10:\"BrowseJobs\";s:9:\"returnurl\";s:28:\"index.php%3Fdisplay%3DAddJob\";s:8:\"d_emails\";s:1:\"3\";s:8:\"a_emails\";s:3:\"4,5\";s:4:\"area\";s:8:\"PSLGroup\";s:10:\"jobtype_id\";s:1:\"7\";s:6:\"needby\";s:10:\"01/21/2008\";s:13:\"department_id\";s:1:\"9\";s:11:\"assignee_id\";s:1:\"5\";s:11:\"priority_id\";s:1:\"2\";s:5:\"title\";s:19:\"List Request of HAB\";s:11:\"description\";s:16:\"HAB List Request\";s:22:\"attachment_description\";s:0:\"\";s:16:\"attachment_count\";s:1:\"0\";s:9:\"d_d_count\";s:1:\"1\";s:9:\"a_d_count\";s:1:\"2\";s:10:\"ccassignee\";s:1:\"Y\";}')'
2008-01-14 (DEBUG) 123[BaseAction.class.php] - Performing action AddJob...
2008-01-14 (DEBUG) 123[Mysql.class.php] - Executing SQL select: 'select nickname,lastname,email from wjtp_person where id=3 limit 1'
2008-01-14 (DEBUG) 123[User.class.php] - Checking to see if 'admin' is a contact...
2008-01-14 (DEBUG) 123[Mysql.class.php] - Executing SQL select: 'select * from wjtp_contact where id=3 limit 1'
2008-01-14 (DEBUG) 123[User.class.php] - ...user is NOT a contact.
2008-01-14 (DEBUG) 123[User.class.php] - Checking for administrator rights for 'admin'...
2008-01-14 (DEBUG) 123[Mysql.class.php] - Executing SQL select: 'select * from wjtp_personsection left join wjtp_section on (id = section_id) where person_id=3 and admin='Y''
2008-01-14 (DEBUG) 123[User.class.php] - ...administrator rights GRANTED! Remember: With great power comes great responsibility.
2008-01-14 (DEBUG)123[Mysql.class.php] - Executing SQL select: 'select * from wjtp_person where id=5 limit 1'
2008-01-14 (DEBUG)123[Mysql.class.php] - Executing SQL: 'insert into wjtp_job set createdon=now(), createdby=3, updatedby=3, updatedon=now(), status_id=2, title='List Request of HAB', description='HAB List Request', needby='2008-01-21', last_ip=123, last_port='', area='PSLGroup', department_id=9, cat_id=null, priority_id=2, assignedto=5, assignedon=now(), jobtype_id = 7'
after this it don't perform any action ,but rest of the application working fine,and the php coding is given below ,i am not using the organization,i have turned off the set organization in ini.file please see the 1st reply for PHP coding
Thanks
Siya