Hi I am a newbie to drupal and I upgraded to 7.23 and tb_sirate_starter, I don't know what to do. I tried to edit the views_slideshow.theme.inc file but it seems like I am breaking this even more.
Please help.

Error:
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 73 of /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 73 of /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 73 of /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/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 /Applications/XAMPP/xamppfiles/htdocs/maj_wcdt_site/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).

Comments

scotself’s picture

well, it's being worked on and the patch fixed my problem, but the issue is, as the error indicates with views_slideshow module. check out #1872616: PHP 5.4.x: "preg_replace() /e modifier is deprecated, use preg_replace_callback()" and the patch (https://drupal.org/files/1872616-remove-deprecated-preg_replace-7.x-3.0....) there. applying patches is simple if you can use a command line...https://drupal.org/patch/apply

@Kambiyaso’s picture

Hi Scotself

Thanks, you're a champion. 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.

Kind Regards
@Kambiyaso

Metin07’s picture

Hi Kambiyaso
I am a newbie to drupal. I have the same trouble with you
I am getting this error on homepage

Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of C:\xampp\htdocs\realestate\sites\all\modules\views_slideshow\theme\views_slideshow.theme.inc).
I read knowledge here but I did not understand clearly
Please will you help me as a simple explaining.
Thanks

rosita9002’s picture

Tengo el mismo problema pero el problema es que soy nueva en drupal y no se nada sobre parches eh intentado reemplazar las lineas de código y me dan errores como este:
Parse error: syntax error, unexpected 'return' (T_RETURN) in C:\wamp\www\drupal715\sites\all\modules\views_slideshow\theme\views_slideshow.theme.inc on line 18

Nesecito ayuda en eso de los parches y con el error, por favor si alguien me pudiera responder rapido. Gracias de antemano

Carlos Espino’s picture

Hola, acabo de ver tu comentario y no sé si todavía necesitas ayuda. Por si acaso trato de responderte.

En primer lugar, observo que trabajas con un servidor windows y necesitas instalar una utilidad capaz de aplicar los parches.

En este enlace (http://unxutils.sourceforge.net/) tienes la posibilidad de bajarte un conjunto de utilidades para windows entre las que está el comando patch.

La forma de ejecutar el comando es ir al directorio del módulo views_slideshow, descargarte en él el parche y ejecutar patch.exe -i

Espero que te ayude y recuerda...siempre es buen momento para pasarse a GNU/Linux ;)

Carlos Espino Angulo
http://carlosespino.guatiza.org