Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.5.32, multisite, plugin conflict, wpms
- This topic has 15 replies, 3 voices, and was last updated 5 years, 3 months ago by
Steven Zahm.
-
AuthorPosts
-
03/10/2017 at 11:17 am #415129
Marjoline van der Jagt
ParticipantThis reply has been marked as private.03/10/2017 at 3:34 pm #415153Steven Zahm
Keymaster@ Marjoline van der Jagt
Well I spent the better part of my day tracking this down… I eventually tracked down thru the Connections code that the file names for the template were being changed. The file names being searched for, not the actual files themselves.
Thru some trial and error I narrowed it further down to the core WordPress
sanitize_file_name()
function was basically “hashing” the file names instead of simply ensuring the files sames were safe.So… with that knowledge I new for a fact another plugin or a theme was indeed the cause. Another plugin was changing the behavior of this core WordPress function thru the use of the
sanitize_file_name
filter within that function.I downloaded the installed plugins one at a time looking for one which hooked into the
sanitize_file_name
filter. On the fifth one, I found it.The culprit, “Discussion Board Pro”.
It hooked into the
sanitize_file_name
and under the following conditions would “hash” the file name.- The user was logged in.
- The login in user was not an admin
- The user was permitted to post a discussion.
- The user was permitted to upload a featured image or had access to the media button when posting a discussion.
The bad part is all those above criteria were met, their filter would be applied to all usages of
sanitize_file_name()
globally — all other plugins, theme and even WordPress.The solution…
Fortunately there was a simple solution. In the Discussion Board Pro setting under the Pro tab, uncheck both the “Upload featured image” and “Allow media button” options.
Bingo! The editor and user can view the directory just fine because Connections can now find its template files because the name it was looking for were not correct.
I personally would consider this a major bug in “Discussion Board Pro”. Their filter should only be applied within the strictest scenarios as possible to help reduce the possibility of this type of conflict. They really should refactor this so their filter is only applied to when a logged in user is posting a discussion and not globally like they are now.
Hope this helps!
03/10/2017 at 5:26 pm #415169Marjoline van der Jagt
ParticipantHi Steven,
Well that truly well over and above the call of duty. Attached please find the biggest bunch of flowers I could find!
Most of your competitors would have simply said: “that’s probably caused by another plugin, not my problem…” You really went the extra mile -and-a-half…
I cannot thank you enough. Tomorrow I will check it out, here is it almost 11:30 pm now.
And I will not stop to sing your praises to all who work with WordPress in my environment!Well done! And thank you so much!
Cheers,
MarjolineAttachments:
You must be logged in to view attached files.03/10/2017 at 6:21 pm #415171Steven Zahm
Keymaster@ Marjoline van der Jagt
lol, thanks!
If you have the time, I’d love a review
03/11/2017 at 6:39 am #415213Marjoline van der Jagt
ParticipantWill this do?
https://wordpress.org/support/topic/incredible-support-best-ever/
Thanks again!
Cheers,
Marjoline03/13/2017 at 11:28 am #415430Steven Zahm
Keymaster@ Marjoline van der Jagt
Yes, many thanks!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.