I made clean install for Drupall 4.7.3.
After using it for 1 week - I activated profile.module.

During User Profile Edit in admin/settings/profile - I see all profile categories and fields.
I fill them and press - Update - but no info is stored in profile_value table.

If I put manually info into profile_value - than it displays correct on User-Profile preview.
Using base pushbutton theme without overloads.

Comments

killes@www.drop.org’s picture

the entries on the admin profile page are saved in the profile_fields table. To make stuff show up on your profile you need to edit your account.

MaksR’s picture

Profile Fields Definitions sotred perfectly.
I mean VALUES for theese fields.
For Example
I add Profile Field -> Personal Info -> Occupation

I go to Edit MaksR profile
Fill it's value - push Update button - and NO information stored for MaksR profile....

MaksR’s picture

... and Drupal says "Changes Saved !"

killes@www.drop.org’s picture

which version of PHP do you use?
profile works fine for me and others (eg here at drupal.org)

MaksR’s picture

php-4.4.2-Win32 with php_mbstring.dll enabled
Win XP SP2 IIS 5
All other stuff works fine except this one.

killes@www.drop.org’s picture

ini_set("display_errors","1");
ini_set('error_reporting', E_ALL ^ E_NOTICE);
ini_set('log_errors', "1");
ini_set('track_errors', '1');
ini_set('auto_detect_line_endings', 1);

can you put these lines in your settings.php file and try again? Are there any errors in the mysql or apache logs?

MaksR’s picture

Just made it...
also set in php.ini error_reporting = E_ALL & ~E_NOTICE

NO errors or warnings reported...

killes@www.drop.org’s picture

can you install devel.module and look if there are any INSERT queries executed? You need to enable "Display redirection page", too.

MaksR’s picture

Thanx killes@www.drop.org !

The problem partically solved with analyze results in devel.module

I'm using Localization module (Russian lang pack)
And of course fill Category in Profile Field Definition with Russian words....
profile module was not able in profile_save_profile()
correctly run this

$result = db_query("SELECT fid, name, type FROM {profile_fields} WHERE LOWER(category) = LOWER('%s') AND visibility != %d", $category, PROFILE_HIDDEN)
    // Use LOWER('%s') instead of PHP's strtolower() to avoid UTF-8 conversion issues.

seems to me that strtolower will be preferrable....!

I'll try to enter Categories in English - and after this try to put translation for them.

MaksR’s picture

I discover this problem a little bit deep.

If you use localization and in Profile Field definition you type smth. in russian( other lang possible too ) BUT WITH space beetween words ( Example Category : Место[space]работы ( Work[space]place -eng.) )

Than during save_profile it didn't find matching fields from profile_fileds->category because it seek only for first word "Место" (Work -eng.) somehow second word is missing...

With English names for categories such problem don't appear...

magico’s picture

Category: support » bug

Deserves further analysis, to confirm if the bug still exists.

ricabrantes’s picture

Status: Active » Closed (fixed)

4.x is no longer supported.