Fixed ErrorException: [E_WARNING] Attempt to read property "Data" on null src/addons/XFMG/Entity/MediaItem.php:1397

GameNet

Active member
Affected version
XFMG 2.3 Beta 7
Hi

I am receiving numerous numbers of errors in adminCP related to delete any embed media if the embed has broken media in XFMG beta 7

Error code:
Code:
ErrorException: [E_WARNING] Attempt to read property "Data" on null src/addons/XFMG/Entity/MediaItem.php:1397
Generated by: NICK97 May 17, 2024 at 1:06 PM
Stack trace
#0 src/addons/XFMG/Entity/MediaItem.php(1397): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/citiesmod...', 1397)
#1 src/XF.php(383): XFMG\Entity\MediaItem->XFMG\Entity\{closure}()
#2 src/XF/Mvc/Dispatcher.php(158): XF::triggerRunOnce(true)
#3 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(2604): XF\Mvc\Dispatcher->run()
#5 src/XF.php(533): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}
Request state
array(4) {
  ["url"] => string(12) "/inline-mod/"
  ["referrer"] => string(66) "https://cities-mods.com/media/categories/movies-trailer.38/page-13"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(10) {
    ["_xfToken"] => string(8) "********"
    ["hard_delete"] => string(1) "1"
    ["ids"] => array(1) {
      [0] => string(4) "4309"
    }
    ["type"] => string(10) "xfmg_media"
    ["action"] => string(6) "delete"
    ["confirmed"] => string(1) "1"
    ["_xfRedirect"] => string(66) "https://cities-mods.com/media/categories/movies-trailer.38/page-13"
    ["_xfRequestUri"] => string(43) "/media/categories/movies-trailer.38/page-13"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

here screenshot:

Screenshot 2024-05-17 at 1.13.06 PM.webp

Screenshot 2024-05-17 at 1.14.21 PM.webp
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFMG release (2.3.0 Beta 8).

Change log:
Fix Attempt to read property "Data" on null error
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom