WordPress.org

Ready to get started?Download WordPress

Forums

White page of death :/ (6 posts)

  1. mike_888
    Member
    Posted 5 months ago #

    Hi everyone
    Ive got the white page of death and ive been trying to fix it all day to no avail. Ripping my hair out!! Would anyone be able to help?? It happened as I activated my parent customizr theme. I've disabled plugins and themes etc via ftp but still no good.
    This is the error im getting:

    PHP Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 0 in /home/sfilterc/public_html/wp-content/plugins/real-time-find-and-replace/real-time-find-and-replace.php on line 157

    PHP Fatal error: Cannot redeclare _remove_script_version() (previously declared in /home/sfilterc/public_html/wp-content/themes/customizr-child/functions.php:242) in /home/sfilterc/public_html/wp-content/themes/customizr/functions.php on line 244

    And these are the related lines:
    real-time-find-and-replace.php

    156. $buffer = preg_replace($find, $farsettings['farreplace'][$key], $buffer);
    157.							else
    158. $buffer = str_replace($find, $farsettings['farreplace'][$key], $buffer);

    Customizr-Child function.php=

    241. add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    242. add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

    Customizr function.php

    241. function _remove_script_version( $src ){
    242.    $parts = explode( '?', $src );
    243.    return $parts[0];
    244. }
    245. add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    246. add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
  2. It happened as I activated my parent customizr theme.

    So change your theme.

    Go into the database and in wp_options look for 'template' and 'stylesheet'

    Change those to twentythirteen (yes, both) and you should be able to get in.

  3. mike_888
    Member
    Posted 5 months ago #

    I searched for wp_options in my database but it didnt come up with anything for some reason :/?

  4. mike_888
    Member
    Posted 5 months ago #

    sorry just found it.

    I changed them both but I still cant get?

    edit: I just restored a backup from 2 days ago but im still having this issue. im not sure what else I can do??

  5. Mike: Your issue is that you have a function defined both in your parent and child themes functions.php -- delete it from your child theme, and all will be right with the world.

  6. mike_888
    Member
    Posted 5 months ago #

    I just un-installed george :( haha how's that for timing!

    The page is only a few days old and I saved all my css and html, thought I'd get started again. Might be a long night.

    Thanks for the reply, appreciate it.

Reply

You must log in to post.

About this Topic