adamlacombe Posted June 26, 2009 Share Posted June 26, 2009 I get this in my error log: [26-Jun-2009 12:42:22] PHP Warning: Module 'ffmpeg' already loaded in Unknown on line 0 every time I access any page. What does that error mean? Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/ Share on other sites More sharing options...
Alex Posted June 26, 2009 Share Posted June 26, 2009 This might help: http://groups.google.com/group/ffmpeg-php/browse_thread/thread/965d68325844073a Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-864258 Share on other sites More sharing options...
adamlacombe Posted June 26, 2009 Author Share Posted June 26, 2009 still very confused... Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-864263 Share on other sites More sharing options...
pkedpker Posted June 26, 2009 Share Posted June 26, 2009 only mean you trying to load Module (extension) in php.ini 2 times?? or somewhere else.. loading it 2 times. Cause There are two ways to load most extensions in PHP. One is by compiling the extension directly into the PHP binary. The other is by loading a shared extension dynamically via an ini file. The errors indicate that dynamic extensions are being loaded via .ini files, even though they are already compiled into the PHP binary. Fix To fix this problem, you must edit your php.ini (or extensions.ini) file and comment-out the extensions that are already compiled-in. For example, after editing, your ini file may look like the lines below: ;extension=foo.so ;extension=bar.so You may also erase those lines instead of commenting them out. Once you have disabled those lines, run php -v to see if the warnings go away. Additional Info To see which extensions are compiled-in to your PHP binary, run the following command: php -m Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-864268 Share on other sites More sharing options...
Mark Baker Posted June 26, 2009 Share Posted June 26, 2009 Look for the line which is loading if (!extension_loaded('ffmpeg')) { if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { dl('ffmpeg.dll'); } else { dl('ffmpeg.so'); } } Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-864270 Share on other sites More sharing options...
adamlacombe Posted June 26, 2009 Author Share Posted June 26, 2009 hmm... It does not seem to be fixing it. the index file looks like this: <? include "db.php"; session_start(); echo'<link rel="stylesheet" href="style.css">'; switch($_GET['action']){ case 'login': include ('pages/login.php'); break; case 'register': include ('pages/register.php'); break; case 'profile': include ('pages/profile.php'); break; case 'members': include ('pages/members.php'); break; case 'browse': include ('pages/browse.php'); break; case 'game': include ('pages/game.php'); break; default: include ('pages/main.php'); break; } ?> Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-864283 Share on other sites More sharing options...
adamlacombe Posted June 26, 2009 Author Share Posted June 26, 2009 still getting the error. I dont get where its coming from. I have about 30 or more of that error in every dictionary's error log on my site. Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-864335 Share on other sites More sharing options...
adamlacombe Posted July 6, 2009 Author Share Posted July 6, 2009 I removed everything on my site and re-built it, im still getting the error. ffmpeg has something to do with like getting video screenshots, right? I have none of that kinda stuff in my script. I dont get it! I looked at all my PHP info and ffmpeg is loaded but I dont see why its loading twice. I don't really get this error at all so help with it would be very much appreciated but please explain in lamest terms. Thanks! Link to comment https://forums.phpfreaks.com/topic/163799-php-warning/#findComment-869909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.