User Profile forms do not display
-
We are using UM version 2.7.0 – recently updated from a very old version and transferred to a modern virtual server – for our departmental website.
The UM user profile form main pages do not display anymore – only the meta I added to the header displays. This problem affects the default user form and all my custom ones (which include custom fields). All the information is there and can be seen and edited and saved when in edit mode. The shortcodes for the user forms are there on the user page. I have tried:
- disabling all other plugins
- changing the child theme (based on twenty-twelve) to another, latest one
- deleting all the profile forms and starting again from scratch
Absolutely nothing has worked. When I inspect the page, I don’t see a “um-profile-body” class, although one is mentioned in the css style.
I am fast approaching wits end… Any help or suggestions you can provide will be very, very, very much appreciated 🙂
-
This topic was modified 2 years, 7 months ago by
yanos.
The page I need help with: [log in to see the link]
-
I think you have an issue with your SSL settings.
Strict-Transport-Security: The site specified a header that could not be parsed successfully.Ask your web hosting support about this issue.
Thanks! Our sysadmin found and corrected a problem with the Strict-Transport-Security. But the profiles still aren’t displaying? Thanks again in advance…
Enable PHP error logging if the debug will give some more info about this issue.
Read this guide: “How to enable debug logging”
https://docs.ultimatemember.com/article/1751-enable-debug-logging
You will probably get a PHP log file with notices and errors in this file when you do the tests:
.../wp-content/debug.logPost the content of this file here in the Forum and we can give you the PHP error explanation. For best formatting use the Forum’s
CODEformat.Thanks! I managed to enable debugging, but I’m not sure what you mean by running the tests. Should I do this? https://modularwp.com/plugin-unit-testing-setup/
You do the tests when you try to display the User Profile forms.
OK, sorry, that’s what I initially thought, but as the error message didn’t seem directly relevant, I thought I was missing something – overthinking!
[02-Nov-2023 04:38:39 UTC] PHP Notice: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/postman-smtp/Postman/PostmanOAuthToken.php on line 45This message repeats four times every time I refresh the page, for lines 45 through 48.
Thanks again for your time…
-
This reply was modified 2 years, 7 months ago by
yanos.
Disable your SMTP plugin to avoid this error message
and try to load your Profile page form again.OK, I disabled the SMTP plugin, and now I log no errors when refreshing the page, but the profile still doesn’t display. What’s our next move? 🙂
Look at WP Tools -> Site Health -> Info -> Display your Profile Form.
Copy the Profile Form details including all custom fields and post here in the Forum.
This is information in WP Tools > Site Health > info > Ultimate Member Forms. I have 7 forms – I am just posting information for just two of them: (1) the default profile form, to which I added a “test” textarea field, and (2) the “FAE Instructor” profile which should display on the first link I sent. There is a problem with “Field 1” in this second form (its display name is “unit” but I don’t know the meta key as it does not open in the form editor with the error message “This field is not setup correctly for this form”). This field is present in four forms that are copied from the Instructor form template. I contacted UM support back in 2015 (my first thread in the forum) about this and was advised to work around it as it was a probably harmless “serialised” database error. I replaced the field with the field with meta key “unit-name” that you see at the bottom of the second table below. I have already tried deleting all the affected forms and recreating them, after which I no longer see the problematic field, but it had no effect on the profile display (but *lightbulb* I should probably reattempt that, actually, after you fixed the SSL and SMTP problems – I will do it tonight). But please let me know if you see anything else out of the ordinary below… Thanks again!
#1 Default Profile Form settings:
Shortcode [ultimatemember form_id="2080"] Type profile Make this profile form role-specific 0: um_admin Template Default Primary Button Text Update Profile Enable Cover Photos No Disable Profile Photo Upload No Make Profile Photo Required No Show display name in profile header? Yes Show social links in profile header? No Show user description in profile header? Yes Field: user_registered title: Registration Date metakey: user_registered type: text label: Registration Date required: 0 public: 1 editable: 1 edit_forbidden: 1 position: 1 in_row: _um_row_1 in_sub_row: 0 in_column: 1 in_group: Field: test_text in_row: _um_row_1 in_sub_row: 0 in_column: 1 in_group: type: textarea title: Test Text Area metakey: test_text height: 100px visibility: all public: 1 default: This is test text... html: 1 editable: 1 position: 2 Row: _um_row_1 type: row id: _um_row_1 sub_rows: 1 cols: 1 origin: _um_row_1 Field to show in user meta user_email#2 FAE Instructor Profile settings
Shortcode [ultimatemember form_id="2062"] Type profile Make this profile form role-specific 0: um_fae-instructor Template Default Primary Button Text Update Profile Enable Cover Photos No Disable Profile Photo Upload No Make Profile Photo Required Yes Show display name in profile header? Yes Show social links in profile header? Yes Show user description in profile header? Yes Field: 1 in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: select title: Unit metakey: 1 default: FADA/FHL options: a:5:{i:0;s:9:"FADA/FHL ";i:1;s:10:"FBA/FL/FS ";i:2;s:12:"FE/VTS/FMPA ";i:3;s:10:"SAL/FEASS ";i:4;s:0:"";} visibility: all label: Unit public: 1 required: 1 editable: 0 conditional_value: 0 position: 2 Field: linkedin in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: url metakey: linkedin position: 7 title: LinkedIn help: Optional - paste a link to your profile page on linkedin.com, e.g., https://www.linkedin.com/pub/yan-overfield-shaw/33/834/1a6 url_text: LinkedIn visibility: all label: LinkedIn url_target: _blank url_rel: nofollow public: 1 validate: linkedin_url required: 0 editable: 1 icon: um-faicon-linkedin conditional_value: 0 in_group: Field: academia_edu in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: url metakey: academia_edu position: 6 title: Academia.edu help: Optional - paste a link to your profile page on academia.edu, e.g., http://bilkent.academia.edu/YanOverfieldShaw visibility: all label: Academia.edu placeholder: http://bilkent.academia.edu/YourName url_target: _blank url_rel: follow public: 1 validate: url required: 0 editable: 1 icon: um-icon-university conditional_value: 0 in_group: Field: ins_website in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: url metakey: ins_website position: 5 title: Website help: Optional - paste a link to your personal webspace visibility: all label: Website url_target: _blank url_rel: follow public: 1 validate: url required: 0 editable: 1 icon: um-icon-android-globe conditional_value: 0 in_group: Field: philosophy in_row: _um_row_3 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy position: 26 title: Teaching Philosophy help: Optional - Describe your approach to teaching (150 words) height: 100px max_words: 200 visibility: all label: Teaching Philosophy public: 1 html: 1 required: 0 editable: 1 conditional_value: 0 in_group: Field: extra-curricular in_row: _um_row_3 in_sub_row: 0 in_column: 1 type: textarea metakey: extra-curricular position: 28 title: Extra-Curricular help: Optional - list your interests outside Bilkent / any extra-curricular clubs you run (150 words) height: 100px max_words: 150 visibility: all label: Extra-Curricular public: 1 html: 1 required: 0 editable: 1 conditional_value: 0 in_group: Field: long_bio in_row: _um_row_3 in_sub_row: 0 in_column: 1 type: textarea metakey: long_bio position: 29 title: Biography help: Optional - a brief overview of your education, life and career (150 words) height: 100px max_words: 175 visibility: all label: Biography public: 1 editable: 1 conditional_value: 0 in_group: Field: um_block_901_19 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: block metakey: um_block_901_19 position: 10 title: ENG 101 Course Page Link visibility: all public: 1 content: <a style="color: #0a5794; font-size: 0.8em;" href="https://fae.bilkent.edu.tr/user/eng101/" target="_blank">ENG 101 Course Information Page</a> conditional_action: hide conditional_field: eng102_topic_21 conditional_operator: equals to conditional_value: 0 conditions: a:1:{i:0;a:4:{i:0;s:4:"hide";i:1;s:15:"eng102_topic_21";i:2;s:9:"equals to";i:3;s:1:"0";}} in_group: Field: um_block_901_19_19 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: block metakey: um_block_901_19_19 position: 13 title: ENG 102 Course Page Link visibility: all public: 1 content: <a style="color: #0a5794; font-size: 0.8em;" href="https://fae.bilkent.edu.tr/user/eng102/" target="_blank">ENG 102 Course Information Page</a> conditional_action: hide conditional_field: eng102_topic conditional_operator: equals to conditional_value: 0 conditions: a:1:{i:0;a:4:{i:0;s:4:"hide";i:1;s:12:"eng102_topic";i:2;s:9:"equals to";i:3;s:1:"0";}} in_group: Field: eng102_topic in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: text metakey: eng102_topic position: 11 title: ENG 102 Topic help: Paste your course title here ... (max 50 characters) visibility: all label: English & Composition II (ENG 102) - Course Topic placeholder: Paste your course title here ... (max 50 characters) public: 1 max_chars: 50 editable: 1 conditional_value: 0 in_group: Field: eng102_topic_21 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: text metakey: eng102_topic_21 position: 8 title: ENG 101 Topic help: Paste your course title here ... (max 50 characters) visibility: all label: English & Composition I (ENG 101) - Course Topic placeholder: Paste your course title here ... (max 50 characters) public: 1 max_chars: 50 required: 0 editable: 1 conditional_value: 0 in_group: Field: philosophy_22 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy_22 position: 12 title: ENG 102 Course Blurb help: Paste your course blurb here ... (max 300 words) height: 100px max_words: 300 visibility: all label: Course Description placeholder: Paste your course blurb here ... (max 300 words) public: 1 html: 1 editable: 1 conditional_value: 0 in_group: Field: philosophy_22_22 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy_22_22 position: 9 title: ENG 101 Course Blurb help: Paste your course blurb here ... (max 300 words) height: 100px max_words: 300 visibility: all label: Course Description placeholder: Paste your course blurb here ... (max 300 words) public: 1 html: 1 editable: 1 conditional_value: 0 in_group: Field: contact_bilkent_directory in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: url metakey: contact_bilkent_directory position: 4 title: Contact Details (Bilkent Directory) url_text: Office & Telephone (Bilkent Directory) visibility: all url_target: _blank url_rel: follow public: 1 required: 0 editable: 0 icon: um-icon-android-call conditional_value: 0 in_group: Field: role_select in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: select metakey: role_select position: 1 title: Roles (Dropdown) options: a:1:{i:0;s:14:"FAE Instructor";} visibility: all placeholder: Choose account type public: 1 required: 0 editable: 0 conditional_value: 0 in_group: Field: eng102_topic_19 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: text metakey: eng102_topic_19 position: 14 title: ENG 401 Topic help: Paste your course title here ... (max 50 characters) visibility: all label: Technical Report Writing & Presentation (ENG 401) - Course Topic placeholder: Paste your course title here ... (max 50 characters) public: 1 max_chars: 50 editable: 1 conditional_value: 0 in_group: Field: philosophy_22_20 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy_22_20 position: 15 title: ENG 401 Course Blurb help: Paste your course blurb here ... (max 300 words) height: 100px max_words: 300 visibility: all label: Course Description placeholder: Paste your course blurb here ... (max 300 words) public: 1 html: 1 editable: 1 conditional_value: 0 in_group: Field: um_block_901_19_19_21 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: block metakey: um_block_901_19_19_21 position: 16 title: ENG 401 Course Page Link visibility: all public: 1 content: <a style="color: #0a5794; font-size: 0.8em;" href="https://fae.bilkent.edu.tr/user/eng401/" target="_blank">ENG 401 Course Information Page</a> conditional_action: hide conditional_field: eng102_topic_19 conditional_operator: equals to conditional_value: 0 conditions: a:1:{i:0;a:4:{i:0;s:4:"hide";i:1;s:15:"eng102_topic_19";i:2;s:9:"equals to";i:3;s:1:"0";}} in_group: Field: pubs_pres in_row: _um_row_3 in_sub_row: 0 in_column: 1 type: textarea metakey: pubs_pres position: 27 title: Publications & Presentations help: Optional - A list of relevant publications height: 100px visibility: all label: Publications & Presentations public: 1 html: 1 required: 0 editable: 1 conditional_value: 0 in_group: Field: eng102_topic_19_24 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: text metakey: eng102_topic_19_24 position: 17 title: ELS 301 Topic help: Paste your course title here ... (max 50 characters) visibility: all label: Advanced Communication Skills (ELS 301) - Course Topic placeholder: Paste your course title here ... (max 50 characters) public: 1 max_chars: 50 editable: 1 conditional_value: 0 in_group: Field: philosophy_22_20_25 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy_22_20_25 position: 18 title: ELS 301 Course Blurb help: Paste your course blurb here ... (max 300 words) height: 100px max_words: 300 visibility: all label: Course Description placeholder: Paste your course blurb here ... (max 300 words) public: 1 html: 1 editable: 1 in_group: Field: um_block_901_19_19_21_26 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: block metakey: um_block_901_19_19_21_26 position: 19 title: ELS 301 Course Page Link visibility: all public: 1 content: <a style="color: #0a5794; font-size: 0.8em;" href="https://fae.bilkent.edu.tr/user/els301/" target="_blank">ELS 301 Course Information Page</a> conditional_action: hide conditional_field: eng102_topic_19_24 conditional_operator: equals to conditional_value: 0 conditions: a:1:{i:0;a:4:{i:0;s:4:"hide";i:1;s:18:"eng102_topic_19_24";i:2;s:9:"equals to";i:3;s:1:"0";}} in_group: Field: eng102_topic_19_24_27 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: text metakey: eng102_topic_19_24_27 position: 20 title: ENG 312 Course Title help: Paste your course title here ... (max 50 characters) visibility: all label: Introduction to Creative Writing (ENG 312) - Course Topic placeholder: Paste your course title here ... (max 50 characters) public: 1 max_chars: 50 editable: 1 conditional_value: 0 in_group: Field: philosophy_22_20_25_28 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy_22_20_25_28 position: 21 title: ENG 312 Course Blurb help: Paste your course blurb here ... (max 300 words) height: 100px max_words: 300 visibility: all label: Course Description placeholder: Paste your course blurb here ... (max 300 words) public: 1 html: 1 editable: 1 in_group: Field: um_block_901_19_19_21_26_29 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: block metakey: um_block_901_19_19_21_26_29 position: 22 title: ENG 312 Course Page Link visibility: all public: 1 content: <a style="color: #0a5794; font-size: 0.8em;" href="https://fae.bilkent.edu.tr/user/eng312/" target="_blank" rel="noopener">ENG 312 Course Information Page</a> conditional_action: hide conditional_field: eng102_topic_19_24 conditional_operator: equals to conditional_value: 0 conditions: a:1:{i:0;a:4:{i:0;s:4:"hide";i:1;s:18:"eng102_topic_19_24";i:2;s:9:"equals to";i:3;s:1:"0";}} in_group: Field: eng102_topic_19_24_27_30 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: text metakey: eng102_topic_19_24_27_30 position: 23 title: ENG 206 Course Title help: Paste your course title here ... (max 50 characters) visibility: all label: Business Communications (ENG 206) - Course Topic placeholder: Paste your course title here ... (max 50 characters) public: 1 max_chars: 50 editable: 1 conditional_value: 0 in_group: Field: philosophy_22_20_25_28_31 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: textarea metakey: philosophy_22_20_25_28_31 position: 24 title: ENG 206 Course Blurb help: Paste your course blurb here ... (max 300 words) height: 100px max_words: 300 visibility: all label: Course Description placeholder: Paste your course blurb here ... (max 300 words) public: 1 html: 1 editable: 1 in_group: Field: um_block_901_19_19_21_26_29_32 in_row: _um_row_2 in_sub_row: 0 in_column: 1 type: block metakey: um_block_901_19_19_21_26_29_32 position: 25 title: ENG 206 Course Page Link visibility: all public: 1 content: <a href="https://fae.bilkent.edu.tr/user/eng206/">ENG 206 Course Information Page</a> conditional_action: hide conditional_field: eng102_topic_19_24 conditional_operator: equals to conditional_value: 0 conditions: a:1:{i:0;a:4:{i:0;s:4:"hide";i:1;s:18:"eng102_topic_19_24";i:2;s:9:"equals to";i:3;s:1:"0";}} in_group: Field: 0_33 title: #33 metakey: 0_33 position: 33 Field: 0_34 title: #34 metakey: 0_34 position: 34 Field: 0_35 title: #35 metakey: 0_35 position: 35 Field: unit-name type: select metakey: unit-name title: Unit Name options: a:4:{i:0;s:15:"FADA / FHL Unit";i:1;s:18:"FBA / FL / FS Unit";i:2;s:20:"FE / VTS / FMPA Unit";i:3;s:16:"SAL / FEASS Unit";} visibility: all public: 1 required: 1 editable: 1 conditional_value: 0 position: 2 in_row: _um_row_1 in_sub_row: 0 in_column: 1 in_group: Row: _um_row_1 type: row id: _um_row_1 sub_rows: 2 cols: 1:1 origin: _um_row_1 Row: _um_row_2 type: row id: _um_row_2 sub_rows: 1 cols: 1 origin: _um_row_2 Row: _um_row_3 type: row id: _um_row_3 sub_rows: 1 cols: 1 origin: _um_row_3 Field to show in user meta role_select Field to show in user meta unit-name Field to show in user meta user_emailThere is a problem with “Field 1” in this second form (its display name is “unit” but I don’t know the meta key as it does not open in the form editor with the error message “This field is not setup correctly for this form”).
Meta_key is 1
I get the same UM error message “This field is not setup correctly for this form.” when I create a dropdown with a field with meta_key = 1Your field data are
Field: 1 in_row: _um_row_1 in_sub_row: 0 in_column: 1 type: select title: Unit metakey: 1 default: FADA/FHL options: a:5:{i:0;s:9:"FADA/FHL ";i:1;s:10:"FBA/FL/FS ";i:2;s:12:"FE/VTS/FMPA ";i:3;s:10:"SAL/FEASS ";i:4;s:0:"";} visibility: all label: Unit public: 1 required: 1 editable: 0 conditional_value: 0 position: 2Thanks for reproducing. Should I just delete the affected forms? Will deleting the form delete the problematic custom field? Should I try and change the meta-key in the DB?
You can try to remove the “Unit” field in UM Forms Builder.
Clicking delete on the field will not work,
but you can find the “Unit” field among your “Custom Fields” boxes
in the third section of the UM Forms Builder modal.
Try to delete the “Unit” box.Great idea, I checked, but unfortunately that field doesn’t show in the Builder. Shall I try deleting and recreating the forms?
Yes, you have the fields documented now in the “Site Health” report.
-
This reply was modified 2 years, 7 months ago by
The topic ‘User Profile forms do not display’ is closed to new replies.