blank page dazzling child theme
-
I had a problem where the site became invisible after the update(I presume)- reading this thread (https://wordpress.org/support/topic/since-update-to-203-the-theme-dont-work-anymore?replies=7) I uploaded the updated Dazzling theme but now the child doesn’t function and I lost all 2015 and 2016 posts and additions. The connection to the media library also seems compromised. Should I try to upload the updated theme in a different way?
I would really appreciate some help!
-
Hi @sybrig,
Sorry to hear of the problem you are having.
The theme doesn’t delete or change any media files so not sure how it happened on your site.
If you are getting blank page after activating dazzling child theme then it’s your child theme issue so could you please share me your child theme so that i can troubleshoot it?
Also when you get blank page, Can you please try temporary enabling WP_DEBUG mode? To do this, just go to wp-config.php include this:
define('WP_DEBUG',true);You might already have a line for WP_DEBUG, so just make sure it’s set to true.
Let me know what errors if any you are getting when you face this issue.
Best Regards,
MovinHello,
Thank you for your reply.
Originally when I got the blank page and I contacted my host it said this:Y Jun 16 12:12:59 2016] [error] [client 127.0.0.1] PHP Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2 <http://archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2> ) in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php <http://archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php> on line 4 [Thu Jun 16 12:13:05 2016] [error] [client 127.0.0.1] PHP Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2 <http://archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2> ) in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php <http://archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php> on line 4 [Thu Jun 16 12:16:47 2016] [error] [client 127.0.0.1] PHP Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2 <http://archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2> ) in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php <http://archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php> on line 4, referer: http://archaeologicalbodies.org/wp-content/plugins/wp-mobile- detector/themes/wz-mobile/style.css [Thu Jun 16 12:40:40 2016] [error] [client 127.0.0.1] PHP Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling-child/functions.php:2) in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp- content/themes/dazzling/functions.php on line 4 Then I uploaded the updated Dazzling file from colorlib and after some other changes I got this: Warning: include(/www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp-settings.php on line 65 Warning: include(): Failed opening '/www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/local/share/pear:/usr/local/bin') in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp-settings.php on line 65 Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp-content/themes/dazzling-child/functions.php:2) in /www/webvol3/5e/ug1x9268oy38ub1/archaeologicalbodies.org/public_html/wp-content/themes/dazzling/functions.php on line 4I did get the configuration window and tried to get in but although it is contacting the database etc it doesn’t show.
I may have completely messed things up- I’m not sure.
Where shall I send the child theme?regards
BregjeOf course I cannot take the step of activation through the dashboard.
You appear to have an error in your child theme’s functions.php file.
The functions file is very brief:
<?php
function custom_excerpt_length( $length ) {
return 55;
}
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );
?>my site is http://www.archaeologicalbodies.org
sorry for not including clearly earlierWe are resolving this issue on your following thread so let’s reply there to avoid duplication of threads.
https://colorlib.com/wp/forums/topic/blank-page-dazzling-child-theme/
The topic ‘blank page dazzling child theme’ is closed to new replies.
