Forum Replies Created
-
AuthorPosts
-
justinMemberHi Steve,
I think I have identified some things that can help. For me the problem is directly related to Object caching.
If I have Object Cache Enabled (method -Disk), it prevents any saving. I tested this my resting all settings to default. With default settings it saves fine. When I check the Object Cache enabled checkbox it does not. I left all the object cache advanced settings to default.
To be honest I am not really sure exactly what it does, but my Host “A2 hosting” has a plugin that auto-configures w3 total cache plugin for me. I am fine turning off object cache if that is what it takes to use piklist.
Also I am running the most recent release of Piklist 0.9.9.7
justinMemberSame here, I can only save my fields with W3 Total Cache disabled.
justinMemberYea, so it is a conflict that is caused by piklist? I found that I can only edit my fields when I have w3 Total cache is deactivated.
justinMemberLooks like it is working now. Thank you for helping me get it working again!
justinMemberYea that seemed to allow me to save correctly. I will try and rebuild the workflow again to see if that fixes it.
Thanks,
justinMemberHi Kevin,
I don’t know why exactly, but it is working now. I did take out some complex code that was erroring out that was on another portion of my website, and it seemed to have fixed it.
Sorry, but we can close this ticket.
justinMemberNo I have all my wordpress debug errors and warnings saved in a file, and when I am trying to save the field, there is no errors or warnings.
justinMemberI copied the form above exactly and it is doing the same thing.
I attached a screenshot of what it looks like after I change the value, but it seems to be a problem with the meta_key not being deleted from the related post.
Here is my entire meta-box:
<?php /* Title: User Registration Post Type: trip_reg */ piklist('field', array( 'type' => 'select' ,'field' => 'reg_user' ,'label' => __('Person', 'Extreme') ,'value' => '0' // Sets default to None ,'description' => __('Please select your spouse below', 'Extreme') ,'choices' => array( 0 => "Select User" ) + piklist( get_users( array( 'orderby' => 'display_name' ,'order' => 'asc' ) ,'objects' ) ,array( 'ID' ,'display_name' ) ) )); piklist('field', array( 'type' => 'select' ,'field' => '_' . piklist::$prefix . 'relate_post' ,'label' => __('Mission Trip', 'extreme') ,'choices' => piklist( get_posts(array( 'post_type' => 'post' ,'numberposts' => -1 ,'orderby' => 'title' ,'order' => 'ASC' )) ,array('ID', 'post_title') ) ,'relate' => array( 'scope' => 'post' ) )); piklist('field', array( 'type' => 'select' ,'field' => 'reg_mobi' ,'label' => 'Mobilizer' ,'value' => '0' // Sets default to None ,'description' => 'Please select your Mobilizer below' ,'choices' => array("None" => "None" ) + piklist( get_users( array( 'role' => 'aamrole_5584794554851' ,'orderby' => 'display_name' ,'order' => 'asc' ) ,'objects' ) ,array( 'ID' ,'display_name' ) ) )); piklist('field', array( 'type' => 'radio' ,'field' => 'shirt_size' ,'value' => 'Large' // Sets default to large ,'label' => 'T-Shirt Size' ,'choices' => array( 'Small' => 'Small' ,'Medium' => 'Medium' ,'Large' => 'Large' ,'XLarge' => 'XLarge' ) )); piklist('field', array( 'type' => 'radio' ,'field' => 'reg_basic_form' ,'value' => 'False' // Sets default to large ,'label' => 'Basic Form Completed' ,'choices' => array( 'True' => 'True' ,'False' => 'False' ) )); piklist('field', array( 'type' => 'radio' ,'field' => 'reg_medical' ,'value' => 'False' // Sets default to large ,'label' => 'Medical Form Completed' ,'choices' => array( 'True' => 'True' ,'False' => 'False' ) )); ?>
justinMemberHi Kevin,
I have updated to 0.9.9.4, and the field only works as a checkbox. When I save it as a select field and try and change the value, when it saves, it has saved the new record and did not remove the old one.
I looked in the database, and the post I am editing, only keeps one __relate_post meta, but it does not delete the __relate_post of the last related post it was related too.
Here is the field:
piklist('field', array( 'type' => 'select' ,'field' => '_' . piklist::$prefix . 'relate_post' ,'label' => __('Mission Trip', 'extreme') ,'choices' => piklist( get_posts(array( 'post_type' => 'post_mission_trip' ,'numberposts' => -1 ,'orderby' => 'meta_value_num' ,'meta_key' => 'trip_begin' ,'order' => 'DESC' ,'post_status' => 'any' )) ,array('ID', 'post_title') ) ,'relate' => array( 'scope' => 'post' ) ));I am not using any other relate_post fields with this post type or in the metabox.
justinMember0.9.9.4 and the example’s in the demo as fixed this. Thank you.
Solved.
justinMemberHi guys, I just tried to update my data again after updating to 0.9.9.3, and I received the this error still in my debug logs.
[19-Oct-2015 15:08:04 UTC] WordPress database error Got error 'empty (sub)expression' from regexp for query SELECT DISTINCT SQL_CALC_FOUND_ROWS xs_users.* FROM xs_users INNER JOIN xs_usermeta ON ( xs_users.ID = xs_usermeta.user_id ) WHERE 1=1 AND ( ( xs_usermeta.meta_key = 'user_jobs_group' AND CAST(xs_usermeta.meta_value AS CHAR) RLIKE '' ) ) ORDER BY user_login ASC made by do_action('wp_ajax_piklist_update_0_9_9'), call_user_func_array, Piklist_Update_0_9_9->ajax, include('/plugins/extreme-items/parts/meta-boxes/job-meta-box.php'), WP_User_Query->__construct, WP_User_Query->query [19-Oct-2015 15:08:05 UTC] WordPress database error Got error 'empty (sub)expression' from regexp for query SELECT DISTINCT SQL_CALC_FOUND_ROWS xs_users.* FROM xs_users INNER JOIN xs_usermeta ON ( xs_users.ID = xs_usermeta.user_id ) WHERE 1=1 AND ( ( xs_usermeta.meta_key = 'user_jobs_group' AND CAST(xs_usermeta.meta_value AS CHAR) RLIKE '' ) ) ORDER BY user_login ASC made by do_action('wp_ajax_piklist_update_0_9_9'), call_user_func_array, Piklist_Update_0_9_9->ajax, include('/plugins/extreme-items/parts/meta-boxes/job-side.php'), WP_User_Query->__construct, WP_User_Query->query
justinMemberThank you that fixed it. I also updated my taxonomy to not have the dashes.
Thanks for the hint on the extend. It is just suppose to make the entire metabox’s id tagsdiv-trip-type? Well what ever it was suppose to do I can wait until your documentation come out. I can update my taxonomies now.
Solved
justinMemberSo That was part of the problem. I can see that it did update some of my other fields, but it keeps failing. It just stalls, and this is what is in the debug log. I have tried running it 2 times and it keeps getting stuck here.
[14-Oct-2015 17:26:08 UTC] WordPress database error Got error 'empty (sub)expression' from regexp for query SELECT user_id FROM xs_usermeta WHERE meta_key = 'user_jobs_group' AND CAST(meta_value AS CHAR) RLIKE '' ORDER BY CAST(meta_value AS CHAR) made by do_action('wp_ajax_piklist_update_0_9_9'), call_user_func_array, Piklist_Update_0_9_9->ajax, include('/plugins/extreme-items/parts/meta-boxes/job-meta-box.php'), WP_User_Query->__construct, WP_User_Query->prepare_query, WP_Meta_Query->get_sql, apply_filters_ref_array, call_user_func_array, Piklist_WordPress::get_meta_sql, Piklist_WordPress::get_sql_for_query [14-Oct-2015 17:26:09 UTC] WordPress database error Got error 'empty (sub)expression' from regexp for query SELECT user_id FROM xs_usermeta WHERE meta_key = 'user_jobs_group' AND CAST(meta_value AS CHAR) RLIKE '' ORDER BY CAST(meta_value AS CHAR) made by do_action('wp_ajax_piklist_update_0_9_9'), call_user_func_array, Piklist_Update_0_9_9->ajax, include('/plugins/extreme-items/parts/meta-boxes/job-side.php'), WP_User_Query->__construct, WP_User_Query->prepare_query, WP_Meta_Query->get_sql, apply_filters_ref_array, call_user_func_array, Piklist_WordPress::get_meta_sql, Piklist_WordPress::get_sql_for_queryI uploaded my two files that are listed in the error logs.
https://drive.google.com/folderview?id=0BwbidsNuwyPoVEJodHdzeGZkaFU&usp=sharingthanks
justinMemberI am logged in as the administrator and it says “You do not have sufficient permissions to access this page.”
justinMemberHow would I force the rerun of the script?
Would I delete the “piklist_updates” row from my wp_options table?
I think maybe it just was not run properly, because I think my plugin was not turned on when the last update was run.
Thanks,
-
AuthorPosts