NationStates Jolt Archive


Empty region errors

Ballotonia
19-10-2003, 14:20
I'm noticing the following errors when investigating an empty region.

XML Feed:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Invalid xml declaration. Line 14, Position 20


Dynamic::parse('<?xml version="1.0"?>^J^J<REGIONINFO>^J^J<NAME>@@$region->query(\'na...', undef, 'HASH(0x911ce58)') called at /home/nation/public_html/cgi-bin/Dynamic.pm line 275
-------------------^

Region Control page:
^J<...', 'Nation=HASH(0x902f960)', 'HASH(0x90233ac)') called at /home/nation/public_html/cgi-bin/Dynamic.pm line 275 Dynamic::generate_page('Nation=HASH(0x902f960)', 'region_control', 'HASH(0x90233ac)') called at /home/nation/public_html/cgi-bin/index.cgi line 323 Apache::ROOT::cgi_2dbin::index_2ecgi::handler('Apache=SCALAR(0x8fb3120)') called at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache/Registry.pm line 143 eval {...} called at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache/Registry.pm line 143 Apache::Registry::handler('Apache=SCALAR(0x8fb3120)') called at (eval 225) line 0 eval {...} called at (eval 225) line 0 ] > UN Delegate can access Regional Control.

Ballotonia
Qaaolchoura
19-10-2003, 16:04
Maybe the XML feed drops regions before the UN update?

Out of curiousity, what motivated you too look at empty regions anywhen?
Phoebos
19-10-2003, 17:46
More likely, the code that returns the number of nations so it can query them is encountering problems when it returns a null value.

However, I Qaaol's question is a good one... what's there to look at in an empty region?
Trixia
19-10-2003, 18:24
I'd say the fact it's a empty region causes it to crash. Like P and Q have said.
Ballotonia
19-10-2003, 19:50
Out of curiousity, what motivated you too look at empty regions anywhen?

To see who the delegate was that griefed it into oblivion, the number of endorsements it had, and which nations were banned / left on the banlist... stuff like that. When the regional happenings is spammed with a puppet, that kind of information can be obscured. These pages above should however still provide this information if they were functioning properly.

Ballotonia
Qaaolchoura
19-10-2003, 20:46
Why not just use:

http://www.nationstates.net/cgi-bin/index.cgi/page=display_nation/page=region_control/region=REGION_NAME?
Ballotonia
19-10-2003, 21:07
I do. That's one of the pages that shows an error when the region is empty...

See first post in this thread.

Ballotonia
SalusaSecondus
20-10-2003, 00:39
Shakes his finger at the code.

Tsk, tsk, tsk, you aren't supposed to do that.

Ok, I'll pass theword on. This should be fixed.

SalusaSecondus
Tech Modling