Tagged: x
-
AuthorPosts
-
December 6, 2016 at 1:57 pm #1283575
LisaChristen2ParticipantHi Team,
Full panic mode here 🙂
http://www.christenguss.ch
Theme: X – Child Theme: Integrity LightVersion: 1.0.1
Updated X to 4.6.4 but did not apply the new theme
WordPress: 4.5.3I am still using X-Child Theme Integrity Light but I just recently hit the upgrade button from version 3.1 to 4.6… and the entire formatting on every page is messed up. Every picture is scaled incorrectly, words run off the page, I see duplicates in mobile. I’m thinking it has something to do with Shortcodes (none of it is built in VC or Cornerstone). I tried deactivating Shortcodes but that made all content disappear. Disabled cache but also didn’t help.
Can someone please advise how to correct ALL of these formatting issues in one go?
Thanks a million!!
Lisa
PS Login credentials to follow.
December 6, 2016 at 1:59 pm #1283578
LisaChristen2ParticipantThis reply has been marked as private.December 6, 2016 at 3:42 pm #1283701
JoaoModeratorHi There,
You need to perform – only this time – a child theme update.
Please refer to :
https://community.theme.co/forums/topic/child-theme-updates/
Hope it helps
Joao
December 7, 2016 at 6:40 am #1284490
LisaChristen2ParticipantHi Joao, Thanks for the reply. I messed up copying over the PHP info and now the whole website doesn’t render.
Warning: require_once(D:\www\www28\wp-content\themes\x-child/post-types/job.php): failed to open stream: No such file or directory in D:\www\www28\wp-content\themes\x-child\functions.php on line 42 Fatal error: require_once(): Failed opening required ‘D:\www\www28\wp-content\themes\x-child/post-types/job.php’ (include_path=’.;C:\php\php52\pear;C:\php\Php52\ZendFramework\library’) in D:\www\www28\wp-content\themes\x-child\functions.php on line 42
Can someone please very explicitly explain what my PHP page should read? Here is what I updated it to:
<?php// =============================================================================
// FUNCTIONS.PHP
// —————————————————————————–
// Overwrite or add your own custom functions to X in this file.
// =============================================================================add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );
if(!is_admin()){
add_action(‘wp_enqueue_scripts’, ‘cgx_register_frontend_scripts’, 900);
}function cgx_register_frontend_scripts()
{$child_theme_url = get_stylesheet_directory_uri();
wp_deregister_style(‘x-stack’);
wp_enqueue_style(‘cgx-style’, get_stylesheet_directory_uri().’/style.css’, array(), ‘1.0.3’, “all”);
wp_register_script( ‘cgx-script’, $child_theme_url . ‘/js/script.js’, array( ‘jquery’), ‘1.1’, true );
wp_enqueue_script( ‘cgx-script’);
}
//
//function wpa54064_inspect_scripts() {
// global $wp_styles;
//die(print_r($wp_styles));
//
//}
//add_action( ‘wp_print_scripts’, ‘wpa54064_inspect_scripts’ );
//require_once realpath(dirname(__FILE__)) . ‘/post-types/job.php’;
//require_once realpath(dirname(__FILE__)) . ‘/post-types/machine.php’;
require_once realpath(dirname(__FILE__)) . ‘/post-types/material.php’;
require_once realpath(dirname(__FILE__)) . ‘/post-types/service.php’;
require_once realpath(dirname(__FILE__)) . ‘/post-types/reference.php’;December 7, 2016 at 7:52 am #1284561
Paul RModeratorHi,
I went ahead and comment out your require statements in your child theme’s functions.php file.
Your site is accessible now.
December 7, 2016 at 12:31 pm #1284927
LisaChristen2ParticipantThank you very much 🙂
I’m still not able to get the topbar menu to display. The Custom Global CSS is still there and the menu is still there. I created a new _topbar.php file based on this discussion but no luck. https://community.theme.co/forums/topic/menu-in-top-bar/
Lisa
December 7, 2016 at 5:05 pm #1285248
LelyModeratorHello Lisa,
_topbar.php file was added on the wrong location. I have move the file on the correct location on your child theme here:/wp-content/themes/x-child/framework/views/global. It is now showing. Please check.
December 8, 2016 at 2:32 pm #1286522
LisaChristen2ParticipantThank you! I’m still struggling with SO many errors – this is a real nightmare. The topbar menu is not showing the language selection dropdown menu option. I’m also seeing within each page there is some shortcode that is no longer being picked up
Examples: http://www.christenguss.ch/jobs-und-karriere/ — [jobs no_jobs_title=“Im Moment sind keine Stellen frei.“ no_jobs_content=“Wir sind aber immer an ehrgeizigen und talentierten Leuten interessiert und freuen uns über Ihre aussagekräftige Spontanbewerbung.“]
http://www.christenguss.ch/dienstleistungen/ — [services]
I am taking the website back over from somebody else so I don’t know what was built into or how those shortcodes were created. All I know is that I broke the website when I updated X :/
Thanks for all of your wonderful assistance.
Lisa
December 8, 2016 at 6:08 pm #1286723
LelyModeratorHello Lisa,
Those shortcode is not working anymore because the following code from your child theme’s functions.php that is responsible to display the content are now commented. I can see that from the previous conversation that it is commented because it cause errors.
//require_once realpath(dirname(__FILE__)) . '/post-types/job.php'; //require_once realpath(dirname(__FILE__)) . '/post-types/machine.php'; //require_once realpath(dirname(__FILE__)) . '/post-types/material.php'; //require_once realpath(dirname(__FILE__)) . '/post-types/service.php'; //require_once realpath(dirname(__FILE__)) . '/post-types/reference.php';Going back, it caused errors because that code is looking for a files that doesn’t exist on your new child theme folder. Using FTP, on this folder: /wp-content/themes/x-child-integrity-light(*your old child theme folder), look for post-types folder. Move or copy that folder inside your new child theme folder here:/wp-content/themes/x-child. Then open and update your child theme functions.php file by removing the comment to those lines like this:
require_once realpath(dirname(__FILE__)) . '/post-types/job.php'; require_once realpath(dirname(__FILE__)) . '/post-types/machine.php'; require_once realpath(dirname(__FILE__)) . '/post-types/material.php'; require_once realpath(dirname(__FILE__)) . '/post-types/service.php'; require_once realpath(dirname(__FILE__)) . '/post-types/reference.php';Topbar menu doesn’t have any submenu when I check. I can’t really tell how you implement it before but when I check Appearance > Menu > Topbar Menu: What I am seeing on the frontend is exactly the same on the backend. Please clarify.
December 9, 2016 at 6:25 am #1287272
LisaChristen2ParticipantThank you again for the help. After moving the folder and removing the comment on those lines, I now get this syntax error and the whole site will no longer render:
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in D:\www\www28\wp-content\themes\x-child\post-types\machine.php on line 50
Here’s what the machine.php file says:
<?php
add_action( ‘init’, ‘register_cpt_machine’ );
function register_cpt_machine() {
$labels = array(
‘name’ => __( ‘Machines’, ‘machine’ ),
‘singular_name’ => __( ‘Machine’, ‘machine’ ),
‘add_new’ => __( ‘Add New’, ‘machine’ ),
‘add_new_item’ => __( ‘Add New machine’, ‘machine’ ),
‘edit_item’ => __( ‘Edit machine’, ‘machine’ ),
‘new_item’ => __( ‘New machine’, ‘machine’ ),
‘view_item’ => __( ‘View machine’, ‘machine’ ),
‘search_items’ => __( ‘Search machines’, ‘machine’ ),
‘not_found’ => __( ‘No machines found’, ‘machine’ ),
‘not_found_in_trash’ => __( ‘No machines found in Trash’, ‘machine’ ),
‘parent_item_colon’ => __( ‘Parent machine:’, ‘machine’ ),
‘menu_name’ => __( ‘Machines’, ‘machine’ ),
);$args = array(
‘labels’ => $labels,
‘hierarchical’ => false,
‘supports’ => array( ‘title’, ‘editor’, ‘revisions’ ),
‘public’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘menu_position’ => 20,
‘menu_icon’ => ‘dashicons-performance’,
‘show_in_nav_menus’ => false,
‘publicly_queryable’ => true,
‘exclude_from_search’ => true,
‘has_archive’ => false,
‘query_var’ => true,
‘can_export’ => true,
‘rewrite’ => true,
‘capability_type’ => ‘post’
);register_post_type( ‘machine’, $args );
}function display_machines( $atts ){
$the_query = new WP_Query( [‘post_type’ => ‘machine’] );
ob_start();
if ( $the_query->have_posts() ) {
echo ‘<div class=”machine-list”>’;
while ( $the_query->have_posts() ) {
$the_query->the_post();
$preview = get_field(‘pic’);
echo ‘<div class=”machine”><h4>’ . get_the_title() . ‘</h4><div class=”machine-thumb”></div><div class=”machine-description”>’.get_the_content().'</div></div>’;
}
echo ‘</div>’;
} else {
}$output = ob_get_contents();
ob_end_clean();return $output;
}
add_shortcode( ‘machines’, ‘display_machines’ );December 9, 2016 at 7:47 am #1287328
Paul RModeratorHi,
I comment out this line in your child theme’s functions.php file so you can access your site.
require_once realpath(dirname(__FILE__)) . '/post-types/machine.php';Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.
Thank you for your understanding.
December 11, 2016 at 9:21 am #1288980
LisaChristen2ParticipantThank you.
Can you point me to where I can find the old X theme files from version 3.1 or beforehand? Unfortunately, I can’t ask the client to re-hire their old web team and I don’t know how to fix those items myself. I absolutely understand your policy of not providing further assistance that is out of scope of the X theme specifically, but I’m afraid in this instance I’m really unhappy that the website is broken sheerly due to the fact that I had to update your child theme.
Thanks,
Lisa
December 11, 2016 at 9:28 am #1288985
ChristianModeratorThis is not an issue with X nor X’s child theme but your customizations. machine.php and the rest of the files causing errors are not parts of X and X child theme. You’ll need to hire a third party developer to fix your custom functions. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
The only way to revert to the old version is to restore a backup of your site.
Thank you for understanding.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1283575 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
