From: SourceForge.net <no...@so...> - 2007-01-30 14:36:06
|
mod/staffman item #1647442, was opened at 2007-01-29 11:10 Message generated for change (Comment added) made by misterdubs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=706269&aid=1647442&group_id=81360 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Out of Date Priority: 5 Private: No Submitted By: JW (misterdubs) Assigned to: George Brackett (gbrackett) Summary: Staffman with phpWS 0.10.2 Initial Comment: I have phpWS 0.10.2 installed on Windows XP Pro using xampp 1.4.11 and when I installed the Staffman module I received the following error: This module requires a phpWebSite core version of 0.9.2-1 or greater. You are currently using phpWebSite core version 0.10.2. Staff Listing installation NOT successful! What is the solution to this error? Thanks ---------------------------------------------------------------------- >Comment By: JW (misterdubs) Date: 2007-01-30 04:36 Message: Logged In: YES user_id=156091 Originator: YES Thanks George Brackett and Verdon Vaillancourt for such timely and detailed comments. I just got to work where the dev website is hosted, so I have not made the changes just yet. George, I got the Staffman (and Jobman) Module from Sourceforge and it took a little digging to find it. I'm not sure what version I'm using; it could be version 1.7 or 1.30 (taken from the Readme.txt file). ---------------------------------------------------------------------- Comment By: George Brackett (gbrackett) Date: 2007-01-29 12:18 Message: Logged In: YES user_id=398373 Originator: NO Actually, the"current" version of staffman on my drive uses the correct formulation (version 1.5.2, which is the one posted to sourceforge). if (version_compare($GLOBALS["core"]->version, "0.9.3-1") < 0) { $content .= "This module requires a phpWebSite core version of 0.9.2-1 or greater.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; } Where did you get the staffman version you're using, JW? What version is it? ---------------------------------------------------------------------- Comment By: George Brackett (gbrackett) Date: 2007-01-29 12:13 Message: Logged In: YES user_id=398373 Originator: NO Actually, the version of staffman on my drive uses the correct formulation if (version_compare($GLOBALS["core"]->version, "0.9.3-1") < 0) { $content .= "This module requires a phpWebSite core version of 0.9.2-1 or greater.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; } If you substitute this code you have the protection and the install, both. Where did you get the staffman version you're using, JW? ---------------------------------------------------------------------- Comment By: George Brackett (gbrackett) Date: 2007-01-29 12:09 Message: Logged In: YES user_id=398373 Originator: NO Verdon is correct; that would do it, all right. It eliminates the protection, but in your case you don't need it. If you don't know how to 'comment out,' just put // in front of every line, like this: //if($GLOBALS["core"]->version < "0.9.2-1") { // $content .= "This module requires a phpWebSite core version of 0.9.2-1 //or greater.<br />"; // $content .= "<br />You are currently using phpWebSite core version " . //$GLOBALS["core"]->version . ".<br />"; // return; //} Alternatively you can do it this way: /* f($GLOBALS["core"]->version < "0.9.2-1") { $content .= "This module requires a phpWebSite core version of 0.9.2-1 or greater.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; } */ Staffman is such an old module it's tripping on its beard. I'll see if I have a later version than the one I posted on sourceforge... George Brackett ---------------------------------------------------------------------- Comment By: Verdon Vaillancourt (verdonv) Date: 2007-01-29 11:19 Message: Logged In: YES user_id=559731 Originator: NO This looks like a mod that hasn't been updated since the version numbering was changed. I don't really remember, but I think a quick fix might be to go to /mod/staffman/boost/install.php and look for the following lines... if($GLOBALS["core"]->version < "0.9.2-1") { $content .= "This module requires a phpWebSite core version of 0.9.2-1 or greater.<br />"; $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; return; } Just comment them out. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=706269&aid=1647442&group_id=81360 |