When attempting to load Beaver Builder on the homepage to edit, the builder won't load.
I have created a staging site for you to access and will be referenced below.
My browser inspection console reports the following JS error:
views_shortcodes_gui.js?ver=3.1.3:341 Uncaught TypeError: _.contains is not a function
at new WPViews.ShortcodesGUI (views_shortcodes_gui.js?ver=3.1.3:341)
at HTMLDocument.<anonymous> (views_shortcodes_gui.js?ver=3.1.3:4846)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
WPViews.ShortcodesGUI @ views_shortcodes_gui.js?ver=3.1.3:341
(anonymous) @ views_shortcodes_gui.js?ver=3.1.3:4846
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
ready @ jquery.js?ver=1.12.4-wp:2
J @ jquery.js?ver=1.12.4-wp:2
I am able to make it work if I deactivate:
GP Populate Anything
Version 1.0-beta-4.47 | By Gravity Wiz
Researching on my own, I stumbled across these 2 articles:
https://toolset.com/forums/topic/toolset-views-blocks-issue-with-creating-new-user-or-resetting-password-in-wp/
https://stackoverflow.com/questions/34922682/restangular-contains-is-not-a-function
From which, I was also able to fix by keeping GP Populate Anything active, while changing this line of code in your plugin:
wp-views/embedded/res/js/views_shortcodes_gui.js : 341
From: self.ps_orig_id = ( _.contains( [ 'post-new.php', 'post.php' ], wpv_shortcodes_gui_texts.pagenow ) ) ? wpv_shortcodes_gui_texts.post_id : 0;
To: self.ps_orig_id = ( _.includes( [ 'post-new.php', 'post.php' ], wpv_shortcodes_gui_texts.pagenow ) ) ? wpv_shortcodes_gui_texts.post_id : 0;
I have pinpointed the issue for you to analyze and come up with a bug fix 🙂
Hello and thank you for contacting the Toolset support.
To confirm this bug, I wanted to share with you a new clean installation and let you reproduce the issue on it with a default theme and the minimal plugin, but I was facing some issues with our platform tools.
So I installed Duplicator to take a copy of your site and pull the required plugins from it, but it seems that Duplicator won't work on your hosting.
We have the Gravity Forms plugins in our compatibility database, but we do not have the GP Populate anything, maybe we will also need the GravityPerks plugins.
I suggest that you share all the required plugin in a Dropbox or GDrive folder and let me check this locally before escalating to our developers.
If you agree, your next reply will be private to share the download link safely.
I have uploaded both GravityPerks and the GP Populate anything plugins to this folder where you can download and install on your local site.
hidden link
Hello and thank you for your collaboration.
I tried on a new installation with the following plugins and I was not able to reproduce the issue. hidden link
Check Beaver Builder for the homepage on this screenshot hidden link
Maybe, I missed something! The only difference, I can see is the version of Beaver Builder. Can you share the latest release with me on the same GDrive folder, and any steps, you think maybe, required to reproduce the issue.
Hey Jamal!
2 additional Beaver Builder plugins need to be activated as well is what I am discovering.
If you can please add/enable:
Beaver Themer - v1.3.0.2
Ultimate Addons for Beaver Builder - v1.26.1
Then try it again on your end.
I even installed the default 20/20 theme and the error was still producing - so you should be able to fully replicate it now in your site.
I don't think the version for BB Pro is going to matter as we have had this issue on this site for a few months and am now only getting to report it, so I know the previous few version updates on Pro would have also produced the error.
Thank you for your feedback. Can you share the plugins on the GDrive folder that you have created previously?
I can only have the following versions:
- Beaver Themer 1.0.2.1
- Ultimate Addon for Beaver Builder 1.6.7
Thank you for your collaboration. But even with those plugins, I was not able to reproduce the issue. Maybe this needs more steps to reproduce it.
I suggest to take a Duplicator copy of your website and check with it. But when I log in to the provided site, I am not able to reproduce the issue because the Beaver Builder does not work for my user on the homepage.
Jamal, can you please try again to access the staging site I have setup - hidden link
When you first access the site, our host has a password gate - I gave you that user & login in the:
FTP access details
Then log in with the WP admin I included in the initial ticket.
I just attempted all this with the user I provided you and when I attempted to edit the home page in Beaver Builder - I get the same issue. I have minimal plugins all installed.
Can you please record a short video of your manipulation? Because I still cannot make the builder work for the homepage, and no errors are logged for me on the browser console. Check this screencast hidden link
There is something still missing for me to see the same errors as you.
That is exactly the issue - the builder will not load when initiated because of the conflict I am reporting with Views.
I recorded the same home/URL, attempting to initiate BB with the console active for you to see the error on my end.
hidden link
Also, you typically want your inspector console open before you attempt to initialize the builder. I have encountered in that past, the errors won't show in the log after you have already had the page load.
I still cannot reproduce the errors on the console. But I can reproduce the issue with the Builder not working. Once I deactivated Toolset plugins(Types, Views), The BB worked for the homepage, once I activated the plugins again, it did not work.
Please let me know if it is ok to take a copy of your website for further analysis.
Thanks Jamal - yes, it is OK for you to take a copy of this staging site to further investigate on your end.
Thank you, but I was not able to take a copy, probably because of file permissions on some folders.
Duplicator needs writing permissions on some folders to be able to build a copy of your website. Check this screenshot hidden link
UpdraftPlus is also hanging for more than 30 minutes. hidden link
Can you take a database backup and zip themes and plugin folders then share them with me on a GDrive folder, or maybe allow writing on Duplicator or UpdraftPlus folders?