White page of death :/ (1 post)

  1. mike_888
    Posted 1 year 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:

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

Topic Closed

This topic has been closed to new replies.

About this Topic