Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months, 1 week ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

reloading child theme causes errors with loading infinity functions

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 9 months ago by Jonathan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 30, 2014 at 3:51 pm #4949
    Jonathan
    Participant

    I’m using a child theme of cbox-theme, and I’ve been getting some strange behavior when I reload my theme. When I select a different theme in the dashboard, then select my child theme again, I get a white screen of death. Debug.log shows the error:

    Call to undefined function infinity_get_header() in /path/to/my-theme/templates/homepage-template.php on line 11

    I have a feeling that somehow my child theme is being loaded before cbox-theme or infinity, and thus PHP doesn’t yet have infinity_get_header or any other infinity functions, so it fails. How can I fix this?

    July 30, 2014 at 11:41 pm #4953
    Ray
    Keymaster

    @jreeve – Took a look at the MLA theme on Github and it appears the style.css is missing the header info letting WordPress know that the theme is a child of cbox-theme.

    Read the “Creating A Child Theme” section in this guide:
    https://commonsinabox.org/documentation/themes/developer-guide

    I’m guessing that when you’re using SASS to generate your CSS, it’s deleting the CSS header info. Perhaps you can create your custom CSS as a separately-named file and then use @import to include this generated CSS file in the main style.css.

    Hopefully that should address your issues with the CBOX / Infinity theme not loading its files first.

    July 31, 2014 at 2:59 pm #4954
    Jonathan
    Participant

    @Ray, thanks! That solved the issue. It was just missing this header.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register