Login
Username

Password



Lost Password?

Register now!
Referer
No referer

Guests cannot post in this forum

You cannot start a new topic in this forum

Action
list-tree Tree order sort-down Newest first previous Previous topic next Next topic

なし Shortcut Bug : My Menu : Legacy 215 UNMG Distribution

From frontpage when we try to add a page link to "My Menu"
the form fields are filled correctly but pressing button "submit" we get an error message :

"Failed store data in Database - Duplicate entry '0' for key 1"

Windows
Xoopserver41
Legacy 215 UNMG Distribution

なし Re: Shortcut Bug : My Menu : Legacy 215 UNMG Distribution

Umm, This problem probably relay with this warning in your report.
Quote:
Warning [PHP]: Wrong parameter count for md5() in file W:\www\xoopscube\modules\shortcut\edit_func.php line 73
May be need backword compatible PHP.
--- modules/shortcut/edit_func.php	13  7月 2008 21:21:14 +0900	1.3
+++ modules/shortcut/edit_func.php	16  8月 2008 11:56:01 +0900	
@@ -70,7 +70,7 @@
     global $xoopsDB;
     $rand = "";
     do {
-	$cutid = substr(base64_encode(md5($uid.'-'.$url.$rand, true)), 0, 5);
+	$cutid = substr(base64_encode(pack('H*', md5($uid.'-'.$url.$rand))), 0, 5);
 	$rand = rand(0,1000);
 	$res = $xoopsDB->query("SELECT cutid WHERE cutid=".$xoopsDB->quoteString($cutid));
     } while ($res && $xoopsDB->getRowsNum($res));

list-tree Tree order sort-down Newest first previous Previous topic next Next topic



Advanced search
© 2008 MySite Web Service