PHP deprecated messages thrown by flvplayer.php

Project:RUcore dlr/EDIT
Version:6.1
Component:Code
Category:bug report
Priority:normal
Assigned:jgeng
Status:closed
Description

[30-Nov-2011 13:40:21] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 47
[30-Nov-2011 13:40:21] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 48
[30-Nov-2011 13:40:21] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 93
[30-Nov-2011 13:40:22] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 98
[30-Nov-2011 13:40:22] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 99
[30-Nov-2011 13:40:22] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 47
[30-Nov-2011 13:40:22] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 48
[30-Nov-2011 13:40:22] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 93
[30-Nov-2011 13:40:23] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 98
[30-Nov-2011 13:40:23] PHP Deprecated: Function ereg_replace() is deprecated in /mellon/htdocs/disseminators/flvplayer.php on line 99

Comments

#1

Status:active» test

#2

Status:test» active

Video will not play.

#3

Also a Warning message is logged in php_errors

[30-Nov-2011 15:23:46] PHP Warning: file(<a href="http://rep-test.libraries.rutgers.edu/rucore/api/stats/update_download/?key=statsupdate&amp;system=&amp;host_ip=172.16.144.69&amp;host_name=tsb-systems-s7.rutgers.edu&amp;object=rutgers-lib:25323&amp;mine_type=video/x-flv&amp;data_stream=FLV-2" title="http://rep-test.libraries.rutgers.edu/rucore/api/stats/update_download/?key=statsupdate&amp;system=&amp;host_ip=172.16.144.69&amp;host_name=tsb-systems-s7.rutgers.edu&amp;object=rutgers-lib:25323&amp;mine_type=video/x-flv&amp;data_stream=FLV-2">http://rep-test.libraries.rutgers.edu/rucore/api/stats/update_download/?...</a>) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error
in /mellon/htdocs/disseminators/flvplayer.php on line 108

#4

The videos now play - at least Carpe Diem videos on rep-devel. It had a minor glitch - the ereg_replace had a "\-" that needed to be changed to "=" for str_replace. I don't know what caused the failed download, but it may have been from a bad test I did.

#5

Download statistic for FLV datastream is not being logged.

#6

What is wrong with this:
$updatestatus = file("http://$rucorebase/api/stats/update_download/?key=statsupdate&system=&host_ip=$host_ip&host_name=$host_name&object=$pid&mine_type=$mime&data_stream=$ds");

Has mine_type been changed perhaps?

#7

Assigned to:triggs» jgeng

Jie,

Can you confirm the previous message has the proper stats logging syntax? In particular the "mine_type". I suspect it is supposed to be "mime_type".

Thanks,
Chad

#8

Status:active» test

Chad,

Yes, the syntax is right in the update statement. I just added the datastream (FLV-2) to the statsapi.ini file. It works fine now.
Best,
Jie

#9

Status:test» fixed

Confirmed and verified. Stats are now logged.

#10

Status:fixed» closed

Closing. Tested by viewing a FLV file and watching the php_errors log.

Back to top