• Resolved margaprem

    (@margaprem)


    Hello team,

    can you please give me a hint, why this site is not working after upgrade to php 8.0?

    thank you

    Marga

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @margaprem what isn’t working exactly?

    Can you troubleshoot by temporarily disabling all plugins, if the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install and activate Health Check. It will add some additional features under the menu item under Tools > Site Health. On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off, and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.

    Thread Starter margaprem

    (@margaprem)

    Thank you thelmachido for your tipps.

    I could use the plug in, and it seems I have aproblem with the childtheme.

    I changed the header.php but this works fine since years.
    I don′t get it why it doesn′t work any more on php 8 or higher.

    do you have any clue..
    thank you

    Marga

    Let’s see the source code of your custom header.php. Then we could tell you what is not compatible with PHP 8.0.

    Alternatively, you can also view the error in the error log in your hosting. This should also give information about the cause.

    Thread Starter margaprem

    (@margaprem)

    Hello threadi,

    I copy the header.php in here.

    I had to change because I wanted the logo and the tibetan mill in the header.
    Maybe you can see something.

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?><!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile"  />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    
    
    
    <div id="page" class="hfeed site">
    <!-- Top Navigation -->
    <nav id="top-navigation" class="main-navigation" role="navigation">
        <h3 class="menu-toggle"><?php _e( 'Info & Language', 'twentytwelve' ); ?></h3>
        <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
        <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_class' => 'nav-menu', 'fallback_cb' => false ) ); ?>
    </nav><!-- #site-navigation -->
    
    	<header id="masthead" class="site-header" role="banner">
    
    
    		<hgroup><img alt="Logo" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2014/09/AHOI-LOGO-NEU.gif" />
    	<div id="logo-right">
    			<img alt="Logo" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2013/10/tibet.mhle_.gif" />
    	<div id="logo-left">
    
    
    		<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    		<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    
    	</div>
    	<div class="clear"></div>
    
    
    		</hgroup>
    
     <hgroup>
    
    
    			<nav id="site-navigation" class="main-navigation" role="navigation">
    			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
    			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    		</nav><!-- #site-navigation -->
    
    		<?php $header_image = get_header_image();
    		if ( ! empty( $header_image ) ) : ?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
    		<?php endif; ?>
    
    
    	</header><!-- #masthead -->
    Thread Starter margaprem

    (@margaprem)

    Sorry threadi, now I figured out.

    it′s the old version of wpml plugin….
    grre… so I think I have to buy a new version.

    to change to polylang is difficult…
    or do you have any suggestion for this.

    I can open another post for this.

    thsnks marga

    Thread Starter margaprem

    (@margaprem)

    Hello threadi or thelmachido

    maybe one of you can give me a code how I can make the logo, clickable to the startpage.
    I′m not fancy with php.
    but this would be great if it is possible
    thank you

    Please open a new topic so other users could help you with this new question too.

    Thread Starter margaprem

    (@margaprem)

    ok thank you done..

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘problem php 8.0 or higher’ is closed to new replies.