On a fresh new install of wordpress (Installed: 3.6.1+dfsg-1~deb7u4)
on my Debian wheezy machine, I added a new theme that I downloaded
from the interwebs.  I unpacked it into /var/lib/wordpress/wp-content/themes
and some example new paths are:

/var/lib/wordpress/wp-content/themes/business-pro/
/var/lib/wordpress/wp-content/themes/business-pro/index.php

However the new theme does not show up in the admin (visiting url:
http://mdowney/wp-admin/themes.php)

I expected to see the new theme there and it is not.  There is only the
following two themes:

twentytwelve
twentythirteen

After some fishing around, I concluded that in fact, wordpress admin is
not looking in /var/lib/wordpress/wp-contents for the themes.

Maybe once a theme is installed and some pages use it (I wouldn't know,
I haven't got that far yet), then wordpress uses that path, but the admin
itself does not.

I am doing to try what a person above did, which is to copy the theme into
/usr/share/wordpress/wp-content/themes.

A test I did do was to move /usr/share/wordpress/wp-content/themes to 
themes.aside,
(while leaving /var/lib/wordpress/wp-content/themes in place) and indeed, there
is now only one theme twentythirteen and it has nothing to customize (the
customize page has no fields on it, although wp-admin does give you a
page for customizing.  I'm guessing that page should have several choices
like background colour, text colour for certain elements, etc).

So I hope this helps to understand this bug.

Aha, indeed, adding a symlink from 
/usr/share/wordpress/wp-content/themes/business-pro
-> /var/lib/wordpress/wp-content/themes/business-pro results in the theme 
showing up
in the admin.

I will be wary of the symlink, hopefully I won't forget that it is iffy if I run
into trouble when not using the admin.  Hmm, I wonder if it is the apache
config that makes symlinks "troublesome" according to some reports ...
That can be fixed in the apache config.  Although I suppose it's not terribly
secure, esp. if you allow editing of the themes from the web interface.

-- 
}{ Centre for Research and Experimental Development in Informatics Libre





Brenda J. Butler
b...@credil.org
+1 613 693 0684  #3202
F3018 - 283 Alexandre Taché
Gatineau (QC) J9A 1L8 CANADA
Sustainable Innovation // Innovation Durable


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to