Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1339310

    Hallo,
    ich habe beim Hoster einen neuen Account erhalten um PHP ab Version 7.4 zu verwenden. Dort wurde mir ein testbereich eingerichtet und die vorhandene, funktionsfähige Seite dorthin kopiert. Allerdings erscheint nun eine Fehlermeldung im Kopfbereich der Seite:

    ', '', $heading); $heading = preg_replace( "/href='.*?'/", '', $heading); $current_post['title'] = $heading; } return $current_post; }

    Woher kann dieser Fehler kommen?

    #1339387

    Hey sancho22,

    Could you post a link to where we can see the problem you are having problem?

    Best regards,
    Rikard

    #1339388

    Hey sancho22,

    Could you post a link to where we can see the problem you are having problem?

    Best regards,
    Rikard

    #1339393
    This reply has been marked as private.
    #1339491

    Hi,

    Thanks for that. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1339788
    This reply has been marked as private.
    #1339931

    Hi,

    Thanks for that, the login details are not working though. Please check and verify.

    Best regards,
    Rikard

    #1340010
    This reply has been marked as private.
    #1340107

    Hi,

    Thanks for that. This code in your functions.php file seems to be generating that:

    add_filter( 'post-format-standard', 'my_avia_default_title_filter', 20, 1 );
    
    function my_avia_default_title_filter($current_post)
    {
    		if( ( ! empty( $current_post['title'] ) ) && is_singular() )
    		{
    			$heading = $current_post['title'];
    			$heading = str_replace( '<a ', '<div ', $heading);
    			$heading = str_replace( '</a>', '</div>', $heading);
    			$heading = preg_replace( "/href='.*?'/", '', $heading);
    			$current_post['title'] = $heading;
    		}
    		return $current_post;
    }

    Where did you get it from, and what exactly is it supposed to do?

    Best regards,
    Rikard

    #1340112
    This reply has been marked as private.
    #1340130

    Hi,

    Thanks for the update. So who wrote the function? Maybe that person could help you out with adjusting it?

    Best regards,
    Rikard

    #1340140
    This reply has been marked as private.
    #1340172

    Hi,

    Thanks for that. The thread you linked to doesn’t contain the code which is causing the problem though? If you don’t need the function in question, then you can simply remove it.

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.