Parašė Andrius555· 2015 Bir. 11 12:06:15
#1
Norejau paklaust ar imanoma istaisyti errorus
php-fusion 9 versijoje, man ju nemazai ismete kai tik sukuriau puslapi - kad ir registracija neveikia normaliai, duomenis galima uzrasyt, bet neiraso i duom.baze ir negalima prisijungti (raso jog klaidingas passwordas). Na stai pwz:
public_html/register.php
preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Eilutė: 39
Kodas:
29 if (!preg_check("/^[0-9a-z]{40}$/", $_GET['code'])) redirect("register.php?error=activate");
30
31 $result = dbquery("SELECT user_info FROM ".DB_NEW_USERS."
32 WHERE user_code='".$_GET['code']."' AND user_email='".$_GET['email']."'
33 LIMIT 1");
34
35 if (dbrows($result)>0) {
36
37 add_to_title($locale['global_200'].$locale['u155']);
38 function unserializeFix($var) {
39 $var = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $var);
39 eilute yra erroras, kaip sutvarkyti?
arba dar va vienas :
administration/settings_registration.php
Undefined index: register_settings
Eilutė: 23
Kodas:
13 | can read by viewing the included agpl.txt or online
14 | at
www.gnu.org/licenses/agpl.html. 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 pageAccess('S4');
20 require_once THEMES."templates/admin_header.php";
21 include LOCALE.LOCALESET."admin/settings.php";
22
23 add_breadcrumb(array('link'=>ADMIN."settings_register.php".$aidlink, 'title'=>$locale['register_settings']));
Padekit jeigu zinote kaip tvarkyti tokius errorus.
Siaip kaip pavizdi galit pabandyt
www.dizainas.besaba.com pabandyti uzsiregistruoti ir ten errora ismeta, perzvelgti koki.
Redagavo Andrius555· 2015 Bir. 11 12:06:14
Parašė WhiZz· 2015 Bir. 11 15:06:11
#2
39 eilutę įdėk į
geshi kodą, neina suprast kas parašyta.
23 Eilute, atram kode. Bandyk:
add_breadcrumb(array('link'=>ADMIN."settings_register.php".$aidlink, 'title'=>"".$locale['register_settings'].""));
,arba:
add_breadcrumb(array('link'=>ADMIN."settings_register.php".$aidlink, 'title'=>"{$locale['register_settings']}"));
Redagavo WhiZz· 2015 Bir. 11 15:06:00