Jump to content

Archived

This topic is now archived and is closed to further replies.

dawsonbarber

Hooker Conflict with Toolset Views Plugin

Recommended Posts

dawsonbarber

(First: not sure why this was/is added to Viewer because I didn't select Viewer nor were any product prefix options available for selection).

 

I had some problems with an installation that uses Views quite extensively and, after deactivating all plugins and reactivating one by one, found that the "culprit" was Hooker.

 

With Hooker active on the site, key Views functionality does not work (e.g., post links are rendered effectively inactive).

 

As I'd already reached out to the Toolset support team, they did some debugging.

 

Here's a recap of their findings:

 

Basically, the problem is that both Views and Hooker use a different version of CodeMirror (script used for syntax highlighting). Views is using version 4.8.0 and Hooker is using version 3.19.
 
Further details:
  • PageLines DMS Hooker plugin is en-queuing the CodeMirror script on every admin page although it is only using it on a single admin page, while Views is only en-queuing it on the pages it is using it
  • Views registers and en-queues the CodeMirror script with an appropriate handler name, while Hooker is using a "test" name for it. It is also using the same "test" handler for the CodeMirror style sheet
Recommendations:
  • Rename the CodeMirror script and style sheet handlers to something less generic than "test"
  • Make sure that Hooker is only registering and en-queuing those assets on the admin page that uses them.
Sidenote: For what it;s worth, they also indicated that Hooker may not be fully compliant with the CodeMirror license as, apparently, it does not include the license declaration files.
 
Perhaps these issues can be addressed in an update?
 

Share this post


Link to post
Share on other sites
dawsonbarber

A response would be appreciated.

Share this post


Link to post
Share on other sites
Danny

Hi,

 

I will pass this onto our developers.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Simon

Plugin updated to 1.5.1 addresses this issue.

Share this post


Link to post
Share on other sites
dawsonbarber

Awesome!

Share this post


Link to post
Share on other sites

  • Similar Content

    • stebac
      By stebac+
      Hello!

      Since i recently updated to WordPress 4.9.4 there have been some unusual behaviours with Platform 5 (version 5.1.8).

      I am unable to edit the colour pickers for the backgrounds (the boxes do not show up anymore) and when i activate a plugin from the extend menu it does not show up in my page editor tools.
      Is this a problem for everyone else?
      Thank you in advance for your time.
      Ste.
    • jharri74
      By jharri74
      Hello, I want to create a form where a visitor can submit content/post from the front end. I did something very similar some years back using wp-types, CRED form with pagelines DMS. When i try to set this up in Platform 5, the CRED form generates but doesn't show. I get a blank page. In the browser's console window, i get the error: Uncaught Error: You cannot apply bindings multiple times to the same element.
      When i deactivate the PL plugin and change the theme, the form appears.
      I'm using Wordpress 4.8.2 and PL 5.1.7
      Thanks.
    • Stephen
      By Stephen+
      I'm using the Toolset plugin (Types and Views) to create a CPT and display on the front-end within Pagelines PL5. All is good except that PL5 doesn't pull in the post fields like I created them. 

      For the CPT content template I created it in this order: 
      wpv-post-title My custom image field My custom short description wpv-post-body wpv-post-taxonomy The problem is that it displays on the front-end like this: 
      Feature Image Post Title Post Meta My custom image field My Custom short description Post Body I found only one support ticket in Toolset's forums about this and it has to do with the good old Pagelines Platforms. Nonetheless it has some good info. It points out that, "Content Templates modify the content when called from the_content function. Some themes don't use this function, but define their own. If Content Templates don't work with your theme then you can enter the name of the function your theme uses."

      Can you let me know what what function Pagelines PL5 defines in place of the_content so I can enable PL5 support inside the Toolset settings? If there are any other things I should know about getting PL5 to work with Toolset, all advice is appreciated!
    • art23130
      By art23130+
      We had a very nice shortcodes library and hooker in the previous version of the platform. But in the version 5 they are missing. 
      So are you going to improve it again in future or no they are not supported anymore? 
      and one more question, what do you suggest for sharing bar which we had in DMS2 ?
      Thanks for your effort 
    • dreamsight
      By dreamsight
      We add phone number to the top right of sites using hooker (example http://hub.theasap.org.uk/) but it's not responsive. Is there a better way to add here, which would be responsive?
×