-
AuthorPosts
-
May 18, 2017 at 10:35 am #795765
Hi to the support team,
a few minutes ago i made the update to 4.0.7 and now the nearly all the content in sections is being displayed incorrectly.
i’m using a layout 1/2 and 1/2 for the main content, but now is each column displayed on its own 1/1 with a little offset.
Some of the columns are shown correctly as before??Changing the order of the columns and refreshing the site does not work.
Is this a known issue or would you please take a look to the site?
Thanks a lot,
SebastianMay 18, 2017 at 7:20 pm #796097Hey Sebastian,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.
Best regards,
VictoriaMay 19, 2017 at 8:24 am #796409Hi Victoria,
please find the log-in credentials in the privat box.
It seems, that this problem appears in the NL and tha CA version of the site only. The german one seems to be still perfect.Thanks a lot!
SebastianMay 19, 2017 at 10:26 am #796448May 19, 2017 at 10:29 am #796453Hi Victoria,
yes it is. The german content is the original one.
br
SebastianMay 19, 2017 at 12:51 pm #796538Hi to the support team,
I have the same problem.
Do you have a patch to fix it?
Best regards
Alex
May 19, 2017 at 1:29 pm #796567I found a temporary, but really unorthodox solution by duplicating columns that were displayed correctly and replacing their contents with that of the blocks that displayed badly. While keeping the old columns empty above … very unorthodox but functional.
May 19, 2017 at 2:50 pm #796596Hi Support Team,
since I have updated to 4.0.7 I am having the same issue with columns: On many pages the column width is ignored and shown as 1/1 column.
F.e. http://b2b-ingenieur.com/partner-netzwerkCan you help please as this is quite a serious issue.
Thanks,
Markus.May 19, 2017 at 3:16 pm #796612Additional Info: when I create new columns and drag the content from the old columns, then delete the old columns the layout is fine again.
I have corrected the partner-Netzwerk page now, but there are others showing the same problem:
Can you please check http://b2b-ingenieur.com/iiot-sales-transformation/
thanks,
MarkusMay 19, 2017 at 3:22 pm #796617Additional Info 2: The issue seems to show up, once the columns are set to “Equal height”. Columns set to “Individual height” are displayed correctly.
Maybe this helps to address the issue.
Regards
MarkusMay 19, 2017 at 6:07 pm #796697Thanks Markus !
This allows to repair temporarily but it would be necessary to find a solution which allows to align the columns.
Best regards
AlexMay 22, 2017 at 6:49 am #797411Hi,
Every columns in the page are wrapped inside their own “av-equal-height-column-flextable” container. Please edit every first column in the rows then reset the “Equal Height Columns” settings.
Best regards,
IsmaelMay 22, 2017 at 3:11 pm #797680Hi @Ismael and Enfold team,
Thanks for creating a great, easy-to-use theme.
I have this same issue specifically when I am loading post content via ajax into a modal window. When the content is rendered normally accessing a page, the columns are rendered correctly. The columns rendered correctly until version 4.0.6 and the change in rendering seems to be as a result of a fix implemented in version 4.0.6:
– fixed: “Equal Height Columns” breaks when columns are not 100% width (e.g. 1/3 1/3)I need the rows to have equal height columns. I understand the need for this fix, but what I don’t understand is why I am experiencing this problem only when fetching the content via ajax?
Based on some debugging, I think that it may be because some hooks are not getting executed as they should when the content is rendered by my custom function. I tried to debug myself and noticed that
ShortcodeHelper::$tree
property is not set when I do the ajax call, but is set when the page is loaded normally. Consequently when rendering the columns the$meta['siblings']['next']
and$meta['siblings']['previous']
are not being set when the shortcode_handler() method is called in the config-templatebuilder/avia-shortcodes/columns.php file.Please let me know if there are any simple ways you know of to trigger the code that will set the above values or if there is something else obvious I am doing wrong here? I have included URLs where both normal page calls and ajax calls can be seen as well as login details in the private part of the message
Below is code which is called when the content is requested via ajax:
/** * Show mapplic pin information by fetching with ajax */ if (!function_exists('show_mapplic_ajax_content') && !function_exists('show_mapplic_ajax_content')) { add_action('wp_ajax_nopriv_mapplic_ajax_content', 'show_mapplic_ajax_content'); add_action('wp_ajax_mapplic_ajax_content', 'show_mapplic_ajax_content'); function show_mapplic_ajax_content() { $slug = filter_input(INPUT_POST, 'region-slug', FILTER_SANITIZE_STRING); if (empty($slug)) { mapplic_ajax_content_error(); } // query for the about page $region_page_query = new WP_Query(['pagename' => trim($slug, " \t\n\r\0\x0B/")]); if (!$region_page_query->have_posts()) { mapplic_ajax_content_error(); } $GLOBALS['wp_query'] = $region_page_query; // "loop" through query (even though it's just one page) while ($region_page_query->have_posts()) { $region_page_query->the_post(); the_content(); } wp_reset_postdata(); die(); } function mapplic_ajax_content_error() { die( '<strong>Could not retrieve regional information<strong> <p>There was a problem getting the information related to our presence in this region. Please try again in a minute or two.</p>' ); } }
May 25, 2017 at 1:49 am #799301Hi,
Where did you create the content of the map marker popup? For additional help, please contact the plugin author.
Best regards,
IsmaelMay 25, 2017 at 9:25 am #799423Hi @Ismael,
The problem I faced is that the plugin I used called Mapplic to render a map on the home page cannot use existing pages/posts for the map pin modal content by default, so I had to duplicate the content for a page and for the map pin. This became a big issue because this content was being updated frequently and was becoming a maintenance nightmare.
So, I found a way to intercept the JavaScript event triggered when a map pin is clicked on the map, and to populate the content of the modal with the contents of an existing page. The content of that page is built using Avia Page Builder like any other page on the site, and I retrieve the content of the page using an ajax request that calls the above function in my child theme’s functions.php file. The content is therefore rendered out into the response by calling the WordPress
the_content()
method.I’ve included an admin link to the page used in my specific example in the private area of this post, so you can see the avia layout. The only thing the Mapplic plugin does is fire the JavaScript event when a map pin is clicked. The rest is done by the custom code I wrote and the rendering of the content is done entirely by WordPress and Enfold. This layout issue is definitely not related to the plugin. It may be related to the way I am rendering the content in my custom code though. Maybe I can explain a bit further what I am seeing in my debugging.
When the page is requested normally as per the first link in the private area of my previous post, the first
if
statement evaluates totrue
, but then both theif
statement and theelse if
statement below that evaluate tofalse
, so the value of$force_close
remainsfalse
. When I render the content from my custom function, calling WordPress’the_content()
method, the secondif
statement:if( ! isset( $meta['siblings']['next']['tag'] ) )
evaluates totrue
and$force_close
is set totrue
(config-templatebuilder/avia-shortcodes/columns.php line 756 – 769). This is where the layout goes wrong, and each column is wrapped in adiv.flex_column_table.av-equal-height-column-flextable
element instead of the 2 columns (in my case) in the row being wrapped in this element, as represented in the avia advanced layout builder:/** * check if row will break into next column */ if( ( false === $force_close ) && ! empty( avia_sc_columns::$first_atts['min_height'] ) && ( 'av-equal-height-column' == avia_sc_columns::$first_atts['min_height'] ) ) { if( ! isset( $meta['siblings']['next']['tag'] ) ) { $force_close = true; } else if( ( avia_sc_columns::$calculated_size + avia_sc_columns::$size_array[ $meta['siblings']['next']['tag'] ] ) > 1.0 ) { $force_close = true; } }
I have created a temporary workaround by overriding the above file and adding an extra condition:
!(defined('DOING_AJAX') && DOING_AJAX)
to the first if statement, to prevent the subsequentif (...) { ... } else if { ... }
block from being executed at all. I just wondered if someone there could explain why$meta['siblings']['next']['tag']
is not set when rendering the content this way?Thanks again,
GarethMay 27, 2017 at 7:39 pm #800626Hi,
Best regards,
BasilisMay 29, 2017 at 12:14 pm #801022Hi @Basilis,
Your reply came through without any content. All I see is:
Was there something you wanted to add?
Regards,
Gareth- This reply was modified 7 years, 5 months ago by garethlawson.
June 6, 2017 at 6:09 am #804304Hi,
I’m sorry for the late response. I’ll ask the rest of the support team to check the thread.
Best regards,
IsmaelJune 8, 2017 at 3:09 pm #805591Hi,
I also have the same problem – columns that are set to “Equal height” are not displayed correctly after updating to 4.0.7.
It will take a very long time if I have to fix it manually.Hope you have a solution.
June 14, 2017 at 8:40 am #807846Hi,
@Jake: Please create a new thread with the url to the site and the login credentials. We’ll check it there.
Best regards,
IsmaelAugust 23, 2017 at 3:55 pm #843105Same problem. Page rendered perfectly yesterday. Opened this morning and 1/2 columns are now full-width. Changed nothing. It’s a mess and I have a presentation on 2 hours. : /
Going back a revision shows difference in code at the end
Was:
[/av_four_fifth]
[/av_section]is now this
[/av_four_fifth] [/av_section]Happening on two pages now.
August 23, 2017 at 4:01 pm #843112All rows are set to “equal column heights” already.
August 26, 2017 at 4:55 am #844274Hi,
Please check line 812 of the columns.php file.
if( !empty( avia_sc_columns::$first_atts['min_height']) && (avia_sc_columns::$calculated_size >= 0.95 || $force_close) )
The float comparison might be returning true even if the conditions are not met. Dump the value of the avia_sc_columns::$calculated_size and you’ll see what I mean.
// http://php.net/manual/en/language.types.float.php
Best regards,
IsmaelOctober 16, 2017 at 12:07 am #864601Also running into this issue and would like to see an update with this fixed. I’m new to WordPress and the Enfold template, but from the above conversation it does seem like quite a nasty regression.
October 16, 2017 at 10:47 am #864746Hi,
Thank you for using our theme and sorry for the problems.
THey will be fixed in the next update.
Meanwhile you have to update some core files. Please replace the complete content of these files with the RAW paste content.
enfold/config-templatebuilder/avia-template-builder/php/shortcode-helper.class.php
enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php
If you are using codeblocks element also update
enfold/config-templatebuilder/avia-shortcodes/codeblock.php
These links are valid for one week. Make sure to make a copy of the original file to have a fallback and that you are using Enfold 4.1.2.
After the update open the pages that make problems and update them. This is important that Enfold can update the internally stored shortcode structure.
Please clear your browser cache, Server cache and reload the page (sometimes you need to close the browser and reopen a new browser window and reload the page several times).
If you have problem we can do the update for you, please give us FTP access to your server.
Best regards,
GünterNovember 13, 2017 at 1:15 am #875900Has an update fixing this bug been released yet? The problem is still happening in which columns don’t display correctly in preview.
I am not entirely comfortable updating the php files. Will use the Enfold Theme issued updates instead. When is the fix/update coming please?
Please advise and thank you!
November 13, 2017 at 11:23 am #876031Hi,
Please try to update to Enfold 4.2. The fixes above are included in this version.
Best regards,
GünterNovember 13, 2017 at 12:03 pm #876055Hi,
I have updated to Enfold 4.2, but we still have this problem. When I change the columns to “Equal height” after the update – they are still messed up.
See link in PC.November 14, 2017 at 2:54 pm #876597Hi,
@jake
We would need to get access to the created shortcode on this page to reproduce the problem.
Could you please enable the ALB Debug mode https://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/.
Then please open a new thread and give us a temporary admin account for your site (you can post the credentials in the private content).
We will have a look into your problem asap.
Thank you for your cooperation.
Best regards,
GünterNovember 21, 2017 at 11:42 pm #879960Same here. We updated to Enfold 4.2, but still having the same problem. Change the columns to “Equal height” after the update and they are still messed up in Preview mode. Renders correctly when live. Columns are everywhere in Preview.
Please indicate a fix for this bug as the update did not seem to correct it.
Thanks
-
AuthorPosts
- The topic ‘Columns not displayed correctly after updating to 4.0.7’ is closed to new replies.