Cannot redeclare media_playlist()
delykj - January 18, 2008 - 19:26
| Project: | Media Manager |
| Version: | 5.x-0.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
After I updated to the latest mapi via CVS, I get the following error:
Fatal error: Cannot redeclare media_playlist() (previously declared in E:\wamp\www\matine2\sites\all\modules\mapi\includes\display.inc:5) in E:\wamp\www\matine2\sites\all\modules\mmedia\includes\forms.inc on line 936
I looked at the source, and media_playlist function declared twice.
Best Regards,
Christopher

#1
Both the MAPI and MMEDIA will need to be reinstalled, as I changed the functions to more accurately reflect the nature of what they are doing.
You'll probably need to go to the admin/build/menu section, to also refresh the menu item for playlists.
#2
Unfortunately this not works. I disabled and uninstalled both module, and after that I reinstalled both module. And I get the following error:
Fatal error: Cannot redeclare media_playlist() (previously declared in E:\wamp\www\matine2\sites\all\modules\mapi\includes\display.inc:5) in E:\wamp\www\matine2\sites\all\modules\mmedia\includes\forms.inc on line 936
Call Stack
# Time Function Location
1 0.0004 {main}( ) ..\index.php:0
2 0.0051 drupal_bootstrap( ) ..\index.php:13
3 0.1542 _drupal_bootstrap( ) ..\bootstrap.inc:823
4 0.1658 _drupal_bootstrap_full( ) ..\bootstrap.inc:883
5 0.1963 module_load_all( ) ..\common.inc:1856
6 0.7035 drupal_load( ) ..\module.inc:14
7 0.7055 include_once( 'E:\wamp\www\matine2\sites\all\modules\mmedia\media.module' ) ..\bootstrap.inc:512
If I go to the menu, I get this error, too.
You made some modification in mapi, but mmedia not changed in cvs.
Please make a cvs commit to mmedia, and I try to install it.
Thanks,
Christopher
#3
Ok, I did the CVS commit, hopefully that now doesn't cause more errors, since I've been modifying some of these functions in preparation for the media_gallery module.
#4
Thanks, now works correctly.
#5
Automatically closed -- issue fixed for two weeks with no activity.