Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: PHP klaidų taisymas

Parašė ewl· 2011 Spa. 31 18:10:17
#1

Sveiki, aš įsirašiau php-fusion v7.02.03 ir fusionboard4. Man per Klaidų logą rodo 4 klaidas. Reikia, kad padėtumėte ištaisyti klaidas.

1. Klaida: mysql_result(): supplied argument is not a valid MySQL result resource


 
205 	    } else {
206 	        $rows = mysql_result($result, 0);
207 	        return $rows;
208 	    }
209 	}
210 	
211 	function dbresult($query, $row) {
212 	    global $mysql_queries_count, $mysql_queries_time;
213 	
214 	    $query_time = get_microtime();
215 	    $result = @mysql_result($query, $row);
216 	    $query_time = substr((get_microtime() - $query_time),0,7);
217 	
218 	    $mysql_queries_time[$mysql_queries_count] = array($query_time, $query);
219 	
220 	    if (!$result) {
221 	        echo mysql_error();
222 	        return false;
223 	    } else {
224 	        return $result;
 


2. Klaida: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource

 
224    return $result;
225 	    }
226 	}
227 	
228 	function dbrows($query) {
229 	    $result = @mysql_num_rows($query);
230 	    return $result;
231 	}
232 	
233 	function dbarray($query) {
234 	    $result = @mysql_fetch_assoc($query);
235 	    if (!$result) {
236 	        echo mysql_error();
237 	        return false;
238 	    } else {
239 	        return $result;
240 	    }
241 	}
242 	
243 	function dbarraynum($query) { 


3. Klaida: include(locale/Lithuanian/edit_profile.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory


 
10 	| This program is released as free software under the
11 	| Affero GPL license. You can redistribute it and/or
12 	| modify it under the terms of this license which you
13 	| can read by viewing the included agpl.txt or online
14 	| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
15 	| copyright header is strictly prohibited without
16 	| written permission from the original author(s).
17 	+--------------------------------------------------------*/
18 	require_once "maincore.php";
19 	require_once THEMES."templates/header.php";
20 	include LOCALE.LOCALESET."edit_profile.php";
21 	include LOCALE.LOCALESET."user_fields.php";
22 	
23 	if (!iMEMBER) { redirect("index.php"); }
24 	
25 	include INFUSIONS."fusionboard4/includes/func.php";
26 	if($fb4['fboard_on']){
27 	    redirect(INFUSIONS."fusionboard4/usercp.php?section=details");
28 	}
29 


4. Klaida: mysql_num_rows(): supplied argument is not a valid MySQL result resource


 
219 	
220 	    if (!$result) {
221 	        echo mysql_error();
222 	        return false;
223 	    } else {
224 	        return $result;
225 	    }
226 	}
227 	
228 	function dbrows($query) {
229 	    $result = @mysql_num_rows($query);
230 	    return $result;
231 	}
232 	
233 	function dbarray($query) {
234 	    $result = @mysql_fetch_assoc($query);
235 	    if (!$result) {
236 	        echo mysql_error();
237 	        return false;
238 	    } else {
239