Tagged: x
-
AuthorPosts
-
September 6, 2016 at 11:46 am #1163262
Hi,
First, I would like to provide any URL and information privately, will do asap on your reply.
The scenario:
On a X child theme, with 4 different Custom Post Types and related Custom Taxonomies, right after installing and configuring WPML in order to translate every single CPT and keep a good URL structure through languages via custom slugs translations.
Both taxonomies and CPTs have been modified to include custom functionalities, using templates inside the child theme folder.The issue:
Using WPML resulted fine with single posts, but went on white page of death just every time I tried to reach any custom taxonomy url.The (partial) solution:
After a lot of tests, I succeded to achieve a notice talking about a missing file in … / my-x-child-theme / index.php
So, I copied it from /wp-content/x, and this looked like solving the white page issue.
Anyway, using this file, apparently deactivated any template related to taxonomies of mine, making each page now look like having been “fall-back” to the default X design output.Deactivating WPML solves the issue, with no translation.
Activating WPML but removing the file index.php keeps returning a white page.The index.php file is commented as follows:
// Handles output of pages and posts if a more specific template file isn’t
// present. Must be present for theme to function properly.So, I think it shouldn’t be there in my child theme but, for some WPML issue I still can’t figure out, it’s now needed from taxonomy and archive pages in order to show up.
But, it looks like forcing my theme back to default.How could I get the template pages back to work as previously?
Thanks!
September 6, 2016 at 9:35 pm #1163893Hi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
September 7, 2016 at 6:34 am #1164313This reply has been marked as private.September 7, 2016 at 3:27 pm #1165072Hi There,
I did some testing commenting some code on the template but there’s no changes at all. I even tried just taxonomy.php because that is the default but not really working. Can you please double check wordpress admin credentials? I am not able to login.
ERROR: The username or password you entered is incorrect.
September 7, 2016 at 4:54 pm #1165224Hey, thanks for your reply and sorry for my mistake, same credentials double checked and working.
I also made a complete theme and plugins update.Looking forward for your reply.
September 7, 2016 at 5:36 pm #1165260For some further information about the issue and tests, please check also this support ticket I opened on WPML. They’re working on a identical copy of the website.
https://wpml.org/forums/topic/wpml-configuration-looks-ok-single-cpt-in-front-ok-custom-taxonomies-broken/#post-1066647
this latest reply in particular, with details regarding the issues apparently happening only when using archive-slug and taxonomy-slug php templates in child theme.Thanks!
September 8, 2016 at 1:05 am #1165873Hi there,
It should be okay now, I added this code to your child theme’s functions.php
add_action('init', function() { remove_filter( 'template_include', 'x_force_template_override', 99 ); }, 999999 );
The x_force_template_override() is added feature to fix the previous bug with WPML. Where it picks front page’s template instead of index.php where archive/categories fall back.
Cheers!
-
AuthorPosts