Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-22-2006, 07:40 PM   #1
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
need some help with php

first off, let me say that i know absolutely nothing about php at all. i found this script and uploaded it, and for the most part, everything works, except the calendar function, something i would like to get working. what i am hoping is someone on here will know how i can go about fixing this, as it appears the devs have not answered someone else's plea for help on the same issue.

here is the site: http://www.thirddegreepc.com/sharepo...me=Appointment

username: pcmech
password: pcmech

right now, its only viewer capabilities, but if someone who knows their way around this needs some more permissions, i would be happy to give those out on a pm basis.

here is where i downloaded it from: http://sourceforge.net/project/showf...kage_id=142556

i appreciate any help someone can give me. overall, i like what i see in this app, and it would be perfect if i could get the appointment module working

thanks
craig
__________________
the universe is against this current wave of success i'm having. -johnny drama, entourage
hobey19 is offline   Reply With Quote
Old 01-22-2006, 07:55 PM   #2
Wx geek
 
blue60007's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
I assume this error is what you are referring to:

Quote:
Fatal error: Call to a member function on a non-object in ....../module.php on line 116
You might take a look at that file and see what is located on that line...maybe it'll give you a clue as to what is wrong. Otherwise, I'm just taking a stab in the dark.
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers."

Last edited by blue60007; 01-22-2006 at 08:02 PM.
blue60007 is offline   Reply With Quote
Old 01-22-2006, 08:06 PM   #3
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
yea, thats it. i took a look, but since i have no idea what i would even be changing, i am afraid to do anything

line 116 is:
Code:
if (($rs->RecordCount())>0)
the entire function is:
Code:
function getCheckItemFound($date) {
		global $db,$table_appointment;
		//$sql="SELECT * FROM $table_appointment WHERE usrId=$this->uid AND apmDateStart LIKE '$date%'";
		$datex=$date."000000";
		$sql="SELECT * FROM $table_appointment WHERE apmDateEnd >= '$datex' AND (apmDateStart LIKE '$date%' OR apmDateStart <= '$datex')AND usrId=$this->uid ";
		//WHERE
		//$db->debug=true;
		$rs=$db->Execute($sql);
		$this->rs=$rs;
		if (($rs->RecordCount())>0) {
		    return TRUE;
		} else {
			return false;
		}
	}
thanks for any help

craig
hobey19 is offline   Reply With Quote
Old 01-22-2006, 08:33 PM   #4
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
This, most likely, means the $rs is null. You could *try* changing the line to:
Code:
if (($rs) && ($rs->RecordCount())>0) {
I'm not sure if this will work, but you can give it a shot. This is really a question for the developers of the application.
faulkner132 is offline   Reply With Quote
Old 01-22-2006, 08:41 PM   #5
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
thanks faulkner, that fixed that problem, now when i try to add an appointment, it gives me an error saying "cannot add appointment." i thought we had it when that full calendar came right up with dates and everything.

there really aren't any error messages other than the one above. i am going to change the permissions on the user (pcmech, pcmech) so that you can add appts and what not, in case you want to mess around. otherwise, thanks for your help.

i have already emailed the devs, and i intend to install core 3, just in case that one is ok.

craig
hobey19 is offline   Reply With Quote
Old 01-23-2006, 07:56 AM   #6
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Looks like there are a host of bugs with this program's release. Probably best to wait for the developers to release a patch rather than try to fix it yourself. If other people are posting the same problems you are having, the devs will take care of it.
faulkner132 is offline   Reply With Quote
Old 01-23-2006, 10:54 AM   #7
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
alright, thanks for your help. i will just be patient and wait

do you know of any other sharepoint clones like this? that is my ultimate goal, but other than this one, i don't know of any others

thanks
craig
hobey19 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:03 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2