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 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.

functions.php

  • This topic has 6 replies, 4 voices, and was last updated 10 years, 4 months ago by Ray.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 28, 2014 at 4:07 am #5343
    Verena Kick
    Participant

    Hi,

    I thought I’d download the CBOX child theme, which worked normally. However, when I could not edit the header at all, I went to appearance -> editor and to the functions.php. I think I must have deleted something accidentally as now when I try to access my page only this message shows up:
    <b>Fatal error</b>: Call to undefined function infinity_get_header() in <b>/nfs/bronfs/uwfs/hw00/d62/ehntwrk/wordpress/wp-content/themes/cbox-child/functions.php</b> on line <b>12</b>

    What can I do to fix this?

    Thank you!

    December 28, 2014 at 3:32 pm #5344
    Scott Voth
    Keymaster

    Hi @vkick

    Do you have FTP access to your site?  If you think you might have corrupted your functions.php file, maybe you can replace it with a new version?  Or (more drastically) maybe you want to re-install the CBOX theme?  I am pinging @r-a-y and @haystack for their insight – it might be a different issue.

    December 28, 2014 at 4:19 pm #5345
    Verena Kick
    Participant

    Hi Scott, thanks for the quick reply!

    I just figured out that I have FTP access to my site (via filezilla) and I think I located the functions.php file within the cbox-child theme folder. How would I go about to replace it? Could I copy the functions.php from the parent theme? If so, how?

    And to re-install the CBOX theme, would I just delete the theme child and the parent folder from the wordpress theme folders? And would I than gain access to my wordpress site again and re-install the CBOX theme from there?

    Again, many thanks for your help!

    Verena

    December 28, 2014 at 4:31 pm #5346
    Verena Kick
    Participant

    AH! I just replaced the functions.php file and it worked!

    However, my initial issue remains. In the child theme, I cannot replace the header image. This grey screen (as seen in the screen shot) appears and I cannot click on files or upload any. Why does this happen?

    Again, thanks!

    Attachments:
    You must be logged in to view attached files.
    December 29, 2014 at 8:08 am #5348
    Christian Wach
    Participant

    @vkick Thank you for the report. I can confirm that this happens consistently when using CBOX Theme 1.0.9.


    @r-a-y
    @bowe your thoughts on this would be appreciated… Somehow, in the latest version, the overlay div is written into the markup *after* the dialog div, whereas in 1.0.8, it is written into the markup *before* the dialog, thus producing the effect as seen in the screenshot. This can be solved with a CSS hack, by setting .ui-dialog { z-index: 1000; } and .ui-widget-overlay { z-index: 999; } but this does not address the root cause.

    Additionally, there also seem to be a number of other, related issues with the uploader:

    1. when SCRIPT_DEBUG is false, the checkbox to “disable logo” has no width
    2. when closing the uploader dialog and switching to another option (say “Background Image”), the uploader (and indeed all JS-driven functionality) is broken because a JS error is thrown by _muDialog.dialog('destroy').remove();

    I’m not sure how deep this issue goes, i.e. is it worth papering over or should a more thorough audit of the causes be undertaken?

    December 29, 2014 at 10:18 am #5349
    Christian Wach
    Participant

    I have opened a PR for consideration at:

    https://github.com/cuny-academic-commons/cbox-theme/pull/224

    December 29, 2014 at 4:00 pm #5351
    Ray
    Keymaster

    I’ve added my thoughts here:
    https://commonsinabox.org/groups/help-support/forum/topic/theme-options-issues/page/3/#post-5350

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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