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!!
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!!
no subject
#1/#2 are because Dreamwidth requires a 64-bit version of Perl and therefore Linux. Q is a 64 bit data type.
#3 sounds like you didn't create a DW::External::Site::Scribbld (or whatever, I'm tired) module, so it doesn't have all of the tools it needs to crosspost.
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)