Hello,
I open this post after your answer at this post : https://forum.tagdiv.com/topic/bad-update/
Like the others, my big grid are now boxed with error message. I know why because you explain well why. But I have one trouble. I try to do : “Please comment out or remove this code: https://www.screencast.com/t/SKhrNN5v47 and also remove one of these curly braces: https://www.screencast.com/t/AjjTkQM3E The check is added in each grid file in particular so you will have to edit the file corresponding to the grid you use.”
But unfortunally I can’t found this code on my PHP file.
I use only Grid 5 for this moment,but I try to found the code to remove on all Big Grid and I do not found it, that why I paste my code on this forum. Can you help me to know what I need to do for don’t have anymore this message error on my Big Grid 5 ?
My all file Big Grid 5 PHP :
<?php
/**
*
* Class td_block_big_grid_5
*/
class td_block_big_grid_5 extends td_block {
const POST_LIMIT = 3;
function render($atts, $content = null){
// for big grids, extract the td_grid_style
extract(shortcode_atts(
array(
‘td_grid_style’ => ‘td-grid-style-1’
), $atts));
$atts[‘limit’] = self::POST_LIMIT;
parent::render($atts); // sets the live atts, $this->atts, $this->block_uid, $this->td_query (it runs the query)
$buffy = ”;
$buffy .= ‘<div class=”‘ . $this->get_block_classes(array($td_grid_style, ‘td-hover-1’)) . ‘” ‘ . $this->get_block_html_atts() . ‘>’;
//get the block css
$buffy .= $this->get_block_css();
$buffy .= ‘<div id=’ . $this->block_uid . ‘ class=”td_block_inner”>’;
$buffy .= $this->inner($this->td_query->posts); //inner content of the block
$buffy .= ‘<div class=”clearfix”></div>’;
$buffy .= ‘</div>’;
$buffy .= ‘</div> <!– ./block –>’;
return $buffy;
}
function inner($posts) {
$buffy = ”;
if (!empty($posts)) {
$buffy .= ‘<div class=”td-big-grid-wrapper”>’;
$post_count = 0;
foreach ($posts as $post) {
$td_module_mx12 = new td_module_mx12($post);
$buffy .= $td_module_mx12->render($post_count);
$post_count++;
}
if ($post_count < self::POST_LIMIT) {
for ($i = $post_count; $i < self::POST_LIMIT; $i++) {
$td_module_mx_empty = new td_module_mx_empty();
$buffy .= $td_module_mx_empty->render($i);
}
}
$buffy .= ‘</div>’;
}
return $buffy;
}
}
Thanks in advance !
-
This topic was modified 9 years by
Stangerson.
Hello,
You will have to remove the code exactly as I mentioned in the other topic.
Please replace all of the code with this one: https://pastebin.com/7DDH6su2
Thank you!
Hello @Bodgan B
I paste your code in my file (shortcode… td big gride 5) but nothing change 🙁 Error message is always here.
Can you help me ?
Thank you in advance.
-
This reply was modified 9 years by
Stangerson.
Hi,
If you are trying to make this change to Big grid 5 then all you have to do is comment this line of code from that file – https://www.screencast.com/t/hCcFPQKoQj and remove one of the curly brackets like this – https://www.screencast.com/t/bHaLTEWgVE5Q
Or just replace the entire code from that respective file with the one from Bogdan provided above – https://www.screencast.com/t/ypUo4jyra
Try clearing any caching installed if you have done all these modifications as specified and the results are still the same.
Thanks
Hello Simion.
I repost because I have tried all what you say. I replace the entire code on my big grid 5 PHP file and I have clear my caches… but I have the same problem.
Thanks in advance.
Hi,
From what I can see when inspecting your website – https://www.screencast.com/t/RWxF5Tgg you have an older version of Visual composer. Try updating the plugin to the latest version from the theme package – https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
Please note that you should update all the plugins provided with the theme along with the theme update for better functionality.
If you still have this issue please send us an email at contact@tagdiv.com and provide admin login information and FTP access. Also paste a link to this topic for identification purposes.
Thanks
Ok. I update my Visual Composer but I have still my trouble.
I send to you and email.
Thanks.