• 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 );

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter mike_888

    (@mike_888)

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

    Thread Starter mike_888

    (@mike_888)

    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??

    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.

    Thread Starter mike_888

    (@mike_888)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘White page of death :/’ is closed to new replies.