Site logo

Archived topic

UpdraftPlus problem

6 replies · Started by Emma Riegert on August 12, 2020

Viewing posts 1–7 of 7

Hello

I cannot do the backup of my website because Updraft tells that there is problem with extra whitespaces.
I try to desactivate plugins and reactivate 1 by one, and I try to change my theme.
I only have this problem when my child theme of GP is activated.
Someone know how can I fix it ?

thank you so much

Hi there,

what changes have you made in your Child Theme ?

I had some functions in functions.php
<?php
add_action( 'wp_enqueue_scripts', 'laseotheque_enqueue_styles' );
function laseotheque_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>
<?php
function seomix_no_internal_ping( &$links ) {
$home = get_option('home');
foreach ($links as $l => $link) {

if (0=== strpos($link, $home)){
unset($links[$l]);
}
}
}
add_action('pre_ping', 'seomix_no_internal_ping')
?>
<?php
add_action('generate_paging_navigation','generate_pagenavi_integration');
function generate_pagenavi_integration() {
wp_pagenavi();
}
?>
<?php
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'parent_post_rel_link');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');

?>
<?php
function wpsites_disable_self_pingbacks ( & $links ) {
foreach ( $links as $l => $link )
if ( 0 === strpos ( $link , get_option ( 'home' ) ) )
unset ( $links [ $l ] ) ;
}

add_action ( 'pre_ping' , 'wpsites_disable_self_pingbacks' ) ;
?>

and a little css in style.css
.page-numbers {
display: none;
}

.site-info {
position: absolute;
bottom:0;
width: 100%;
}

and this is my header.php

<?php
/**
* The template for displaying the header.
*
* @package GeneratePress
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="UTF-8">

<?php wp_head(); ?>
</head>

<body <?php body_class(); ?> <?php generate_do_microdata( 'body' ); ?>>
<?php
/**
* wp_body_open hook.
*
* @since 2.3
*/
do_action( 'wp_body_open' );

/**
* generate_before_header hook.
*
* @since 0.1
*
* @hooked generate_do_skip_to_content_link - 2
* @hooked generate_top_bar - 5
* @hooked generate_add_navigation_before_header - 5
*/
do_action( 'generate_before_header' );

/**
* generate_header hook.
*
* @since 1.3.42
*
* @hooked generate_construct_header - 10
*/
do_action( 'generate_header' );

/**
* generate_after_header hook.
*
* @since 0.1
*
* @hooked generate_featured_page_header - 10
*/
do_action( 'generate_after_header' );
?>

<?php
/**
* generate_inside_site_container hook.
*
* @since 2.4
*/
do_action( 'generate_inside_site_container' );
?>

<?php
/**
* generate_inside_container hook.
*
* @since 0.1
*/
do_action( 'generate_inside_container' );

Hi there,

Try removing the last ?> part of your functions.php file.

So this would be the last line:

add_action( 'pre_ping', 'wpsites_disable_self_pingbacks' ) ;

Yes !!! I should have seen this by myself :)
thank you so much for helping me !

You're welcome :)

This archived topic is closed to new replies.