Fixed Server errors after 1.0.4 upgrade

thomas1

Well-known member
After upgrading to XMG 1.0.4 we receive the following error when searching for media:

Code:
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) {
  }
}

Delete...
Close

How can this be fixed?
 
Thanks Brogan, that did the trick!
Are you sure? :)

It is actually a bug.

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

upload_2015-4-14_9-55-13.webp

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
Change:
PHP:
$this->setViewStateChange('styleId', $options->xengalleryOverrideStyle);

To:

PHP:
$controller->setViewStateChange('styleId', $options->xengalleryOverrideStyle);
 
Back
Top Bottom