Errormessages: The /e modifier is deprecated

8 posts / 0 new
Last post
rolf.t
rolf.t's picture
Errormessages: The /e modifier is deprecated

When using this theme with sliders activated, I get a error message on the pages:
"Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /var/www/7drv/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc)."

Any ideas on what could be the problem here?

-Rolf

support
support's picture
Hi there Rolf:

Hi there Rolf:

Please check that you are using PHP 5.3 or above as the newest version of Views Slideshow requires so. Otherwise, then you will need to rollback to the previous version of Views Slideshow.

Best!!!

rolf.t
rolf.t's picture
I'm running PHP 5.5.9 - That

I'm running PHP 5.5.9 - That should be ok?

There's also an error jumplinetarget on line 79 in sites/all/themes/seven_doublemthemes/templates/html.tpl.php, but as I saw on another post, the line can be deleted...

-Rolf

support
support's picture
Hi Rolf:

Hi Rolf:

In theory it shouldn't have any problem as the problem was prior to 5.3. Upgrade Views Slideshow to the latest DEV release to see if it was solved.

Best!!!

zach
zach's picture
I just installed and setup

I just installed and setup seven about 30 minutes ago and I am also receiving error messages of that sort. I haven't made any changes at all yet. This is what is at the bottom of the page after I clicked on menu item >>> Variant 7 - Wide Blue (also see the same on the other variants):

Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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_pager_widget_render() (line 187 of /var/www/html/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).

The slideshow is not working at the top of the page either. Sorry for the wall of errors, just showing you exactly what I'm seeing.

I'm running - PHP 5.6.4-4ubuntu6 (cli) (built: Apr 17 2015 15:47:51)

zach
zach's picture
Update

Update: This was a permissions thing with the modules folder. Changing permissions on the modules and themes directory fixed this problem and also not being able to update "modules" from the site itself. Was getting "Can't remove directory" error when trying to update modules... not anymore.

Now I'm just seeing the following at the end of the page:

Notice: Undefined index: username in twitter_block_block_view() (line 397 of /var/www/html/sites/all/modules/twitter_block/twitter_block.module).
Notice: Undefined index: username in twitter_block_block_view() (line 398 of /var/www/html/sites/all/modules/twitter_block/twitter_block.module).

I'm guessing that once I configure that portion it should go away.

zach
zach's picture
Update #2

Update again: I re-installed everything from scratch and changed my permission again. The errors were still coming in after the permissions change like I pasted in the above thread. It wasn't until I updated the modules and applied them to the database, that they went away. So what really fixed the errors was updating the modules and applying them to the database not necessarily the permissions.

support
support's picture
Hi there Zach:

Hi there Zach:

Sorry for the delay on answering back :(

Thanks for posting the way you follow to solve it.

Best!!!

Log in to post comments