jerrystewart99
Forum Replies Created
-
Forum: Plugins
In reply to: [amr users] amr list modification impossibleHi Anmari,
I’ve been doing a bit of digging and may have found something.
Recall that I have a working configuration locally and a broken one on my live site.
I’ve been focusing on one action that doesn’t work, namely the ‘Add new’ button on the ‘Overview & Tools’ page. I see a difference in the $_POST object in the two configurations that seems pertinent:
Working: [action] => save
Broken: [action] => um_update_field
um_ is the prefix for the Ultimate Member plugin.
I now recall that I have different versions of UM installed in the two configurations.
Investigating further and looking into the page source (via Firefox) I notice that
the amr form that is defined by the following line:
<form id=”userlist” action=”/wp-admin/admin.php?page=ameta-admin-overview.php” method=”post”>
has no closing tag ‘</form>’ and I suspect that the <input> ‘action’ is being overwritten by a subsequent form which happens to be a UM generated form.
I’m happy to keep digging however I wonder if you could shed some light on this as to whether you believe this to be an amr bug or not…Cheers and thanks for your time,
– JerryForum: Plugins
In reply to: [amr users] amr list modification impossibleg’day Anmari – from NZ ??
Not sure if I should start a new thread but my problem seems similar to theozefrench.
Firstly, your plugin is lovely.. it is everything I would want an export plugin to do and has saved me a pile of pain. Thank you… except for a wee problem.. when I migrated to my live site I can no longer create a list or rename a list (‘Overview & tools’ tab). Ive been developing locally using XAMPP and it all works perfectly.
Theme and plugins are the same except the live site has Wordfence and UpdraftPlus.. which I have tried de-activating.
Tried your ‘reset all option’ button and ‘rebuild cache’With ‘debug=true’ in config.php there are no messages in debug.txt
My environment looks like this:
Compare the memory limits to the memory stats shown in your cache status goIf the user and user meta numbers are large, you may experience problems with large lists.
If this happens, try: increasing php memory, clean up users (get rid of the spammy users), clean up usermeta. You may have records from inactive plugins.
This website with blog_id=1 and prefix=XXXXXXX_wp_ has:Plugin version: 4.24
Php version: 7.2.9
Wp version: 4.9.8
Php maximum execution time is: 30
WordPress Memory limit: 40M
WordPress Max Memory limit: 256M
Php Memory Limit: 256M
Charset: UTF-8At debug only: At 0.000 seconds, peak mem= 22 mb real_mem=22 mb – Before count users:
There are 74 total users: 1 administrator, 3 um_life-member, 2 um_fellow-member, 8 um_trainee-member, 54 um_clinical-member, 1 um_admin, 2 um_associate-member, 4 um_on-hold, 0 none,At debug only: At 0.001 seconds, peak mem= 22 mb real_mem=22 mb – After count users:
Do you have any ideas?
Thanks – Jerry
Forum: Plugins
In reply to: [MC4WP: Mailchimp User Sync] sync WP user to MC interest groupthe classes of interest (no pun intended) are
MC4WP_MailChimp
MC4WP_MailChimp_List
MC4WP_MailChimp_Interest_Category
if you find the relevant files you can inspect the methods and attributes you need.Here is a code snippet..
/**
* Get the list with the required name (case insensitive)
*
* @param $mailchimp MC4WP_MailChimp
* @return MC4WP_MailChimp_List
*/
function get_mailchimp_list( $mailchimp, $list_name ) {$lists = $mailchimp->get_lists();
foreach( $lists as $list ) {
if( strcasecmp( $list->name, $list_name ) == 0 ) {
return $list;
}
}log_message( ‘ERROR: No list found = ‘ . $list_name );
return null;
}/**
* Get the interest category with the required name (case insensitive)
*
* @param $list MC4WP_MailChimp_List
* @return MC4WP_MailChimp_Interest_Category
*/
function get_mailchimp_category( $list, $category_name ) {// $category is of type MC4WP_MailChimp_Interest_Category
foreach( $list->interest_categories as $category ) {
if ( strcasecmp( $category->name, $category_name ) == 0 )
return $category;
}log_message( ‘ERROR: No category found = ‘ . $category_name );
return null;
}function your_fucntion() {
$mailchimp = new MC4WP_MailChimp();
$list = get_mailchimp_list( $mailchimp, ‘your_list_name’ );
if ( !isset( $list) || $list == null ) {
return false;
}$category = get_mailchimp_category( $list, ‘your_category_name’ );
if ( $category == null ) {
return false;
}// the list id is here! .. etc.
$list_id = $list->id;// do some more interesting stuff….
}hope that helps – Jerry
Hi & thanks for your reply,
I tried disabling all plugins except UM
I tried creating a new Members Directory from scratch.Same result: 2.0.17 works, 2.0.21 doesn’t
Some search criteria work properly:
‘role’ (multiselect) returns the right result
‘name’ (text) returns the right result
‘services’ & ‘location’ (multiselect) are incorrect
‘gender’ (radio) is incorrect.the members directory is here:
https://crystalvalley-auckland.co.nz/members/any further ideas?
thanks
– JerryForum: Plugins
In reply to: [MC4WP: Mailchimp User Sync] sync WP user to MC interest groupHi Lap,
Thanks for your reply. I understand that is beyond the scope of support here.
After a bit of investigation and digging I have managed to get that all sorted too. I’m happy to share if anyone else has this issue.-Jerry
Forum: Plugins
In reply to: [MC4WP: Mailchimp User Sync] sync WP user to MC interest groupWell that seems to have done the trick… after figuring out how to do that ?? .. used a home-made plugin in the end.. great fun.
and thank you heaps for the link.. that is much appreciated.
I don’t suppose you have any idea how to locate the mailchimp group-id programatically do you.. I currently have it hardcoded.
cheers, Jerry
from the wordpress dashboard ->
settings|permalinksselect the permalink setting: ‘Post name’
That fixed my problem, I hope it fixes yours.
– Jerry
ok, will do.
thanks,
JerryHi,
um/contact/sales is for pre-purhcase questions and specifically states that the question is not a bug.
the um technical support page is for paid customers only.
I am not, at this stage, a paid customer so this would seem to be the correct (and only) forum for my question.
thanks, Jerry