1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Server errors after 1.0.4 upgrade

Discussion in 'Media Gallery Resolved Bugs' started by thomas1, Apr 14, 2015.

  1. thomas1

    thomas1 Member

    After upgrading to XMG 1.0.4 we receive the following error when searching for media:

    ErrorException: Fatal Error: Call to undefined method XenGallery_Search_DataHandler_Media::setViewStateChange() - library/XenGallery/Search/DataHandler/Media.php:314
    Generated By: Unknown Account, 6 minutes ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
      ["url"] => string(55) "http://www.****.com/forum/search/?type=xengallery_media"
      ["_GET"] => array(1) {
        ["type"] => string(16) "xengallery_media"
      ["_POST"] => array(0) {
    How can this be fixed?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That could indicate missing or corrupt files.

    Try downloading a new .zip and uploading the files again.
    thomas1 likes this.
  3. thomas1

    thomas1 Member

    Thanks Brogan, that did the trick!
  4. Chris D

    Chris D XenForo Developer Staff Member

    Are you sure? :)

    It is actually a bug.

    Though if you switch this option off, you'll no longer see it:


    Also if you uploaded the file from the last version, that will fix it too.

    The specific code in question is in library/XenGallery/Search/DataHandler/Media.php

  5. thomas1

    thomas1 Member

    Yes Chris, I can access the search form, search for media and receive no more server errors. Perhaps someone has already updated the zip file?
  6. AutoMaverick

    AutoMaverick Member

    No the download file is not updated. Thanks to google search i found this thread and updated the media.php file as quoted by @Chris D above. It worked post updation.

Share This Page