deariinsanity
Forum Replies Created
-
Okay, so I finally figured it out!
For those encountering the same issue (including OP if he hasn’t solved it yet), here’s the trick:
– I inspected the code carefully, and noticed there was a title attribute which was messing everything up. There was HTML code (actually the code from UM that allows the profile picture to display) inside the title tag, and it was unintentionally closing the menu “a” tag, causing the href attribute and everything after it to display on screen.
– I tried to remove the closing characters “/>” in the plugin’s code, and although it worked, it was not perfect (it was adding unnecessary spaces, as the rendered image tag was not closed, if that makes sense).
– Finally, I came up with the solution: to give the menu link a custom title. In the menu section in the WordPress Dashboard, where you add the menu items, you have to enable the title field by checking it in Screen Options > Show advanced menu properties > Title Attribute. Then, you write your title (in my case, I used “{first_name} {last_name} photo”, so the image title matched the user’s full name) and the problem is solved.
After some weeks without success, I found this workaround. However, it would be nice if the plugin (which is awesome, by the way) prevented this issue beforehand, or at least mentioned it in the documentation.
- This reply was modified 7 years, 5 months ago by deariinsanity.
Okay, problem solved. It had to do with the hosting, indeed.
For anyone who encounters the same issue, what happened to us is we were setting up WordPress on a Windows based hosting, which was causing trouble. We switched to a Linux hosting and everything is running smoothly now.
Hi!
Thanks for your reply. These are the screenshots:
I can’t see any errors in the console. I also checked the ultimatemember folder inside uploads via FTP, but it’s empty.
I forgot to mention that it worked on localhost, but since I uploaded the site to a live server it throws me this error. I’m afraid this may have to do with the hosting, perhaps?
Thanks!
- This reply was modified 7 years, 6 months ago by deariinsanity.
- This reply was modified 7 years, 6 months ago by deariinsanity.
- This reply was modified 7 years, 6 months ago by deariinsanity.
- This reply was modified 7 years, 6 months ago by deariinsanity. Reason: Correct image links and more info added
Hi!
I am facing the exact same problem as the OP. The profile picture URL seems to be wrong, as no image is displayed. Besides, href is being treated like plain text instead of an a tag attribute.
So what I see in my menu is:
” HREF=”/HOLISTICTRAINERS/USER/” CLASS=”NAV-LINK”> *default plugin avatar*
Any suggestions?
Thanks!