Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • maltmann

    (@maltmann)

    Experienced the same since Polylang 3.2.2.
    Found this issue:

    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.

    • This reply was modified 4 years ago by maltmann.
    • This reply was modified 4 years ago by maltmann.
    • This reply was modified 4 years ago by maltmann.

    Confirm the issue with version 1.0.1.
    Not saving any checkbox settings correctly.

    Thread Starter maltmann

    (@maltmann)

    Thank you very much!

    Thread Starter maltmann

    (@maltmann)

    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,
    Matt

    Thread Starter maltmann

    (@maltmann)

    Thank 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

    • This reply was modified 8 years, 4 months ago by maltmann.
    • This reply was modified 8 years, 4 months ago by maltmann.
    Thread Starter maltmann

    (@maltmann)

    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

    Thread Starter maltmann

    (@maltmann)

    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.

Viewing 7 replies - 16 through 22 (of 22 total)