Viewing 14 reply threads
  • Author
    Posts
    • #791
      moshemo
      Member

      Hi there,

      I’m working on creating my first plugin with Piklist and I am trying to get the checker to work.  The thing is, I don’t see the message – even when piklist is not activated.  The same is true for WordPress Helpers – I don’t get the message even when piklist is deactivated.

      I’m running wordpress on localhost – I don’t know if that could have anything to do with it.  The thing is, I tested and know that the piklist checker file is being included.

      Any ideas?

      Moshe

    • #792
      Steve
      Keymaster

      I just updated the documentation to run on `init` not `admin_init`. You can see the changes here >

    • #2902
      azizultex
      Member

      Hi,
      I’m facing the same problem. I am using piklist in twentytwelve theme with the code below:

      
      add_action('init', 'my_init_function');
      function my_init_function()
      {
        if(is_admin())
        {
         include_once('piklist/class-piklist-checker.php');
       
         if (!piklist_checker::check(__FILE__))
         {
           return;
         }
        }
      }

      Any help?

    • #2903
      Steve
      Keymaster

      @azizultex– Welcome to the Piklist community! Can you be a bit more specific? What is not working?

      • #2948
        azizultex
        Member

        Hi @Steve, Thanks for your reply. I added the code in my functions.php file but it doesn’t show any message to the user if Piklist isn’t installed or activated on the theme.

        I want to achieve a goal to show users a message if piklist isn’t installed in their theme as TGM plugin do.

        Need more description? Please let me know

        Thanks

    • #2949
      blair2004
      Member

      Hi, i’m facing the same problem. Here is my code

      
      include_once( dirname( __FILE__ ) . '/includes/piklist-checker.php' );
      add_action( 'init' , 'inition_cvk' );
      function inition_cvk()
      {
      	if( is_admin() )
      	{		
      		if( ! piklist_checker::check( __FILE__ ) )
      		{
      			return false;
      		}
      	}
      }
      

      I have followed all code example, but notices doesn’t appear while piklist is disabled or not available. therefore, piklist_checker::check( __FILE__ ) work fine, but there are not notices and the plugin is not desactivated.

      I use alternatively “admin_notices” hook to display a notice.

    • #2953
      Steve
      Keymaster

      We just updated the Piklist Checker to v0.6.0, and you can grab it here >

      The documentation has been updated to support theme integration.

      You will need to pass an extra argument, theme, after __FILE__ :

      add_action('init', 'my_init_function');
      function my_init_function()
      {
        if(is_admin())
        {
         include_once('path-to-file/class-piklist-checker.php');
       
         if (!piklist_checker::check(__FILE__, 'theme'))
         {
           return;
         }
        }
      }
      

      Let us know if you still have issues.

      • #2957
        azizultex
        Member

        Hi @Steve, Thanks for your update. I tried the updated code, but it’s still not working.

    • #2954
      blair2004
      Member

      what about plugin development case ?
      After having read piklist checker class, i discovered “message()” method. Instead of using “return”, i’m using this method like this.

      if( !piklist_checker::check( __FILE__ ) )
      {
      piklist_checker::message();
      }

      However, the displayed notice doesn’t specify the plugin or theme which required piklist install/activation.

    • #2955
      Steve
      Keymaster

      for plugins you can install like you used to:

      add_action('init', 'my_init_function');
      function my_init_function()
      {
        if(is_admin())
        {
         include_once('path-to-file/class-piklist-checker.php');
       
         if (!piklist_checker::check(__FILE__))
         {
           return;
         }
        }
      }
      
    • #2956
      blair2004
      Member

      As i said, i’m using this method, but there aren’t any notice. I have downloaded WordPress Helpers plugin to explore code and discover how piklist checker is used. After install, there was an error, since i got piklist_checker included in my projet, there were also piklist_checker included there (in wordpress helpers plugin). To explain that error, it seems that a constant is defined twice…

      this is just a break, just to tell you that after everything i discovered here, notices are not displayed.

    • #2958
      Steve
      Keymaster

      @blair2004– Try downloading WP Helpers v1.6.0… you beat us to the download. It should be working fine.

    • #2989
      jphickey
      Member

      Steve,

      just installed piklist & Helpers; interface looks great, but I can’t seem to make anything stay on as checked. I use Woo Canvas and honestly also have very many plugins to make peace with as well. Any suggestions as to a starting point to begin peeling back some of this so I can get to make Helpers happen?

    • #2996
      Steve
      Keymaster

      @jphickey– Welcome to the Piklist Community!

      The only way to debug plugin conflicts is to start deactivating plugins and see if that makes a difference. When you find the plugin that’s causing the issue please let us know so we can try and resolve.

    • #3004
      jphickey
      Member

      As suspected it was W3TotalCache, my caching plug-in but not sure which setting within there i.e. .css, .js minification or elsewhere… any suggestions?

    • #3005
      jphickey
      Member

      saying bye to w3tc; will utilize the cloudflare goodies instead

    • #3009
      Steve
      Keymaster

      @jphickey– W3TC is a tough plugin to configure correctly… even for advanced users. Let us know if you have any other questions.

      Closing ticket.

Viewing 14 reply threads
  • The topic ‘Piklist Checker Doesn't Seem to Be Working’ is closed to new replies.