Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@swalker– Piklist is a code-based framework. The fields that are not saving are either in your theme or in a custom plugin. If you can find them and send it to support at piklist dot com, we can try to reproduce.
SteveKeymasterWhich PHP version are you using? This was the only change to 1.0.9 and it was for a PHP 7.4 notice: https://github.com/piklist/piklist/commit/0e6bde52d0244b0ffd6b7aef1aa43aee0d94fb89
SteveKeymasterTry reinstalling WordPress. Same version.
These errors are coming from WordPress files.
December 17, 2020 at 12:02 pm in reply to: Notice: Trying to access array offset on value of type bool #11111
SteveKeymasterYou can download version 1.0.11 from WordPress.org, which should fix the issue.
Changelog is here: https://wordpress.org/plugins/piklist/#developers
December 16, 2020 at 5:33 pm in reply to: Notice: Trying to access array offset on value of type bool #11109
SteveKeymaster@swalker– Thor said the change worked. We’ll get it out tomorrow and you can upgrade normally.
December 16, 2020 at 4:32 pm in reply to: Notice: Trying to access array offset on value of type bool #11107December 16, 2020 at 4:20 pm in reply to: Notice: Trying to access array offset on value of type bool #11103
SteveKeymasterIf your Piklist code is in a custom plugin then I need that plugin. If it’s in a custom theme, then I need that theme.
How to tell:
PLUGIN: look for a/parts/folder
THEME: look for a/piklist/parts/folderDecember 16, 2020 at 3:53 pm in reply to: Notice: Trying to access array offset on value of type bool #11096
SteveKeymasterUgh. This is tough to test because I can’t reproduce. Can you email me your Piklist code so I can test? Send to support at piklist.com
December 16, 2020 at 3:48 pm in reply to: Notice: Trying to access array offset on value of type bool #11094
SteveKeymasterPlease double check it saved, because it’s still referencing line 126 even though the old code is probably 127 or 128
December 16, 2020 at 3:39 pm in reply to: Notice: Trying to access array offset on value of type bool #11092
SteveKeymasterLooks like it may be a PHP 7.4 thing. Can you edit lines 126-136 in class-piklist-meta.php and change to this:
if( !is_null( $meta_box['id'])) { if ($meta_box['id'] == $id) { if ($action == 'remove') { unset($wp_meta_boxes[$page][$context][$priority][$order]); return $order; } $check = true; } }Let me know if that fixes the issue.
December 16, 2020 at 3:13 pm in reply to: Notice: Trying to access array offset on value of type bool #11089
SteveKeymaster@swalker– not the file from the Piklist plugin. The file that generating the fields that are throwing that error
December 16, 2020 at 3:06 pm in reply to: Notice: Trying to access array offset on value of type bool #11085
SteveKeymasterCan you send me the Piklist
/parts/file that is outputting that error?
SteveKeymasterTry commenting out each
fieldarray in the Piklist file and see if you can narrow it down to a field. That would help.
SteveKeymasterCan you post the file that has the fields that are not saving? If you can add it as a gist that would be great: https://gist.github.com/
SteveKeymasterYou can wrap the field in a PHP conditional statement. In future versions of Piklist this might not work as expected. It would better to place this field in it’s own meta box.
Here’s an example of conditional code:
global $post; $pages = array( 20, 32, 49 ); if ( in_array( $post->ID, $pages ) ) { piklist('field', array( 'type' => 'textarea', 'field' => 'welcome-intro', 'label' => 'Welcome', 'type' => 'editor', 'scope' => 'post_meta', )); } -
AuthorPosts