Archives for: June 2012, 05

05/06/12

Permalink 04:06:39 pm, by sarneil, 52 words, 102 views   English (CA)
Categories: Activity log; Mins. worked: 30

etcl : bug in sidebar of what's new page

On the what's new page, the invocation of get_sidebar() throws the following error:

Fatal error: Call to undefined function ec3_get_events() in /etcl/www/wordpress/wp-content/themes/etcl/sidebar.php on line 28

I've temporarily commented out the call until I have a chance to debug the code in that file.

Permalink 02:39:44 pm, by sarneil, 351 words, 81 views   English (CA)
Categories: Activity log; Mins. worked: 360

etcl : initial attempt to work out navigation in ETCL theme in WP3

In the instance of the ETCL site using the ETCL theme in WP 3, the links in the navbar failed. They all just went to the page.php file. I spent most of the day trying to figure out how to get the links in the /nav.php file to work properly. I :
- investigated the settings in the .htaccess file but dismissed that as a likely solution because the default theme uses the same .htaccess file and it works perfectly.
- tried to figure out how the default theme works by deliberately introducing errors or renaming files, but I can't get that instance to break no matter what I do, so haven't learned much about what makes it work
- tried using various versions of the URL for the pages in the ETCL theme, and fiddled with the permalink settings for that theme too; the various forms of failure were not instructive to me.

I finally hit on the idea of comparing the settings in the wp-admin interface for the pages in the production 2.x instance and the dev 3.x instance. In the 3.x instance, I went to the wp-admin, chose Pages, selected the page I wanted and in the right column selected the Template from the drop-down list, then chose update.
For the staff, projects and contact pages I selected the template with the matching name.
For partnerships, there was no similarly named template, so I used the publications template, which is what the 2.x instance used. That displays the content correctly, so is presumably correct.
For "What's New" there is a similarly named template, but when I use that, no content is generated. In the 2.x instance, the What's New template does generate content, so I'll need to look at the files and compare them I guess.

I'm not sure why I had to manually assign those pages to the templates.

I dread trying to figure out why all the links to posts (the nav page links were all to "pages" which are a special class of posts) fail in the ETCL theme, yet work in the default theme.

Depts

This blog is for work done for academic departments which does not fall under other categories.

Reports

Categories

June 2012
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

XML Feeds