maltmann
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] V3.2.2 breaks Oxygen Builder templatesExperienced the same since Polylang 3.2.2.
Found this issue:- Oxygen Builder calls template preview with added parameters, like
https://domain/mycategory/?action=ct_render_shortcode
and expects a JSON response. - Polylang detects “mycategory” to be a category name, redirects to https://domain/mycategory/ (without parameters) and returns HTML.
- Oxygen Builder throws an error “Unexpected token < in JSON”
I wrote a Code Snippet to “fix” this temporarily:
add_filter('pll_check_canonical_url',function($redirect_url, $language){ // $redirect_url is the canonical URL evaluated by Polylang for this request // e.g. https://domain/projects/ $requested_url = pll_get_requested_url(); // initially $requested_url might differ since Oxygen adds URL parameters // e.g. https://domain/projects/?action=ct_render_shortcode // if $requested_url doesn't match $redirect_url if ($requested_url != $redirect_url) { // get the $requested_url without any URL parameters $requested_url_no_params = preg_replace('/\?.*$/','',$requested_url); // if $requested_url_no_params now matches $redirect_url if ($redirect_url == $requested_url_no_params) { // return the initial $requested_url with parameters as the desired $redirect_url $redirect_url = $requested_url; // since now $requested_url and $redirect_url match, Polylang will not attempt to do a redirect. } } return $redirect_url; },10,2);Solved the issue for my use case.
Tested with WP 6.0, Oxygen 3.9, Polylang 3.2.2 and 3.2.3.
Test and use the temporary “fix” at your own risk.Forum: Plugins
In reply to: [Self-Hosted Google Fonts] not saving optionsConfirm the issue with version 1.0.1.
Not saving any checkbox settings correctly.Thank you very much!
Thank you, @wfasa, for your answer.
I was aware of that option.However, I sure want to be alerted when someone tried to log in using an existing user name. Having a look at the IP address and location (great!) I’m able to detect if it’s one of my real users, who failed to log in and has now being blocked. So I can take actions to support him, unblock him…
My request was more towards a more differentiated option to be alerted e.g. on failed login attempts using existing user names and non-existing user names.
Any chance to get such a feature in a future release?
Thanks,
MattForum: Fixing WordPress
In reply to: WordPress Editor changing my form source codeThank you, esmi, for your hints.
I know that switching between Visual and Text view can be tricky sometimes, but mostly concerning WordPress’ automatic adding/removing paragraphs and line breaks or removing “unwanted” tags or tag attributes.
However, I never experienced this kind of corruption of my form fields before.Of course I use form plugins on others of my and my customers WordPress websites.
In this case, using any kind of form plugin is not an option for me, since this form connects to a CMS system and contains various special and individual adaptions, scripts, etc.
I tried several plugins in the first step but none of them handled everything according to my (quite special) needs.Should I be in good hope that the “Gutenberg” editor will handle that better in the future? 😉
Matt
Located the reason for PageBuilder created pages not to show up in search results:
PageBuilder settings, option “Copy Content” is activated.
However, when I save a PageBuilder page, the content is not copied to wp_posts.post_content field and no new revision of the page is created.When I just change the title of the page, a new revision is created but the wp_posts.post_content field is also not filled.
I currently have WP 4.7.1 and PageBuilder 2.4.21
I’m using the SiteOrigin North theme.
With “plain” pages and posts I meant, only pages and posts created with WP Editor.
My start page created with SiteOrigin PageBuilder does not show up in search results at all. - Oxygen Builder calls template preview with added parameters, like