- This topic has 7 replies, 2 voices, and was last updated 7 years, 4 months ago by
Steve.
-
AuthorPosts
-
-
October 3, 2014 at 11:39 am #2516
kattagamiMemberHello,
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) -
October 4, 2014 at 6:48 am #2521
SteveKeymaster@kattagami– I’m guessing Piklist is not detecting the path correctly on this type of setup. Can you activate Demos and get them working?
-
October 4, 2014 at 8:10 am #2522
kattagamiMemberHello 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 …
-
October 4, 2014 at 8:41 am #2523
SteveKeymaster@kattagami– Just fixed WP.org… thanks for letting me know.
-
October 7, 2014 at 8:57 am #2529
kattagamiMemberHello 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 82I 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.
-
October 7, 2014 at 11:11 am #2533
kattagamiMember… 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 :-/
-
October 7, 2014 at 3:45 pm #2536
kattagamiMemberAfter 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) -
October 7, 2014 at 4:20 pm #2538
SteveKeymaster@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.
-
-
AuthorPosts
- You must be logged in to reply to this topic.