Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
FYI: Parent Theme Call in Child is Case Sensitive!
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 7, 2015 - 4:59 pm

FYI Only, for anyone wondering why certain templat files my not be loading afyer creating a theme file...

I discovered the call to the parent theme in the Child's spTheme.txt is case sensitive!

The default spTheme.text bundled in the Reboot Child Framework reads:

Simple:Press Theme Title: Reboot Child Framework
Parent: reboot
Version: 1.0.0

Unzipping the Reboot 1.01 Parent download results in the folder /forum-themes/reboot with an spTheme.txt file that reads:

Simple:Press Theme Title: Reboot
Version: 1.0.1

I got my child theme working by renaming the parent theme folder to /Reboot, and capitalizing the Child Theme spTheme.txt to read:

Simple:Press Theme Title: rebootkid
Parent: Reboot
Version: 1.0.1

Before doing this, I received notices on the front end of the forums indicating template files were missing. the only templates that displayed were shild templates I had modified in the child theme folder.

Hope this makes sense and helps anyone encountering the same issue...

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 10:51 pm

absolutely!  most things in php and unix are case sensitive...  thanks for bringing up in case others have same issue...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 15, 2015 - 1:19 pm

OK. I was just about to post the mess below. But before I did, I resolved the issue by de/reactivating the child theme. So, disregard. No reply necessary.

I figured I would just leave this here with my resolution for anyone who might be struggling with this same issue, and actually searching for an answer.

Note to All: When in doubt after making changes, deactivate and reactivate theme!cool

+++++++++++++++++++++++++

@ike mentioned in another topic that this issue (capitalized theme root directory) has been addressed in the next update for Reboot.

To prepare our site, and ensure it works when I install that update, I did the following (on our dev install), but child theme is now breaking:

1. Changed the parent theme folder name to /reboot  (was Reboot)

2. Edited child theme rebootkid/spTheme.text to call Parent: reboot  (was Reboot)

(Got missing templates notice when visiting forums.)

3. Edited /reboot/spTheme.text to read Simple:Press Theme Title: reboot   (was Reboot)

So all references to parent theme and the theme folders are all lower case.

But I now get messages like this, on all devices:

[spHead.php] - Template File Not Found

 

To clarify. Earlier, I had to capitalize the /Reboot folder to get my child theme working since the child framework called Reboot, not reboot. Update apparently has files and references lower case, but after my changes, the child theme breaks.

Hope I'm being clear, any suggestions?

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 15, 2015 - 2:50 pm

Hey Jim, glad you got it running, but just to clarify it's actually the call to the parent that has been fixed in the child theme framework. It's now Parent: reboot instead of Parent: Reboot.

This change is already in effect so anyone who downloads the child theme framework shouldn't have the same problem. Thanks for leaving the information in!

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 15, 2015 - 3:11 pm

Ike said
...it's actually the call to the parent that has been fixed in the child theme framework. It's now Parent: reboot instead of Parent: Reboot.

Right, that's the change I just made since I had previously capitalized the the /reboot folder to get it working.

Just wanted to prepare for the update, in case I forget why it broke, which I'm sure it would have.

Thanks for confirming we're on the same page now.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 15, 2015 - 8:27 pm

sounds good...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626