jimmyb: (Default)
jimmyb ([personal profile] jimmyb) wrote in [site community profile] dw_dev2009-05-21 08:09 am
Entry tags:

3 Issues - Entry Posting & Cross-posting

So I finally started to play around with my DW-install and I've come across 3 issues so far.


Upon visiting http://www.mysite.com/manage/circle/add.bml?user=USERNAME or http://www.mysite.com/manage/circle/ you get the following error:

[Error: Invalid type 'Q' in pack at /home/dw/cgi-bin/DW/User/Edges/WatchTrust/Loader.pm line 276. @ deathnote]

The line previously read:

my $packfmt = "NH6H6QC"; # pack format

Changed to:

my $packfmt = "NH6H6NC"; # pack format

Now I really have no idea how the packfmt works, but changing the Q to an N fixes the issue...so maybe someone couple explain what it is, and how it works, and what the letters mean? And why using N fixes it...


When submitting a new entry, an error message came up. The entry still posts, but tags are not included in the new entry. Line 1492 in cgi-bin/LJ/Entry.pm.

The line previously read:

$row = pack("NNNQN", $item->{'posterid'}, $eventtime, $logtime, $sec,

Changed to:

$row = pack("NNNNN", $item->{'posterid'}, $eventtime, $logtime, $sec,

Again, another pack issue, and changing the Q to an N fixes the issue.

I setup my account to cross-post to Scribbld and when I attempted to cross-post, this error message was entered into the 'error' table in The Schwartz database:

Can't call method "pre_crosspost_hook" on an undefined value at /home/dw/cgi-bin/DW/External/XPostProtocol/LJXMLRPC.pm line 275.

That line reads:

$req = $extacct->externalsite->pre_crosspost_hook( $req );

Thanks for any help on the issues & I am really excited about this codebase!!

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org