Problems uploading Prose Child Theme

Community Forums Forums General Discussion Problems uploading Prose Child Theme

This topic is: not resolved

Tagged: 

This topic contains 22 replies, has 10 voices, and was last updated by  NewSeasonDesign 1 year, 5 months ago.

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #12754

    lesadale
    Participant
    Post count: 7

    I just uploaded the Prose Child Theme on an existing website.  The theme loaded, but now I can no longer access the WP Dashboard.  Deleting the theme from cPanel, but need to know what happened.

    #12763

    Anita
    Participant
    Post count: 7341

    Did you upload Genesis first before uploading Prose? Also, did you upload via Appearance > Themes > Upload or did you use FTP?


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #12787

    NewSeasonDesign
    Participant
    Post count: 35

    I just had an issue with this too. I’m setting up a test site. I installed Genesis and updated it to the newest version. Then I uploaded the newest version of Prose (just downloaded it tonight). When I hit Activate, it told me there was a loop. I uploaded via Appearance > Themes.

    #12788

    nickthegeek
    Keymaster
    Post count: 751

    This is a known issue and the fix should be available very soon. Please log into my.studiopress.com and submit a ticket via the Get Help button. Thanks

    #12805

    ellenstevens
    Participant
    Post count: 32

    I’m experiencing a similar problem.  I received the loop message once, but have since continually been given the following message:

    “You do not have sufficient permissions to access this page.”

    I’ve created a help ticket.  Hopefully, I’ll hear something soon.

    #13275

    jdcpar5
    Participant
    Post count: 3

    Has anyone heard anything back on this issue?

    I tried to load and activate Prose on two of my sites, and I’m getting the same “You do not have sufficient permissions to access this page.” error. Same error also shows up when using the Live Preview link on the Appearance > Themes panel.  I submitted a ticket, just wondering if anyone found any workarounds?  Thanks

    #13284

    NewSeasonDesign
    Participant
    Post count: 35

    I submitted a help ticket in the My StudioPress area, and they emailed me a fix for it.

    #13309

    Susan
    Moderator
    Post count: 8455

    I submitted a help ticket in the My StudioPress area, and they emailed me a fix for it.

    Would you be able to include the details of the fix for other users?


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #13317

    NewSeasonDesign
    Participant
    Post count: 35

    He actually sent me a php file. I can paste here what’s in it and where it goes.

    For now please fix your site by accessing it via FTP or control panel based file manager and replace the wp-content/themes/prose/lib/functions/update.php file with the attached file.

    <?php
    /**
    * Handles Prose updates.
    *
    * @since 1.5.0
    * @author StudioPress
    * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
    * @link http://www.studiopress.com/themes/prose
    */

    /**
    * Pings http://api.genesistheme.com/update-themes/prose/ asking if
    * a new version of this theme is available.
    *
    * If not, it returns false.
    *
    * If so, the external server passes serialized data back to this function,
    * which gets unserialized and returned for use.
    *
    * @since 1.5.0
    *
    * @uses CHILD_THEME_VERSION Prose version string
    *
    * @global string $wp_version WordPress version string
    * @return mixed Unserialized data, or false on failure
    */
    function prose_update_check() {

    global $wp_version;

    /** If updates are disabled */
    if ( ! current_theme_supports( ‘prose-auto-updates’ ) )
    return false;

    /** Get time of last update check */
    $prose_update = get_transient( ‘prose-update’ );

    /** If it has expired, do an update check */
    if ( ! $prose_update ) {
    $url = ‘http://api.genesistheme.com/update-themes/prose/’;
    $options = apply_filters(
    ‘prose_update_remote_post_options’,
    array(
    ‘body’ => array(
    ‘prose_version’ => CHILD_THEME_VERSION,
    ‘genesis_version’ => PARENT_THEME_VERSION,
    ‘wp_version’ => $wp_version,
    ‘php_version’ => phpversion(),
    ‘uri’ => home_url(),
    ‘user-agent’ => “WordPress/$wp_version;”,
    ),
    )
    );

    $response = wp_remote_post( $url, $options );
    $prose_update = wp_remote_retrieve_body( $response );

    /** If an error occurred, return FALSE, store for 1 hour */
    if ( ‘error’ == $prose_update || is_wp_error( $prose_update ) || ! is_serialized( $prose_update ) ) {
    set_transient( ‘prose-update’, array( ‘new_version’ => CHILD_THEME_VERSION ), 60 * 60 );
    return false;
    }

    /** Else, unserialize */
    $prose_update = maybe_unserialize( $prose_update );

    /** And store in transient for 24 hours */
    set_transient( ‘prose-update’, $prose_update, 60 * 60 * 24 );
    }

    /** If we’re already using the latest version, return false */
    if ( version_compare( CHILD_THEME_VERSION, $prose_update['new_version'], ‘>=’ ) )
    return false;

    return $prose_update;

    }

    /**
    * Upgrade the database to version 1500.
    *
    * @since 1.5.0
    *
    * @uses _genesis_update_settings()
    */
    function prose_update_1500() {

    /** Calculate new unitless line height */
    $body_line_height = absint( prose_get_design_option( ‘body_line_height’ ) ) / absint( prose_get_design_option( ‘body_font_size’ ) );

    /** Update Settings */
    _genesis_update_settings(
    array(
    ‘theme_version’ => ’1.5.0′,
    ‘db_version’ => ’1500′,
    ‘body_line_height’ => round( $body_line_height, 3 )
    ),
    PROSE_SETTINGS_FIELD
    );

    /** write CSS to media folder */
    prose_create_stylesheets();

    /** write custom.php to media folder */
    prose_create_custom_php();

    }

    /**
    * Upgrade the database to version 1502.
    *
    * @since 1.5.2
    *
    * @uses _genesis_update_settings()
    */
    function prose_update_1501() {

    /** Update Settings */
    _genesis_update_settings(
    array(
    ‘theme_version’ => ’1.5.1′,
    ‘db_version’ => ’1501′,
    ),
    PROSE_SETTINGS_FIELD
    );

    /** Regenerate combined CSS file */
    prose_create_stylesheets();

    }

    /**
    * Upgrade the database to version 1502.
    *
    * @since 1.5.2
    *
    * @uses _genesis_update_settings()
    */
    function prose_update_1502() {

    /** Update Settings */
    _genesis_update_settings(
    array(
    ‘theme_version’ => ’1.5.2′,
    ‘db_version’ => ’1502′,
    ),
    PROSE_SETTINGS_FIELD
    );

    /** Regenerate combined CSS file */
    prose_create_stylesheets();

    }

    add_action( ‘admin_init’, ‘prose_update’, 20 );
    /**
    * Update Prose to the latest version.
    *
    * This iterative update function will take a Prose installation, no matter
    * how old, and update its options to the latest version.
    *
    * @since 1.5.0
    *
    * @uses CHILD_DB_VERSION
    * @uses PROSE_SETTINGS_FIELD
    *
    * @return null Returns early if we’re already on the latest version.
    */
    function prose_update() {

    /** Don’t do anything if we’re on the latest version */
    if ( prose_get_fresh_design_option( ‘db_version’ ) >= CHILD_DB_VERSION )
    return;

    ###########################
    # UPDATE DB TO VERSION 1500
    ###########################
    if ( prose_get_fresh_design_option( ‘db_version’ ) < ’1500′ )
    prose_update_1500();

    ###########################
    # UPDATE DB TO VERSION 1502
    ###########################
    if ( prose_get_fresh_design_option( ‘db_version’ ) < ’1501′ )
    prose_update_1501();

    ###########################
    # UPDATE DB TO VERSION 1502
    ###########################
    if ( prose_get_fresh_design_option( ‘db_version’ ) < ’1502′ )
    prose_update_1502();

    do_action( ‘prose_update’ );

    }

    add_action( ‘prose_update’, ‘prose_update_redirect’ );
    /**
    * Redirects the user back to the design settings page, refreshing the data and
    * notifying the user that they have successfully updated.
    *
    * @since 1.5.0
    *
    * @uses genesis_admin_redirect()
    *
    * @return null Returns early if not an admin page.
    */
    function prose_update_redirect() {

    if ( ! is_admin() )
    return;

    genesis_admin_redirect( ‘design-settings’, array( ‘upgraded’ => ‘true’ ) );
    exit;

    }

    add_action( ‘admin_notices’, ‘prose_updated_notice’ );
    /**
    * Displays the notice that the design settings were successfully updated to the
    * latest version.
    *
    * @since 1.5.0
    *
    * @uses prose_get_design_option()
    *
    * @return null Returns early if not on the Design Settings page.
    */
    function prose_updated_notice() {

    if ( ! genesis_is_menu_page( ‘design-settings’ ) )
    return;

    if ( isset( $_REQUEST['upgraded'] ) && ‘true’ == $_REQUEST['upgraded'] )
    echo ‘<div id=”message” class=”updated highlight” id=”message”><p><strong>’ . sprintf( __( ‘Congratulations! You are now rocking Prose %s’, ‘prose’ ), prose_get_design_option( ‘theme_version’ ) ) . ‘</strong></p></div>’;

    }

    add_filter( ‘update_theme_complete_actions’, ‘prose_update_action_links’, 10, 2 );
    /**
    * Filters the action links at the end of an update.
    *
    * This function filters the action links that are presented to the
    * user at the end of a theme update. If the theme being updated is
    * not Prose, the filter returns the default values. Otherwise,
    * it will provide a link to the Prose Design Settings page, which
    * will trigger the database/settings upgrade.
    *
    * @since 1.5.0
    *
    * @param array $actions Existing array of action links
    * @param string $theme Theme name
    * @return string Removes all existing action links in favor of a single link.
    */
    function prose_update_action_links( $actions, $theme ) {

    if ( ‘prose’ != $theme )
    return $actions;

    return sprintf( ‘<a href=”%s”>%s</a>’, menu_page_url( ‘design-settings’, 0 ), __( ‘Click here to complete the upgrade’, ‘prose’ ) );

    }

    add_filter( ‘site_transient_update_themes’, ‘prose_update_push’ );
    add_filter( ‘transient_update_themes’, ‘prose_update_push’ );
    /**
    * Integrate the Prose update check into the WordPress update checks.
    *
    * This function filters the value that is returned when WordPress tries to pull
    * theme update transient data.
    *
    * It uses prose_update_check() to check to see if we need to do an update,
    * and if so, adds the proper array to the $value->response object. WordPress
    * handles the rest.
    *
    * @since 1.5.0
    *
    * @uses prose_update_check()
    *
    * @param object $value
    * @return object
    */
    function prose_update_push( $value ) {

    $prose_update = prose_update_check();

    if ( $prose_update )
    $value->response['prose'] = $prose_update;

    return $value;

    }

    add_action( ‘load-update-core.php’, ‘prose_clear_update_transient’ );
    /**
    * Delete Prose update transient after updates or when viewing the Dashboard -> Updates page.
    *
    * The server will then do a fresh version check.
    *
    * @since 1.5.0
    *
    */
    function prose_clear_update_transient() {

    delete_transient( ‘prose-update’ );

    }

    #13329

    jdcpar5
    Participant
    Post count: 3

    Thanks for posting that!  Unfortunately, that didn’t work for me, so just as a workaround until they fix this, I changed the contents of update.php to this:

    <code><?php
    /**
    * Handles Prose updates.
    *
    * @since 1.5.0
    * @author StudioPress
    * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
    * @link http://www.studiopress.com/themes/prose
    */

    /**
    * Pings http://api.genesistheme.com/update-themes/prose/ asking if
    * a new version of this theme is available.
    *
    * If not, it returns false.
    *
    * If so, the external server passes serialized data back to this function,
    * which gets unserialized and returned for use.
    *
    * @since 1.5.0
    *
    * @uses CHILD_THEME_VERSION Prose version string
    *
    * @global string $wp_version WordPress version string
    * @return mixed Unserialized data, or false on failure
    */
    function prose_update_check() {
    global $wp_version;
    return false;
    }</code>

    Worked for me.

    #13370

    panoptic
    Participant
    Post count: 3

    I am having the sample problem. Why can’t support post the fix (php file) to this thread and/or to the forum?

    #13371

    Susan
    Moderator
    Post count: 8455

    @panoptic – a user (NewSeasonDesign) posted the PHP fix which she received in an e-mail from StudioPress support. If that doesn’t work for you, then go ahead and submit a support ticket.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #13373

    NewSeasonDesign
    Participant
    Post count: 35

    Is there a way for me to post the actual file so you don’t have to copy & paste? I didn’t see any way to attach anything. Can you download it as a zipped file from here: http://newseasondesign.com/fixes/

    #20022

    Chrissy Marquardt
    Participant
    Post count: 27

    Hello

    I am a newbie web designer and just bought and installed the Prose Child Theme per the recommendation of one of your affiliates. I have tried multiple times uninstalling and reinstalling the Prose Child theme on my blog without any success.

    I am installing the Genesis zip file first via WordPress(.org), <i>not activating it</i> and then going back in and uploading the Prose zip file. The Genesis file goes through fine and it even shows up in my dashboard for me to go in and configure. When I install the Prose theme, here is the error message I am getting : -
    Installing Theme from uploaded file: ProseChildTheme.zip
    Unpacking the package…

    Installing the theme…

    This theme requires a parent theme. Checking if it is installed…

    The parent theme could not be found. You will need to install the parent theme, genesis, before you can use this child theme.

    Theme installed successfully.

    So even though the genesis them is installed on my Dashboard its as if the Prose files are not recognizing it. Ive gone through the whole gamut about 3 times now, even tried to install the Genesis sample zip to see if I missed something and that file did not work either.

    I was told that the Prose child theme was one of the easiest to work with, and Ive heard great things about the Genesis Framework. So far I have to admit I am not happy and have a headache as a result. PLease let me know how I can resolve this without having to do a lot of coding.

     

    Thank you

     

     

     


    #20050

    nickthegeek
    Keymaster
    Post count: 751

    It helps if we have a link to your site. Please post a link to your site. Thanks.

Viewing 15 posts - 1 through 15 (of 23 total)

You must be logged in to reply to this topic.