Hi I am new to drupal and PHP development ,I recently upgraded from PHP 5.4.1 to PHP 5.5.1 and the error below started appearing below the slide show. I have no Idea how to fix this problem , I have tried the patch
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in theme_views_slideshow_controls_widget_render() (line 275 of sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
Comments
Comment #1
@Kambiyaso CreditAttribution: @Kambiyaso commentedComment #2
xiukun.zhou CreditAttribution: xiukun.zhou commentedreport to #1872616: PHP 5.4.x: "preg_replace() /e modifier is deprecated, use preg_replace_callback()"
Comment #3
@Kambiyaso CreditAttribution: @Kambiyaso commentedHi xiukun.zhou
Thanks, it turns out that all I had to do was just apply the patch on command line.
The problem was that I was trying to replace the code myself with limited PHP skills.
The solution was just to use the command line to patch.