Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle
Restore from Backup – White-Space error
Home / Forums / Virtue Theme / Restore from Backup – White-Space error
- This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by
Ben Ritner.
Hi, I don’t know who to write about this. I’m using a child theme. I need to restore my database (used UpdraftPlus to backup) but am getting this error which points to these instructions.
I’m pretty sure the problem is in my child theme’s functions.php file. Here’s what I’ve observed:
When I switch from Virtue Child Premium to Virtue Premium, the white-space error disappears.
Child theme contains only functions.php & style.css
If I delete only style.css from Virtue Child Premium, the error persists.
If I delete only functions.php from Virtue Child Premium, the error message disappears.
If I delete everything in functions.php, the error message persists.
If functions.php contains only <?php or <?php ?> or <?php?>, the error message persists.
My functions.php looks like this:
<?php
//A Closer Look tab - 100% merino
add_shortcode('std_detailsa', 'std_detailsa');
function std_detailsa() {
$html = '<h4>Yarn:<br></h4>';
$html .= '<p>Full skeins are presented in up to 60″ / 152 cm twisted hanks, or center pull cakes – as you wish. Please select your preference from the boxed choices in the order area above, and we’ll be happy to send that to you. It’s also presented in quarter and mini skeins.<br></p>';
$html .= '<p>If your project calls for more than we have in stock, please write to us. We would be glad to dye some more especially for you.<br></p>';
$html .= '<p>Wherever you are in the world, you pay shipping only on the first skein; additional skeins and bobbins ship free.<br></p>';
$html .= '<p>If you use Ravelry, we’re Dave (Dave-B) and son Will (BrWhatsit), and we invite you to check out our Rav group. It’s called Meadowcroft Dyeworks. Also for fellow Ravelers; if you display your stash there, and you buy some of our yarns, you’re welcome to use any of our photos if you wish.</p>';
$html .= '<h4>Color:<br></h4>';
$html .= '<p>From a monitor that’s calibrated monthly, to quality photo lighting & camera equipment, and the best editing practices we know of, we put a lot of effort & time into reproducing the color of our yarns accurately in these photographs. We know, though, that monitors can vary, and you may not see the color with the accuracy we’re aiming. That’s part why we make returns easy.<br></p>';
$html .= '<h4>Care:<br></h4>';
$html .= '<p>We recommend hand washing in cool water with mild soap and laying flat to dry. You may also machine wash on the gentle cycle, but the life of the garment may be reduced. Please do not use a mechanical dryer.<br></p>';
$html .= '<p>Smoke free, dog friendly home.</p>';
return $html;
} // end function
//Returns tab
add_shortcode('std_detailsb', 'std_detailsb');
function std_detailsb() {
$html = '<h4>Returns:<br></h4>';
$html .= '<p>Returns are simple.</p>';
$html .= '<ul><li><p>You may return your purchase to us within 30 days of receipt for any reason.</li></p>';
$html .= '<li><p>If we are at fault, we pay shipping both ways.</li></p>';
$html .= '<li><p>It must be in the same condition in which you received it.</li></p>';
$html .= '<li><p>We would just request that you please <a href="mailto:[email protected]">write</a> to us first.</li></ul><br></p>';
return $html;
} // end function
//Smaller Quantities tab - sock weight
add_shortcode('std_detailsc', 'std_detailsc');
function std_detailsc() {
$html = '<p>This yarn, as with all our fingering weight yarns, is also available in 20 yard Mini skeins, and 100 yard Quarter skeins; just select the box in the order area above for your choice. These are ideal for making toys, beekeeper’s quilt modules, or just to see what a yarn looks and feels like. If you want to sample and swatch for a particular project, let us know how much you’ll need so we can be certain to send a mini from the appropriate variation.<br></p>';
$html .= '<p>Minis can also be purchased in <a href="*Login to see link mixed lots</a> of 10, 15, 25, 50, 100 or any other number you require at significant savings over buying them individually. Purchase your lot, tell us how you want us to build it, and we’ll pull your order from the 200+ colorways available when you place it. Please let us know your wishes about color, for example, “heavy in purples”, “no yellow”, “anything full spectrum”, or “no pastels”. We’ll do our best to accommodate.<br></p>';
$html .= '<p>Some of these are yarns that we have in quantities of less than 1 skein, and are not photographed on our website. Within any lot, we won’t give you two that are the same unless you specifically ask. They will all be fingering weight, spun from superwash merino (with up to 10% cashmere or 25% bamboo in a couple of rare cases, and up to 20% nylon in a very few more), handpainted yarns. A small percentage may be from our own stash of indie dyer sock yarns to fill voids in some color areas. These are some of our favorite yarns from dyers like Dragonfly Fibers (lots!), Collinette Jitterbug, The Sanguine Gryphon, Koigu (lots!), Sundara, madelinetosh, and all of these will be clearly labeled, too.</p>';
return $html;
} // end function
//Smaller Quantities tab - worsted weight
add_shortcode('std_detailsd', 'std_detailsd');
function std_detailsd() {
$html = '<p>This yarn, as with all our worsted weight yarns, is also available in 20 yard Mini skeins, and 54 yard Quarter skeins; just select the box in the order area above for your choice. These are ideal for making toys, beekeeper’s quilt modules, or just to see what a yarn looks and feels like. If you want to sample and swatch for a particular project, let us know how much you’ll need so we can be certain to send a mini from the appropriate variation.<br></p>';
$html .= '<p>Worsted minis are available a la carte. There aren’t enough colors in stock yet to create various sized lots of minis as is the case with sock weight.</p>';
return $html;
} // end function
//A Closer Look tab - Silk blend
add_shortcode('std_detailse', 'std_detailse');
function std_detailse() {
$html = '<h4>Yarn:<br></h4>';
$html .= '<p>Rustic Silk Traveler is a Silk / Merino blend that combines warm-buttery softness with a radience and luminosity that can display the intense, vibrant color and occasional iridescence of an Amazonian beetle as easily as the sublte shades of a seashell. I love how it takes color and then returns it holding back nothing. There’s something both ironic and captivating about the nature of a rustic high-twist single when it’s made with fibers as luxurious as these, without plies to complicate the visual field. Rustic Silk Traveler is a robust, impeccably crafted yarn, and it comes in colors you’ll savor.<br></p>';
$html .= '<p>Full skeins are presented in up to 60″ / 152 cm twisted hanks, or center pull cakes – as you wish. Please select your preference from the boxed choices in the order area above, and we’ll be happy to send that to you. It’s also presented in quarter and mini skeins.<br></p>';
$html .= '<p>If your project calls for more than we have in stock, please write to us. We would be glad to dye some more especially for you.<br></p>';
$html .= '<p>Wherever you are in the world, you pay shipping only on the first skein; additional skeins and bobbins ship free.<br></p>';
$html .= '<p>If you use Ravelry, we’re Dave (Dave-B) and son Will (BrWhatsit), and we invite you to check out our Rav group. It’s called Meadowcroft Dyeworks. Also for fellow Ravelers; if you display your stash there, and you buy some of our yarns, you’re welcome to use any of our photos if you wish.</p>';
$html .= '<h4>Color:<br></h4>';
$html .= '<p>From a monitor that’s calibrated monthly, to quality photo lighting & camera equipment, and the best editing practices we know of, we put a lot of effort & time into reproducing the color of our yarns accurately in these photographs. We know, though, that monitors can vary, and you may not see the color with the accuracy we’re aiming. That’s part why we make returns easy.<br></p>';
$html .= '<h4>Care:<br></h4>';
$html .= '<p>We recommend hand washing in cool water with mild soap and laying flat to dry. You may also machine wash on the gentle cycle, but the life of the garment may be reduced. Please do not use a mechanical dryer.<br></p>';
$html .= '<p>Smoke free, dog friendly home.</p>';
return $html;
} // end function
//This changes the default Add to Cart to Add to My Yarn Bag.
add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' );
//For Single Product Page.
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );
//For Archives Product Page.
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' );
function woo_custom_cart_button_text()
{
return __( 'Add to My Yarn Bag', 'woocommerce' );
} // end function
function yith_wcwl_add_show_link(){
global $product;
if( ! YITH_WCWL()->is_product_in_wishlist( $product->id ) ){
printf( '<a href="%s" rel="nofollow">%s</a>', YITH_WCWL()->get_wishlist_url(), get_option( 'yith_wcwl_browse_wishlist_text', __( 'Browse wishlist', 'yith-woocommerce-wishlist' ) ) );
}
}
add_action( 'woocommerce_single_product_summary', 'yith_wcwl_add_show_link', 35 );
?>
Do you see anything that might be causing the issue I’m experiencing? Can I safely restore the database while in Virtual Premium, then switch back to Virtual Child Premium again after it’s finished?
Peace,
Dave
ETA: On my local HDD, in my child theme’s directory are, in addition to style.css and functions.php, are also wp.config.php and something called WholesalePage.css that I would think should also be in my child theme root on the server, but aren’t. WholesalePage.css is probably associated with a particular plug-in and I can ask them about it specifically, but does wp.config.php also belong in my child theme’s root? I wish I could remember how that even came to be involved.
- The forum ‘Virtue Theme’ is closed to new topics and replies.


