MyBB Community Forums

Full Version: member profile error :(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I just viewed one of my members profile and found this error in top Confused

Quote:Warning [2] mktime() expects parameter 4 to be long, string given - Line: 1489 - File: member.php PHP 5.2.17 (Linux)

I checked other member but there was no error just one member Confused

someone pls help me out thanks Heart
Something is messed up with that member's birthday, specifically the month. Check his bday in phpmyadmin and tell me what it says.
how can i search for members birthday in phpmyadmin? :X
Go to the mybb_users table and find the user. Look at the birthday field.
ok thanks gota check later cause my hoster forgot to ugrade there cpanel and iam geeting msg thats its not licensed lmao
Upload this file to your forum root.

<?php
define("IN_MYBB",1);
include("global.php");
$query = $db->query("SELECT birthday FROM mybb_users WHERE username='the username'");
$result = $db->fetch_array($query);
var_dump($result);
?>

Open the page.

Copy and paste what it says.
damn i have nether access to my ftp :@
sorry will update the thread as soon as my host contact me with my infos :/
Ok, edit the user in the Admin CP. See what his birthday is.
hey sir here is the result
array(1) { ["birthday"]=> string(2) "--" }
Run this script:

<?php
define("IN_MYBB",1);
include("global.php");
$query = $db->query("UPDATE mybb_users SET birthday='' WHERE username='the username'");
$result = $db->fetch_array($query);
var_dump($result);
?>
Pages: 1 2