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!!
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-05-24 12:57 pm (UTC)(link)
The 64 limit on trust groups (or 62, or whatever the exact limit on Dreamwidth is) is one that jumps to mind immediately.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-05-24 01:51 pm (UTC)(link)
http://www.dreamwidth.org/support/faqbrowse.bml?faqid=77 (Sorry, they're called access filters on DW. You can have up to 60-something, as opposed to the 30 friends groups you could have on LiveJournal code.)
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-05-24 02:06 pm (UTC)(link)
Probably 0, because the code expects a 64-bit integer just about everywhere else, so the net result is that you'll break access groups completely.

Really, you need a 64-bit environment, not a 32-bit one. If you want to stick with 32-bit, your best starting point is LJ code, not DW.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-05-24 02:49 pm (UTC)(link)
http://wiki.dwscoalition.org/notes/Suggested_Server_Requirements, which is linked from http://wiki.dwscoalition.org/notes/Category:Dreamwidth_Installation. If you have a wiki account (you can create one using OpenID authentication), you can talk to foxfirefey to get edit privs and add whichever entries or links you think are missing.

I don't have answers to the rest of your questions, I'm not a MySQL admin.
Edited 2009-05-24 14:51 (UTC)