I have been getting some server errors for a month now. I didn't have time to write about it. But this week i am not busy so i am making a thread. The problem is i'm not sure if the server errors are coming from your "Dislike Add-on" or another add-on from xenforo. I have disabled some add-ons but i have about 40 add-ons so i am not sure which add-ons it is coming from. The reason i am writing this thread is because in the server errors i see the word "dislike" So i think maybe it is coming from dislike add-on. Anyways here is the server error: Offset 1 Offset 2 I have many of the same errors in my admin panel. Is this error coming from the dislike add-on? Thanks,
It seems like Dislike add-on bug. So we will check and have an update version to solve these errors asap. Regards,
Hello. After dislike update, it work fine but It seems the dislike bug has return. Here is error code Code: ErrorException: Undefined offset: 2 - library/XenGallery/Model/Media.php:3170 Generated By: Unknown Account, 28 minutes ago Stack Trace #0 /home/website/public_html/library/XenGallery/Model/Media.php(3170): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/website...', 3170, Array) #1 /home/website/public_html/library/XenGallery/Model/Media.php(1067): XenGallery_Model_Media->getVideoThumbnailUrlFromParts(Array) #2 /home/website/public_html/library/Brivium/Dislike/Model/Media.php(7): XenGallery_Model_Media->prepareMedia(Array) #3 /home/website/public_html/library/XenGallery/Model/Media.php(1130): Brivium_Dislike_Model_Media->prepareMedia(Array) #4 /home/website/public_html/library/XenGallery/ControllerPublic/Category.php(75): XenGallery_Model_Media->prepareMediaItems(Array) #5 /home/website/public_html/library/XenForo/FrontController.php(347): XenGallery_ControllerPublic_Category->actionIndex() #6 /home/website/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #7 /home/website/public_html/index.php(13): XenForo_FrontController->run() #8 {main} Request State array(3) { ["url"] => string(73) "http://website.com/media/categories/cars.39/?order=view_count&page=19" ["_GET"] => array(2) { ["order"] => string(10) "view_count" ["page"] => string(2) "19" } ["_POST"] => array(0) { } } Delete... Close
i am still getting these errors, is it brivium add-on? Code: Error Info ErrorException: Undefined offset: 1 - library/XenGallery/Model/Media.php:1094 Generated By: Unknown Account, Today at 8:03 AM Stack Trace #0 /home/forum/public_html/library/XenGallery/Model/Media.php(1094): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/forum...', 1094, Array) #1 /home/forum/public_html/library/Brivium/Dislike/Model/Media.php(7): XenGallery_Model_Media->prepareMedia(Array) #2 /home/forum/public_html/library/XenGallery/Model/Media.php(1158): Brivium_Dislike_Model_Media->prepareMedia(Array) #3 /home/forum/public_html/library/XenGallery/ControllerPublic/Media.php(51): XenGallery_Model_Media->prepareMediaItems(Array) #4 /home/forum/public_html/library/Brivium/DownloadAlbum/ControllerPublic/Media.php(11): XenGallery_ControllerPublic_Media->actionIndex() #5 /home/forum/public_html/library/XenForo/FrontController.php(351): Brivium_DownloadAlbum_ControllerPublic_Media->actionIndex() #6 /home/forum/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #7 /home/forum/public_html/index.php(13): XenForo_FrontController->run() #8 {main} Request State array(3) { ["url"] => string(69) "http://forum.com/media/?order=rating_weighted&type=site&page=2206" ["_GET"] => array(3) { ["order"] => string(15) "rating_weighted" ["type"] => string(4) "site" ["page"] => string(4) "2206" } ["_POST"] => array(0) { } } . .
this is bug of XenGallery. you can turn off the dislike add-on to confirmation that. fix bug: open file Media.php in /library/XenGallery/Model/Media.php go to line 1093 to line 1102 existing code: Code: preg_match('/\[media=(.*?)\](.*?)\[\/media\]/is', $media['media_tag'], $parts); $media['mediaSite'] = "$parts[1].$parts[2]"; $videoThumbnail = $this->getVideoThumbnailUrlFromParts($parts); $media['thumbnailUrl'] = $videoThumbnail; if (!$videoThumbnail) { $media['noThumb'] = true; } change to Code: if(preg_match('/\[media=(.*?)\](.*?)\[\/media\]/is', $media['media_tag'], $parts)) { $media['mediaSite'] = "$parts[1].$parts[2]"; $videoThumbnail = $this->getVideoThumbnailUrlFromParts($parts); $media['thumbnailUrl'] = $videoThumbnail; if (!$videoThumbnail) { $media['noThumb'] = true; } }
ok you are right in first part, it is not bug in dislike add-on i found problem, problem was 2 media embed videos did not embed correctly, so i delete the 2 media video, and now errors stop ok thank you every for help. problem is fix now, . .