iCaspar / arras

Arras WordPress Theme
https://arrastheme.net
11 stars 6 forks source link

Homepage has lost all taxonomy terms for featured post areas #59

Closed AlexLockwood74 closed 6 years ago

AlexLockwood74 commented 6 years ago

Hi, been happily using Arras theme for a long while now, over two years, and today when I logged in I noticed my different home page featured post sections have lost all of their taxonomy terms for pulling from selected categories, which is probably the most useful thing in Arras for me.

Site is alexlockwood.co.uk, using Wordpress 4.9.1 on own-hosted platform. Any help?

iCaspar commented 6 years ago

@AlexLockwood74 it looks like you have project-ar2 (Arras 2.x) on that site. We have not made any changes at all affecting Arras 2. Is it possible that a plugin or other update has caused the taxonomy terms settings to be lost? Are you able to reset them?

AlexLockwood74 commented 6 years ago

Thanks for the quick reply. I've not added any new plugins (very basic, only have JetPack and Akismet) so don't think it's an update. How do I update? Or would it be best to update to Arras 3?

iCaspar commented 6 years ago

Unfortunately, at the moment there is no update available from Arras 2. I would not recommend using Arras 3. If you can reset the taxonomy terms from the Appearance > Options page, I'd go with that first. What's puzzling is the "all-of-a-sudden" nature of their being dropped, since apparently, nothing else on the site had changed.

If the taxonomy term selections are not available at all on the options page, that's even more curious. In that case, if you could attach a screenshot of what you see on your options page, that may be helpful as a first step toward figuring it out.

AlexLockwood74 commented 6 years ago

Ive reset all option settings, which has reset things like homepage layout. The other thing that has changed is that previously the tabs General | Home | Layout etc used to click through to different pages, but now (again 'all of a sudden') are simply like basic anchor links down the same page. The Taxonomy > Terms fields still don't work. Used to be search fields where typing in the first few words of a category would show them up for selection, now nothing, see attached.

screen shot 2017-12-19 at 14 39 32

What's also just appeared (I think) is this Import/Export section? Or maybe I just hadn't noticed it before.

screen shot 2017-12-19 at 14 43 41

The full text of that export section is:

{"version":"2.0.1-beta-dev","footer_message":"

Copyright Alex Lockwood Author | Pig in Thin Air | The Chernobyl Privileges. Powered by <a href=\"http:\/\/www.arrastheme.com\/project-ar2\/\">Project AR2<\/a> and <a href=\"http:\/\/www.wordpress.org\/\">WordPress<\/a>.<\/p>","archive_display":"quick","post_display":{"display_author":true,"post_author":true,"excerpt":false,"post_social":true,"post_cats":true,"post_tags":true,"single_thumbs":false},"relative_dates":true,"excerpt_limit":30,"nodebased_show_excerpts":false,"layout":"twocol-r","auto_thumbs":true,"sections":{"slideshow":{"enabled":true,"title":"","type":"slideshow","terms":[],"post_type":"post","taxonomy":"category","count":1},"featured-posts-1":{"enabled":true,"title":"Writing The Chernobyl Privileges: Bombs, Power, Secrets","type":"traditional","terms":[],"post_type":"post","taxonomy":"category","count":1},"featured-posts-2":{"enabled":true,"title":"On Reading and Writing","type":"node","terms":[],"post_type":"post","taxonomy":"category","count":9},"news-posts":{"enabled":false,"title":"New Writing, Theory","type":"line","terms":[],"post_type":"post","taxonomy":"category","count":"3"}},"fonts":[],"colors":[],"zones":{"home":{"hide_duplicates":false,"ignore_sticky":true}}}

iCaspar commented 6 years ago

@AlexLockwood74: Thanks for the screenshot.

The Import/Export section should have always been there. The information there is showing that the terms are empty. But why?

I can replicate the issue on a test install by setting

define( 'SCRIPT_DEBUG', true );

in the WP config.php file. But whether that is the case on your live site, you would have to check... and if so, how it got there is the question, because nothing in Arras or any legitimate reason should SCRIPT_DEBUG be true on a live site. So that's the first thing to check.

That said, it looks like Arras 2.0 has a bug in the theme's /library/admin/admin.php file:

screen shot 2017-12-19 at 11 01 17 am

should be

screen shot 2017-12-19 at 11 01 55 am

So the second thing would be to change there ar2-theme-options to jquery-tokeninput and see if that will resolve the issue. Here is a corrected version of the file (please make a backup of your current admin.php file just in case): https://gist.github.com/iCaspar/ca06fc46fc0ca08a1c9d4969c45bfdfa

AlexLockwood74 commented 6 years ago

Thanks Caspar, I've uploaded the new admin.php file and that has fixed it, the taxonomies are now showing correctly. All fine. Although I certainly did not edit the admin.php file though so don't know what caused it. Anyway, thanks. And looking forward to seeing Arras move forward.

iCaspar commented 6 years ago

Glad it's worked out for you.

AlexLockwood74 commented 6 years ago

The Options Tabs are now working out properly. The only thing missing is the Design options, there's no option now to change to left/right sidebar

screen shot 2017-12-20 at 16 40 34

But dont worry if you're super busy this is not a major problem for me.