Upon visiting any page on the website (PHP errors):
Warning: include_once(/Users/me/GIT/site/public_html): failed to open stream: Undefined error: 0 in media_admin() (line 87 of /Users/me/GIT/site/public_html/sites/all/modules/media/includes/media.admin.inc).
Warning: include_once(): Failed opening '' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.4.34/lib/php') in media_admin() (line 87 of /Users/me/GIT/site/public_html/sites/all/modules/media/includes/media.admin.inc).
And upon trying to view admin/content/media (WSOD):
Fatal error: Function name must be a string in /Users/me/GIT/site/public_html/sites/all/modules/media/includes/media.admin.inc on line 89
I've reverted to older and older commits and database backups, but I cannot escape the same errors, which were simply not happening before. This is also happening on the remote server we pushed it to, where likewise it was not happening before.
I upgraded from 1.4 to 1.5 but there was no change.
Please help - these errors have totally hamstrung our project!
Recent modules we installed whereafter we started running into these problems:
- webform_entity
- amazons3
- amazons3_cors
- composer_manager
- profile2
- field_permissions
However, we just reverted everything back to before these modules were installed, and having the same errors.
Comments
Comment #1
amaisano CreditAttribution: amaisano commentedReverted far enough back to recreate my steps, and was unable to reproduce.
Comment #2
tejasvi.c.h CreditAttribution: tejasvi.c.h commentedJust tried to figure out the cause of this issue and I observed problem in initializing $types = media_display_types() in line 35 of media/includes/media.admin.inc.
media_display_types() is defined in media.module, which returns the list of display types by invoking all the hooks of 'media_display_types'.
Media module's own implementation of this hook resides in media/media.media.inc file, but it was not available in media.module since 'media/media.media.inc' is not included in media.module.
I Just included below line of code at line 27 of media.module which worked for me.
require_once (dirname(__FILE__) . '/media.media.inc');
Comment #3
amaisano CreditAttribution: amaisano commentedanonymizing error details
Comment #4
sumit.prajapati CreditAttribution: sumit.prajapati as a volunteer and at Srijan | A Material+ Company for Srijan | A Material+ Company commentedWhen we are upgrade php 5.5 to php7.3 then we have got this error -
Function name must be a string in media_admin() (line 89 of media/includes/media.admin.inc)
#2 its working for me.
Comment #5
joseph.olstadTagging this as a php7.3 compatibility issue.
Need a patch to be made off of #2
Comment #6
joseph.olstadpatch please? then we can run automated tests on it
Comment #7
joseph.olstadStill waiting for a patch as described. Thanks.
Comment #8
joseph.olstadon radar, patch would help if someone wants to pitch in for the win.
Comment #10
joseph.olstad