First time user and first error

edited January 2014 in Bug Reports
I just got this installed to try it out. First thing I get on creating a sample page is:
"PHP Error was encountered
Severity: 8192
Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Filename: libraries/Fuel_pages.php
Line Number: 1293" What's up with that? I am just using the built in Fuel layout.

Comments

  • edited 2:06AM
    It has to do with the version of PHP you are using and the e modifier being now completely deprecated in 5.5. This will be fixed in the next release.
  • edited 2:06AM
    Out of curiousity, does the error go away if you replace line 1294 with the following:
    $output = preg_replace('/(<body[^>]*>)/', '"\\1\n".'.$head_markers, $output);
  • edited 2:06AM
    nope. using that I get a bunch of randomly place "\n"s on the page.
  • edited 2:06AM
    Oops... I meant the following:
    $output = preg_replace('/(<body[^>]*>)/', "\\1\n".$head_markers, $output);
Sign In or Register to comment.