Pages: 1
Hello members of this forum,
I'm using Piwigo for quite a while. Now I'm currently migrating from PHP5 to PHP7 and I get several issues. I was able to solve a lot of them by following the hints from other users here in the forum. However, I'm now struggleing with Charlie's Extention and I always get the error:
Fatal error: Uncaught Error: Class 'getid3_lib' not found in /raid1/www/vhosts/....../htdocs/plugins/charlies/getid3/getid3/getid3.php:270 Stack trace: #0 /raid1/www/vhosts/...../htdocs/plugins/charlies/charlies.inc.php(45): getID3->analyze('././galleries/E...') #1 /raid1/www/vhosts/...../htdocs/plugins/charlies/main.inc.php(140): Charlies_content(Array) #2 /raid1/www/vhosts/..../htdocs/include/functions_plugins.inc.php(229): render_Charlie_element_content('', Array) #3 /raid1/www/vhosts/...../htdocs/picture.php(989): trigger_change('render_element_...', '', Array) #4 {main} thrown in /raid1/www/vhosts/...../htdocs/plugins/charlies/getid3/getid3/getid3.php on line 270
Any help is appriciated.
Kind regards
Jens
Piwigo version: 2.8.5
PHP version: 7.0.8-0ubuntu0.16.04.3
MySQL version: 5.7.16-0ubuntu0.16.04.1
Piwigo URL: http://www.ebo-eisenbahn.de
Offline
Hello,
I solved the issue on my own by making the following changes to two files. Here are the details I made:
File: plugins/charlies/getid3/getid3/getid3.php
50c50 < function getID3() --- > public function __constructor() 63c63 < if (eregi('([0-9]+)M', $memory_limit, $matches)) { --- > if (preg_match('([0-9]+)M /i', $memory_limit, $matches)) { 219c219 < if (eregi('1 File\(s\)[ ]+([0-9]+) bytes', $dir_output, $matches)) { --- > if (preg_match('1 File\(s\)[ ]+([0-9]+) bytes /i', $dir_output, $matches)) { 225c225 < if (eregi('([0-9]+) ([0-9]{4}-[0-9]{2}\-[0-9]{2} [0-9]{2}:[0-9]{2}) '.preg_quote($filename).'$', $dir_output, $matches)) { --- > if (preg_match('([0-9]+) ([0-9]{4}-[0-9]{2}\-[0-9]{2} [0-9]{2}:[0-9]{2}) '.preg_quote($filename).'$ /i', $dir_output, $matches)) {
File: plugins/charlies/charlies.inc.php
42a43,44 > // Added by jheinitz - 24-Jan-2017 > require_once(CHARLIES_PATH.'getid3/getid3/getid3.lib.php');
Thanks and kind regards
Jens
Offline
Pages: 1