Thread Starter
Wompa
(@wompa)
Much appreciated, Bas.
For your information I have Tesseract v. 2.2 which was upgraded from version 2.1.2 three days ago. I also have bought and activated the “no-brand” plugin from the theme author (Tyler.com).
So the update collided with our update. I checked if there was a quick fix for this, but from our side there is none unfortunately. In the old version of Tesseract (2.1) this problem is not there.
The temporary solution is to remove the offending code from your theme. Go to functions.php and find this piece:
echo '<script type="text/javascript">
jQuery(function($){
$("a").each(function(){
strhref = $(this).attr("href");
if(strhref.toLowerCase().indexOf("wpbeaverbuilder.com") >= 0){
$(this).attr("href","https://www.wpbeaverbuilder.com/pricing/?fla=50&campaign=tesseracttheme");
}
});
});
</script>';
It’s in a function called ‘display_notice’ .
@wompa On your website I did this procedure already as a proof of concept so it’s all working again.
We’ll notify the theme author as well of this problem since it will probably cause multiple problems. Also it wouldn’t be bad to enter a ticket in support there as well.
Thread Starter
Wompa
(@wompa)
Very much appreciated Bas! Especially as the code was not in your plugin. As I’m a newbie in coding, are you able to see what your removal of the conflicting code actually changes in the conflicting plugin?
I have tested this and now this works fine again.
I also would point out that your fix also fixed another issue I had discovered today. My admin panel in WP did not function as it should. When I tried to edit the link of a page, it was frozen, but your fix have also solved this issue. I was not able to define the status of a new site anymore either, with the last issue.
In MaxButton your fix also defroze the preview button window that rwlind refers to, which I also had a problem with.
I’m impressed with your support on this issue Bas, and both you and the support will get ac clean 5 from me. I’m also probably going to buy the MaxButton Pro, as I see there was no issue with MaxButton.
The removed code has the purpose of replacing a certain URL for the beaver pagebuilder advert to include his referal code.
Unfortunately in some cases the link anchor doesn’t have a URL ( like the save button in our plugin ). The code doesn’t check that, errors and ends all javascript execution. This is why all the dynamic items stopped working.
Thanks for the compliments! Doing our best here.
Hi Bas
I am having the same issue. Unfortunately when I tried to implement the solution you provided I got the following error. Parse error: syntax error, unexpected ‘if’ (T_IF), expecting ‘{‘ in /home2/vedictre/public_html/wp-content/themes/TESSERACT/functions.php on line 994
What am I doing wrong??? Need help.
Then you have removed too much. Please only remove the part mentioned, otherwise problems my occur.
Hi Bas
Thanks for your reply. Let me make sure I understand the exact parts…
According to your post, I should find the code under display_notice and remove it i.e. cut this section
function display_notice() {
echo ‘<script type=”text/javascript”>
jQuery(function($){
$(“a”).each(function(){
strhref = $(this).attr(“href”);
if(strhref.toLowerCase().indexOf(“wpbeaverbuilder.com”) >= 0){
$(this).attr(“href”,”https://www.wpbeaverbuilder.com/pricing/?fla=50&campaign=tesseracttheme”);
}
});
});
</script>’;
If that is correct, that is what I did when I got the error… If not, please let me know what I did wrong.
Thanks a bunch again. Really appreciate it.
Apart from the ‘function display_notice {‘ line, which was not included in my to-be-removed and indeed will crash the site.