• Resolved exxis

    (@exxis)


    Hello,

    currently we’ve some trouble (Site is NSFW and contain sensitive content). On our News Page (Blog posts) we encounter following problem.
    If you click on the specific blogpost, the post is not opened instead the feature image of that specific post is.
    The Hyperlink in the overview seems correct but however there is a redirect for some reasons.
    The weird thing is for our second category (erotic stories) it is working normal.
    In the time the error occured the first time, no updates were made.

    Hope someone can help with this.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I did some looking around and everything seemed ok. I couldn’t find any broken links. Are you still having this issue? I was using Brave browser

    Thread Starter exxis

    (@exxis)

    it is more or less fixed now. It is currently a bug in WPML. This is the reply I got from there support

    Hi there,
    
    Thanks you. The following workaround fixed the issue for me on my local copy:
    - Using FTP, open “wp-content\plugins\sitepress-multilingual-cms\classes\query-filtering\class-wpml-404-guess.php”
    - Replace the following snippet (line 36):
    
    1
    2
    3
    public function guess_cpt_by_name( $name, $query ) {
            $type  = $query->get( 'post_type' );
            $ret   = array( $name, $type, false );  
    With this:
    
    1
    2
    3
    4
    5
    6
    7
    8
    public function guess_cpt_by_name( $name, $query ) {
            $type  = $query->get( 'post_type' );
            //Workaround
            if (empty($type)) {
                $type = !empty($query->get( 'pagename' )) ? 'page' : 'post';
            }
            //End of workaround
            $ret   = array( $name, $type, false );
    We are writing a errata about this bug.
    
    Please let us know if it worked for you.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[NSFW] Blog post links open featured images’ is closed to new replies.