supermurmeli
Forum Replies Created
-
*Bump*
So – I finally got a reply from the hosting company. They won’t disable the mod_security but were kind enough to check their logs for the error.
They replied:
It appears that multipart/form-data of the request is not valid and is therefore dropper -> [msg “Failed to parse request body: Multipart parsing error: Multipart: Invalid part header (colon missing): undefined\x0d\x0a”
and that the request has an empty part -> Content-Disposition: form-data; name=””
undefinedI have no clue as to what any of that means. Any ideas? @champsupertramp @ultimatemembersupport
Disabled the redirecting function in the functions.php and was able to login to admin. Then replaced the old shortcode with the new format and all is good again.
Looks like an issue with obsole shortcodes. Any idea if it’s possible to ‘fix’ it when not being able to login to WordPress? @cbutlerjr
I’ll look through the functions.php but as I recall no such redirects were made at the time – only the plugin was used to specify the needed redirects. But it was loooong ago.
EDIT: You were absolutely right! I found the redirect in the functions.php!
Thanks for the quick reply!
- This reply was modified 5 years, 10 months ago by supermurmeli.
I’m currently waiting for a reply to my request for disabling the mod_security. I’ll post the results on this thread if there are any.
Thanks for all the help so far @champsupertramp !
@cryptex_vinci Ignore the part with the template not working. My bad – I moved the file up from the ‘templates’ as it should be – it works as it’s supposed to.
Now I just need to figure out a way to clean up those multiword class names into something less messy.
After trying to upload and failing at it the browser logs “../wp-admin/admin-ajax.php 406 (Not Acceptable)” and the UM dialog simply shows “ERROR: Not acceptable”.
That error expanded shows the following:
send @ jquery.js?ver=1.12.4-wp:4 ajax @ jquery.js?ver=1.12.4-wp:4 (anonymous) @um-jquery-form.min.js?ver=2.1.5:1 X.fn.ajaxSubmit @um-jquery-form.min.js?ver=2.1.5:1 w @ um-fileupload.min.js?ver=2.1.5:1 m @ um-fileupload.min.js?ver=2.1.5:1 (anonymous) @um-fileupload.min.js?ver=2.1.5:1 dispatch @jquery.js?ver=1.12.4-wp:3 r.handle @jquery.js?ver=1.12.4-wp:3Does this make sense to anyone?
- This reply was modified 5 years, 10 months ago by supermurmeli.
Also – I guess this will make the class name same as the chosen value – which in this case would be a pretty long multiword text string. The user sees options like “I’m not able to take new clients” in a dropdown select and this is then shown on the profile card in the members grid.
I guess I would need more like the selectedIndex value of the select item (or some hidden value attached to the selection) that would generate a more sensible class name. The idea still being that I could hilite available users with a green color and unavailable with red.
Thanks for the reply @cryptex_vinci !
I have a copy of the the file set up (/mytheme/ultimate-member/templates/members-grid.php) and I tried editing it on line 12 by adding
user.mydatafield.For some reason it’s not having any effect – adding a class name ‘testclass’ directly doesn’t show up so apparently the members-grid.php in my theme’s templates directory is being ignored. Any idea what I’m doing wrong?
Any suggestions what to try next? Referring to the upload issue – still not able to upload or change an existing profile photo. I’m running out of ideas.
@champsupertramp @ultimatemembersupport- This reply was modified 5 years, 10 months ago by supermurmeli.
So – I ended up working with the service provider. We managed to get the thumbnails in the lists working – it was a simple rights issue. However – unlike the guide here: https://docs.ultimatemember.com/article/114-photo-uploads-not-working – the UM uploads directory needed to be 755 for the thumbnails to appear.
The upload issue still remains. The UM upload dialog still displays “ERROR: Not Acceptable” after the upload finishes and the image never appears. The browser logs an error “…../wp-admin/admin-ajax.php 406 (Not Acceptable)”
Tried disabling all the other plugins and reverted to the Twenty Sixteen theme. Tried the various .htaccess files instructed in the first comment of the thread. The tech at the hosting company ran out of ideas and so did I. Not really sure what to try next.
I’ll keep trying. Not eager to do the whole uninstall/reinstall routine as I’m worried about loosing all the member data.
- This reply was modified 5 years, 10 months ago by supermurmeli.
Thank you both for replies. I’m already using the Twenty-Sixteen – or more specificly a child theme for it. I’ve only done some light layout tweaks. Also no other image optimization plugins installed.
It does look like a server-side config issue. When loading the members list I get a list of 403 errors in the inspect log for each thumbnail that the browser is trying to load. The permissions for the UM upload folder should be set correctly. The site has been running just fine for a few years so I guess the hosting company has changed something.
I’ve also seen the 406 error in the log when loading the profile page. So I guess I’ll try following the guide @champsupertramp posted and see if it leads somewhere. After that I guess I need to contact the service provider.
Found the issue. I had some Ultimate Member templates copied into the theme folder. They were apparently incompatible with the new version so I replaced a few of them with templates from the new version of the plugin and everything is working great again.
Problem solved.
All settings are correct as they’ve been previously before the update. Also the theme is a child theme for the Twenty Sixteen theme – mostly only styled to look different so that shouldn’t be the issue.
The only thing that has changed from before is the upgrade to version 2.0.29.
The users are there – searching from the Members directory shows up the correct number of users in the title of the search result. Only the member cards are missing along with the custom data on the profile page.
The title HTML:
<div class=”um-members-total”>58 osumaa</div> (58 hits)Where the cards should be:
<div class=”um-members masonry” style=”position: relative; height: 0px;”>
<div class=”um-gutter-sizer masonry-brick”></div>
</div>I’m out of ideas on how to fix this. Or what to fix.
So far I’ve tried:
- manually reinstalling the plugin
- checked the shortcodes
- tried making new forms and user directories
- tried disabling all other plugins
Nothing helps.
The search is correctly returning the count of 58 users in the title but where there should be a list of member cards there’s nothing. It’s empty in the HTML source as well.The profile cards remain empty as well except for the photo and nickname.