The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]() Quote:
What I have done is set the warning messages off assert_options(ASSERT_ACTIVE, 0); // 0 off or 1 on in sphinxapi.php As far as I can see the assert errors are generated because the asserts all check to see if things are integers and some of the input defaults are either text strings numerics or text strings. These warnings don't seem to effect the output which seems to work pretty well. But with some of the more complex searches it is possible to produce array warning errors ie Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/sphinx.php on line 125 The line there looks like if (!can_moderate($docinfo[$sphinx_forumid_group]) AND i n_array($docinfo[$sphinx_userid_group], $Coventry)) So this warning implies that one of the items is the wrong datatype - checking back through the code on line 34 and 50 these are set to: $sphinx_forumid_group = 'group'; $sphinx_switch_group = 'group2'; //threadid $sphinx_userid_group = 'group3'; Is this the issue? Should they be numeric? For anyone interested this is now live at: www.digitalspy.co.uk/forums/ We have 11,158,584 Posts and 464,239 Threads. And the main data file is a little over 4Gb in size. It is still a work in progress but it does seem to produce the correct results ![]() Quote:
I'm not sure if this is an issue between 3.0.x and 3.5/3.6 but thought I would share my thoughts on this as it kept me on my toes and I now have a much better understanding of the way the code works ![]() PS the docinfo[$spinx????] elemets turn the group defaults into numerical output as required. I'm still not sure why the assert errors are being seen though will delve deeper ![]() PPS Well after more searching and playing I am no further forward as to why the assert warning errors are occuring. Trying to force the elements to be integers with intval breaks the code ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|