Theme kills PHP
  • Running TangoCMS on lighttpd / php-cgi. OS is Arch Linux.

    I have a theme which was for use for whatever version of TangoCMS was released in 2009. 2.x something. Anyway, as far as I know the theming conventions haven't changed much since then. I've made it writable and placed it in assets/themes and it kills PHP on the themes settings page:

    2011-06-23 16:50:12: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Warning: DOMDocument::load(/srv/http/DOMAIN/html/assets/themes/ranger/details.xml): failed to open stream: Permission denied in /srv/http/DOMAIN/html/application/libraries/Theme.php on line 83
    PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/srv/http/DOMAIN/html/assets/themes/ranger/details.xml" in /srv/http/DOMAIN/html/application/libraries/Theme.php on line 83
    PHP Fatal error: Call to a member function getElementsByTagName() on a non-object in /srv/http/DOMAIN/html/application/libraries/Theme.php on line 84

    The only thing I could think of that might have been causing problems was non-standard characters, since the creator of the theme is Polish with the 'ł' character in his first name. I removed that though and replaced it with his alias, and still no luck.

    I could share the CSS files, but the author's rules on me using the theme has always been that I don't share the code. He's not a GNU. But judging by those errors, this is an xml / html thing, right? Just in case, I've made a pastebin of the files:
    http://pastebin.com/Bsn4Lghi
  • Morning,

    Take a look at the first PHP warning:

    >> PHP Warning: DOMDocument::load(/srv/http/DOMAIN/html/assets/themes/ranger/details.xml): failed to open stream: Permission denied

    The permissions set for this file is making it impossible for the user running the PHP scripts of TangoCMS to read this file, that'll be where the issue is :)

    >> I could share the CSS files, but the author's rules on me using the theme has always been that I don't share the code. He's not a GNU.

    If the site is going to be publicly accessible, then you're going to be distributing the CSS file and images anyway ;)
  • I don't know how I didn't spot that. I was sure the whole directory was accessible!

    Thanks for that!

    >> If the site is going to be publicly accessible, then you're going to be distributing the CSS file and images anyway

    That's what I said...



    While we're at it, is there anyway I can upload multiple media items? A lot of photos need to be uploaded...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Tagged