error after / during installation - parse errors - Printable Version +- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com) +-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html) +--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html) +--- Thread: error after / during installation - parse errors (/thread-653.html) |
error after / during installation - parse errors - dcyper - 11-21-2013 Hello, I'm new to OpenDocMan /PHP and tried to install it for the first time. My webserver configuration:
Re: error after / during installation - parse errors - dcyper - 11-29-2013 installing version 1.2.7 : same problem Re: error after / during installation - parse errors - Stephen - 11-30-2013 Line 413 does not match in my code with the code you listed. Can you verify the error message and line # for me again? Re: error after / during installation - parse errors - dcyper - 12-12-2013 I've found the error on line 413 and fixed it by hardcoding the database table used in that line... Next error in same php file... Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxx/public_html/ODM/User_class.php on line 428 424 /* 425 * getAllUsers - Returns an array of all the active users 426 * @returns array 427 */ 428 public static function getAllUsers() { // query to get a list of available users $query = "SELECT id, last_name, first_name FROM {$GLOBALS['CONFIG']['db_prefix']}user ORDER BY last_name"; $result = mysql_query($query, $GLOBALS['connection']) or die("Error in query: $query. " . mysql_error()); while($row = mysql_fetch_assoc($result)){ $userListArray[] = $row; } return $userListArray; } Re: error after / during installation - parse errors - plowman - 12-17-2013 Make sure you have php 5+ Re: error after / during installation - parse errors - dcyper - 12-27-2013 My webserver configuration:
Re: error after / during installation - parse errors - Stephen - 01-01-2014 Is there a problem with line 413, or line 428? This is line 413: Code: $llen = mysql_num_rows($result); This is line 428: Code: public static function getAllUsers() Have you made any changes to that file? Have you tried copying the original file from the zip archive? What is your database name? What is your db prefix? |