Duplicate Entry In Debug Log

nate
@nate
11 years ago
917 posts
I keep getting error and incomplete pages because of an attempt to create a duplicate entry into the debug log.

I'm not even sure what's being debugged. I have gone through all the "fedbug" code I can find to comment them out, yet every time I pull up certain pages I get the debug error.

The log data looks like this:
Array
(
    [0] => xtDJLicense
    [1] => Array
        (
            [jrcore_list_function_call_is_active] => 1
            [search] => Array
                (
                    [0] => _item_id in 
                    [1] => _profile_id IN (SELECT SQL_SMALL_RESULT `_item_id` FROM jr_jrprofile_item_key WHERE `key` = 'profile_quota_id' AND `value` IN(1,2,3))
                )

            [limit] => 6
            [template] => xtDJLicense_stems.tpl
            [order_by] => Array
                (
                    [_created] => DESC
                )

            [module] => xtDJLicense
        )

)

updated by @nate: 03/15/14 08:10:49PM
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
You are not getting any data into the "[0] => _item_id in " part. You'd need to remove that part of the query, or get a valid set of ids in there.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/11/14 03:31:43PM
nate
@nate
11 years ago
917 posts
More than anything you just taught me how to read these entries, which is like teach me to fish.

Thanks.
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
Oops, sorry.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
nate
@nate
11 years ago
917 posts
No, I mean thanx a lot.
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
I know, that's what I meant.

Thanks Nate.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
11 years ago
10,149 posts
Yeah Steve is correct - it is that first search condition where you have no value. All jrCore_db_search_item search conditions must be in the format:

[search field] [search condition] [search value]

If the value is missing it will cause an error, and the core will "log" what it saw to the Activity Log for you so you can inspect it and get an idea of what's going on.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
11 years ago
7,800 posts
Great point, how to read it. Hows this for the next guy:


"HowTo: Read the Debug Log"
https://www.jamroom.net/the-jamroom-network/documentation/howto/1653/howto-read-the-debug-log
paul
@paul
11 years ago
4,335 posts
Nice. It actually took me a long time get the hang of the fdebug tool so this should help others in the same boat.


--
Paul Asher - JR Developer and System Import Specialist

Tags