Viewing 7 reply threads
  • Author
    Posts
    • #2516
      kattagami
      Member

      Hello,

      I’ve built a very simple widget just to test and find a problem I have on my local environment.

      My widget works fine on my remote Apache/Mysql server but not on my local Nginx/MariaDB server and impossible to know why!

      This is my code (my-plugin/parts/widgets/):

      File “widget-test-form.php”

      <?php
      /*
      Width: 720
      */
      
      piklist('field', array(
          'type' => 'colorpicker'
          ,'field' => 'color'
          ,'label' => 'Color Picker'
       
        ));

      File: “widget-test.php”

      <?php
      /*
      Title: testwidget
      Description: testwidget
      */
      ?>

      The problem:

      I’ve got two notices.
      Notice: Undefined variable: title in …wordpress/wp-content/plugins/piklist/includes/class-piklist-widget.php on line 86
      Notice: Undefined variable: description in …wordpress/wp-content/plugins/piklist/includes/class-piklist-widget.php on line 86

      … because in wordpress/wp-content/plugins/piklist/includes/class-piklist-widget.php around line 58 “piklist_add_on::$available_add_ons[$from]” return NULL

      Any idea where the problem could come from?

      WordPress Multisite 4.0
      Piklist 0.9.4.17
      Theme: Twenty Fourteen
      No other plugins activated except Piklist ans Test(just my widget)

    • #2521
      Steve
      Keymaster

      @kattagami– I’m guessing Piklist is not detecting the path correctly on this type of setup. Can you activate Demos and get them working?

    • #2522
      kattagami
      Member

      Hello Steve,

      Yes the demo works perfectly, this problem makes me crazy so I’ve decided to re-install all my server, clean my database and re-install WordPress on my local PC. I will let you know the result.

      PS : Is there any reason why the version of Piklist came back to version 0.9.4.12 since yesteday on your website and on the WP repository? Mine is 0.9.4.17 …

    • #2523
      Steve
      Keymaster

      @kattagami– Just fixed WP.org… thanks for letting me know.

    • #2529
      kattagami
      Member

      Hello Steve,

      So I’ve re-installed my web server, deleted my database and re-installed WordPress.
      I’ve tested with only Piklist an my widget plugin and different WP theme (2014, blankslate …)

      … and always the same notices and no Title for my Piklist widget
      Notice: Undefined variable: title in …wordpress/wp-content/plugins/piklist/includes/class-piklist-widget.php on line 82
      Notice: Undefined variable: description in …wordpress/wp-content/plugins/piklist/includes/class-piklist-widget.php on line 82

      I tried on another remote server (Nginx not Apache) and I’ve got the same error.
      These errors display even with the Piklist Demos activated I said no in my previous message but in fact it’s “yes”

      define(‘WP_DEBUG’, true); must be set to “true” in the config file.

      I think the problem could come from Nginx or my Nginx config web file?
      Do you have an Nginx server to test the Piklist widgets?

      If no tell me, I maybe could ask someone on the forum.

    • #2533
      kattagami
      Member

      … I asked to a friend to test the Piklist widget on his Nginx + php-fpm install and he’s got the same errors (notices).

      So it seems there is something wrong between Piklist and Nginx/php-fpm :-/

    • #2536
      kattagami
      Member

      After several tests on different environments, I can reproduce the bug even on Apache:

      – Set WP_DEBUG to “true” in your config.php file
      – Activate the plugin “testwidget” http://we.tl/pLe6lMdC3g (it’s a simple plugin with a Piklist widget)

    • #2538
      Steve
      Keymaster

      @kattagami– There’s a bug in Piklist where it’s looking for the file plugin.php as the main plugin file. Change your main plugin name from test.php to plugin.php and it will work. We’ll fix in the next version.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.