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.
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.
This blog is for work done for academic departments which does not fall under other categories.
|<< <||Current||> >>|