Non working delete feedback.
Division by zero
- XenForo_Application::handlePhpError() in XenTrader/DataWriter/Feedback.php at line 85
- XenTrader_DataWriter_Feedback->_postDelete() in XenForo/DataWriter.php at line 1645
- XenForo_DataWriter->delete() in XenTrader/ControllerPublic/Feedback.php at line 146
- XenTrader_ControllerPublic_Feedback->actionDelete() in XenForo/FrontController.php at line 310
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in /www/greyforum.ru/index.php at line 13
SOS! can not add a tip is not in Latin characters. Is the author has not provided such an option? Not all the people in the world of writing Latin
author big minus for hindsight
Good news !
Yeah I'm getting the same thing. Is there a temp fix for this?
I have to disable it on my forum until this is resolved.
$dw->set('rating', max(0, ($user['positive'] - $user['negative']) / max(1, $user['positive'] + $user['neutral'] + $user['negative']) * 100));
Robbo said:I haven't had time to get back to the bug reports. Do you get any errors or anything? What version of vbull are you coming from? Is there much feedback to report and does it appear to work for a while?
Can you quote this message and reply to it in the thread so if any issues are sorted other people will see them?
This is a design flaw from the old mod that I have unfortunely used here. The new version will be using my XenPlus library (yet to be released) which will add this option to the options how it is now but when using it it will toggle the mod active or deactive as a whole addon instead of a permission how it is now.hi slavik, currently i disabled xenTrader, but the link to send feedback stays on the profile popup (when you click on a username). its away as soon as you uncheck xentrader on the addon page maybe it should disapear as soon as you decide to not activate xentrader via the xentrader options.
keep up the good work, small donation is on its way.
So having a quick look at the code it was a fault in PHP?I think I've fixed the special characters problem.
// for php 5.3.5 and under
mb_ereg('<!DOCTYPE.+?>\s*<html><body>(.+)</body></html>', $doc->saveHTML(), $match);
$content = $match[0];
// for php 5.3.6+
//$nodes = $doc->getElementsByTagName('body');
//$content = $doc->saveXML($nodes->item(0));
Lack of testing on my part here. Thought I solved all division by 0 errors but apparently not. Thanks, will be in next release.I figured out how to fix it. Edit library\xentrader\datawriter\feedback.php
Go to line 85 and change the line to
PHP:$dw->set('rating', max(0, ($user['positive'] - $user['negative']) / max(1, $user['positive'] + $user['neutral'] + $user['negative']) * 100));
This ensures that the user's total feedback is at least 1 so you don't divide by 0.
Does the old mod you are using require URLs? This is part of the importer I couldn't test very well.VB 3.8. On import, i'm getting this:
Undefined index: query
- XenForo_Application::handlePhpError() in XenTrader/Importer/ITrader.php at line 310
- XenTrader_Importer_ITrader->_convertUrlToThreadId() in XenTrader/Importer/ITrader.php at line 241
- XenTrader_Importer_ITrader->stepFeedback() in XenForo/Importer/Abstract.php at line 77
- XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 166
- XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 218
- XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 161
- XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 310
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in /***********************************/forums/admin.php at line 13
if (!$parsed || empty($parsed['scheme']) || $parsed['scheme'] != 'http')
if (!$parsed || empty($parsed['scheme']) || $parsed['scheme'] != 'http' || !isset($parsed['query'])
Does the old mod you are using require URLs? This is part of the importer I couldn't test very well.
Try this. In file library/XenTrader/Importer/ITrader.php.
Find on line 302 (might be wrong line on my dev version but should at least be close).
And replace with...PHP:if (!$parsed || empty($parsed['scheme']) || $parsed['scheme'] != 'http')
PHP:if (!$parsed || empty($parsed['scheme']) || $parsed['scheme'] != 'http' || !isset($parsed['query'])
Thanks! Working now.missed a ')'. Put one at the end of that line.
if (!$parsed || empty($parsed['scheme']) || $parsed['scheme'] != 'http' || !isset($parsed['query']))
So having a quick look at the code it was a fault in PHP?
Did you find this solution from an article or bug report? Or just know it from experience? I would like to read up on it and get it into a release asap.Code:// for php 5.3.5 and under mb_ereg('<!DOCTYPE.+?>\s*<html><body>(.+)</body></html>', $doc->saveHTML(), $match); $content = $match[0]; // for php 5.3.6+ //$nodes = $doc->getElementsByTagName('body'); //$content = $doc->saveXML($nodes->item(0));
Lack of testing on my part here. Thought I solved all division by 0 errors but apparently not.
$dom = new Zend_Dom_Query(mb_convert_encoding($content, 'html-entities', 'utf-8'));
We use essential cookies to make this site work, and optional cookies to enhance your experience.