Digital Point Search

Digital Point Search [Paid] 2.0.0

No permission to buy ($150.00)
I have tried to install it, shorly after uploading the xml this one came up: (installation didn't get through)

Fatal error: Can't use function return value in write context in /var/www/web1/html/xxx/forum/library/DigitalPointSearch/Model/User.php on line 14 Fatal error: Class declarations may not be nested in /var/www/web1/html/xxx/forum/library/XenForo/Error.php on line 10

I have to rename the folder in /library, /DigitalPointSearch/, that the error500 goes away. Uninstalling doesn't work, because when I rename it back, I can't access the AP, there is also the error500.
 
PHP Version 5.3.3-7+squeeze17
Strange... maybe an issue with old versions of PHP or something.

In the DigitalPointSearch/Model/User.php file, if you change this line:

PHP:
$hasChangeLog = isset(XenForo_Application::get('addOns')['dpUserChangeLog']);

to this:

PHP:
$hasChangeLog = (isset(XenForo_Application::get('addOns')['dpUserChangeLog']) ? true : false);

Does it fix it?
 
No :(

Still: Uploading the xml...

And then after some seconds:

Fatal error: Can't use function return value in write context in /var/www/web1/html/xxx/forum/library/DigitalPointSearch/Model/User.php on line 14 Fatal error: Class declarations may not be nested in /var/www/web1/html/xxx/forum/library/XenForo/Error.php on line 10
 
No :(

Still: Uploading the xml...

And then after some seconds:

Fatal error: Can't use function return value in write context in /var/www/web1/html/xxx/forum/library/DigitalPointSearch/Model/User.php on line 14 Fatal error: Class declarations may not be nested in /var/www/web1/html/xxx/forum/library/XenForo/Error.php on line 10
Okay, what if you change that line to this?

PHP:
if (isset(XenForo_Application::get('addOns')['dpUserChangeLog']))
{
    $hasChangeLog = true;
}
else
{
    $hasChangeLog = false;
}
 
Really don't know what's going on with your PHP, but what if you simplify it down to this?

PHP:
$addOns = XenForo_Application::get('addOns');
if (isset($addOns['dpUserChangeLog']))
{
    $hasChangeLog = true;
}
else
{
    $hasChangeLog = false;
}
 
Gotta whole bunch of these errors. Disabling for now.

ErrorException: Array to string conversion - library/XenForo/Search/SourceHandler/MySqlFt.php:63 Generated By: DRE, 9 minutes ago Stack Trace #0 [internal function]: XenForo_Application::handlePhpError(8, 'Array to string...', '/home/blah/publi...', 63, Array) #1 /home/blah/public_html/library/XenForo/Search/SourceHandler/MySqlFt.php(63): implode(' ', Array) #2 /home/blah/public_html/library/XenForo/Search/Indexer.php(44): XenForo_Search_SourceHandler_MySqlFt->insertIntoIndex('report', 1, '', 'This is a SCAMM...', 1320274061, Array, '', Array) #3 /home/blah/public_html/library/DigitalPointSearch/Search/DataHandler/Report.php(31): XenForo_Search_Indexer->insertIntoIndex('report', 1, '', 'This is a SCAMM...', 1320274061, Array, '', Array) #4 /home/blah/public_html/library/XenForo/Search/DataHandler/Abstract.php(238): DigitalPointSearch_Search_DataHandler_Report->_insertIntoIndex(Object(XenForo_Search_Indexer), Array, NULL) #5 /home/blah/public_html/library/DigitalPointSearch/Search/DataHandler/Report.php(91): XenForo_Search_DataHandler_Abstract->insertIntoIndex(Object(XenForo_Search_Indexer), Array) #6 /home/blah/public_html/library/DigitalPointSearch/Search/DataHandler/Report.php(73): DigitalPointSearch_Search_DataHandler_Report->quickIndex(Object(XenForo_Search_Indexer), Array) #7 /home/blah/public_html/library/XenForo/Deferred/SearchIndex.php(72): DigitalPointSearch_Search_DataHandler_Report->rebuildIndex(Object(XenForo_Search_Indexer), 0, 500) #8 /home/blah/public_html/library/XenForo/Model/Deferred.php(252): XenForo_Deferred_SearchIndex->execute(Array, Array, 9.99999690056, '') #9 /home/blah/public_html/library/XenForo/Model/Deferred.php(378): XenForo_Model_Deferred->runDeferred(Array, 9.99999690056, '', false) #10 /home/blah/public_html/library/XenForo/Model/Deferred.php(331): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false) #11 /home/blah/public_html/library/XenForo/ControllerAdmin/Tools.php(147): XenForo_Model_Deferred->run(true, NULL, '', false) #12 /home/blah/public_html/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Tools->actionRunDeferred() #13 /home/blah/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #14 /home/blah/public_html/admin.php(13): XenForo_FrontController->run() #15 {main} Request State array(3) { ["url"] => string(43) "https://8th.us/admin.php?tools/run-deferred" ["_GET"] => array(1) { ["tools/run-deferred"] => string(0) "" } ["_POST"] => array(3) { ["redirect"] => string(48) "https://8th.us/admin.php?tools/rebuild&success=1" ["execute"] => string(1) "1" ["_xfToken"] => string(8) "********" } }
 
If you uninstall the addon (don't need to delete the files), then in the Install.php file, if you change this:
PHP:
if (XenForo_Application::get('options')->enableElasticsearch)
{
    $db->query("INSERT IGNORE INTO `xf_content_type_field` (`content_type`, `field_name`, `field_value`) VALUES ('conversation', 'search_handler_class', 'DigitalPointSearch_Search_DataHandler_Conversation')");
}
$db->query("INSERT IGNORE INTO `xf_content_type_field` (`content_type`, `field_name`, `field_value`) VALUES ('report', 'search_handler_class', 'DigitalPointSearch_Search_DataHandler_Report')");

to this:
PHP:
if (XenForo_Application::get('options')->enableElasticsearch)
{
    $db->query("INSERT IGNORE INTO `xf_content_type_field` (`content_type`, `field_name`, `field_value`) VALUES ('conversation', 'search_handler_class', 'DigitalPointSearch_Search_DataHandler_Conversation')");
    $db->query("INSERT IGNORE INTO `xf_content_type_field` (`content_type`, `field_name`, `field_value`) VALUES ('report', 'search_handler_class', 'DigitalPointSearch_Search_DataHandler_Report')");
}

Just realized the Report content type (like Conversations) aren't going to work with the MySQL search (would need Elastic Search for those two content types).
 
Okay I did what you said and did a search for a term in conversations and it did not come up in server logs. No conversations came up in search however. Do I need to rebuild caches again or does conversation search just not work without Xenforo Enhanced Search? What is the other content type you said won't work?
 
Got this error when clicking on "Areas" on someone's profile page tab.

Zend_Cache_Exception: Datas must be string or set automatic_serialization = true - library/Zend/Cache.php:209 Generated By: DRE, A moment ago Stack Trace #0 /home/blah/public_html/library/Zend/Cache/Core.php(360): Zend_Cache::throwException('Datas must be s...') #1 /home/blah/public_html/library/DigitalPointSearch/Model/Member.php(31): Zend_Cache_Core->save(Array, 'post_areas94', Array, 3600) #2 /home/blah/public_html/library/DigitalPointSearch/ControllerPublic/Member.php(11): DigitalPointSearch_Model_Member->getPostAreas(94) #3 /home/blah/public_html/library/XenForo/FrontController.php(347): DigitalPointSearch_ControllerPublic_Member->actionPostAreas() #4 /home/blah/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #5 /home/blah/public_html/index.php(13): XenForo_FrontController->run() #6 {main} Request State array(3) { ["url"] => string(173) "https://8th.us/go/dawn.94/post-area...04460a23452e1a0498b92086&_xfResponseType=json" ["_GET"] => array(4) { ["_xfRequestUri"] => string(12) "/go/dawn.94/" ["_xfNoRedirect"] => string(1) "1" ["_xfToken"] => string(53) "1,1389415152,f72006f73934f85f04460a23452e1a0498b92086" ["_xfResponseType"] => string(4) "json" } ["_POST"] => array(0) { } }
 
That worked. I went into template modifications and removed the conversation and reports tabs.
 
Top Bottom