Not really off topic but I'm short on ideas.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Not really off topic but I'm short on ideas.
« on August 30th, 2011, 06:03 PM »
OK, so in the setup I've been working on, there's a Addons/ folder in the same place where Sources and Themes are, and there's a global variable called $addonsdir that maintains its path. So far, so good.

Said variable is populated on install, editable in admin, but even though it exists and has content, is_dir returns false, as does opendir.

Were this a Linux host, I'd assume chmod was at fault, but it's on my PC, via WampServer. Anyone got any ideas WTF is wrong?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
The way it's meant to be

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Not really off topic but I'm short on ideas.
« Reply #8, on September 1st, 2011, 01:27 AM »
Amazing what fresh eyes will do. The path was actually set wrong even though I swear I'd set it right, but then I found a bunch of other issues that prevented it from working, like some things I didn't realise that libxml (which underpins SimpleXML) does, like implicitly attempt to validate XML files given to it, and I don't have a complete DTD yet with which to set out such.

(Not that I really want to write the DTD, because I know it's going to be a pain in the arse to write, but still, it will have to be done sometime.)

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Not really off topic but I'm short on ideas.
« Reply #10, on September 1st, 2011, 02:47 AM »
Or turn off validation and do it by the seat of your pants :P

The structure is pretty complicated at its fullest, so I'd rather hand it over to SimpleXML to do the heavy lifting (and it means that Subs-Package can mostly be retired, too)