Forum Replies Created

Viewing 15 replies - 31 through 45 (of 110 total)
  • Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @missveronicatv Wordfence is installed and the Azure IP is being blocked now

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @missveronicatv
    I found another set of access logs, these are the SSL access logs. The previous one I posted (with the Azure IP) is from the non-SSL access log.

    Here are the logs from the SSL one. There are none at the exact same time 15:40:41 but there are a lot at 15:40, here they are:

    173.164.1.21 - - [25/May/2021:15:40:00 -0400] "GET /wp-admin/images/spinner.gif HTTP/2" 200 3656 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/load-styles.php?c=0&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-bar,wp-jquery-ui-dialog,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menu&load%5Bchunk_1%5D=s,wp-pointer,widgets,site-icon,l10n,buttons,wp-auth-check,wp-color-picker,media-views,editor-buttons&ver=5.7.2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    70.32.23.61 - - [25/May/2021:15:40:00 -0400] "POST /wp-cron.php?doing_wp_cron=1621971600.9399290084838867187500 HTTP/1.1" 200 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-cron.php?doing_wp_cron=1621971600.9399290084838867187500" "WordPress/5.7.2; https://networ41.wwwmi3-ts3.a2hosted.com"
    173.164.1.21 - - [25/May/2021:15:40:05 -0400] "GET /wp-admin/post.php?post=3179&action=edit&classic-editor HTTP/2" 200 58416 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/edit.php?post_type=update_feed" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Platform/WordPress/Assets/dist/wordpress-editor.min.css?ver=3.5.0.7 HTTP/2" 200 694 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-admin/load-styles.php?c=0&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5Bchunk_1%5D=,site-icon,l10n,buttons,wp-auth-check,wp-color-picker,media-views,wp-jquery-ui-dialog&ver=5.7.2 HTTP/2" 200 108564 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-content/plugins/gravityforms/css/shortcode-ui.min.css?ver=2.5.2 HTTP/2" 200 296 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Admin/Assets/dist/smartslider-admin.min.css?ver=f0c3d3bd HTTP/2" 200 27046 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-content/plugins/wp-all-export-pro/static/js/pmxe_notice_dismiss.js?ver=1.6.5 HTTP/2" 200 288 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-content/plugins/download-monitor/assets/js/insert-download.min.js?ver=4.4.4 HTTP/2" 200 222 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:07 -0400] "GET /wp-content/plugins/user-role-editor-pro/pro/js/content-view-restrictions.js?ver=4.59.4 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Admin/Assets/dist/smartslider-backend.min.js?ver=f0c3d3bd HTTP/2" 200 163442 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-includes/css/editor.min.css?ver=5.7.2 HTTP/2" 200 5673 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-content/plugins/page-links-to/dist/meta-box.js?v=3.3.5 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-admin/images/spinner-2x.gif HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-content/plugins/popup-maker/assets/css/pum-admin-general.min.css?ver=1.16.1 HTTP/2" 200 6830 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-content/plugins/popup-maker/assets/css/pum-admin-shortcode-ui.min.css?ver=1.16.1 HTTP/2" 200 108 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-includes/js/autosave.min.js?ver=5.7.2 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-includes/js/jquery/suggest.min.js?ver=1.1-20110113 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-admin/js/tags-box.min.js?ver=5.7.2 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-admin/js/word-count.min.js?ver=5.7.2 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-admin/js/post.min.js?ver=5.7.2 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-content/plugins/the-events-calendar/common/src/resources/js/tribe-common.min.js?ver=4.13.2 HTTP/2" 200 124 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-includes/js/mediaelement/wp-mediaelement.min.js?ver=5.7.2 HTTP/2" 200 392 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET /wp-content/plugins/gravityforms/js/shortcode-ui.min.js?ver=2.5.2 HTTP/2" 200 3306 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-content/plugins/popup-maker/assets/js/admin-general.min.js?ver=1.16.1 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-content/plugins/popup-maker/assets/js/admin-shortcode-ui.min.js?ver=1.16.1 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-includes/js/wp-embed.min.js?ver=5.7.2 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-admin/js/editor-expand.min.js?ver=5.7.2 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Admin/Assets/fonts/Inter-Medium.woff2 HTTP/2" 200 95256 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Admin/Assets/dist/smartslider-admin.min.css?ver=f0c3d3bd" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Platform/WordPress/Assets/dist/wordpress-tinymce.min.js?wp-mce-49110-20201110 HTTP/2" 200 246 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-content/plugins/popup-maker/assets/js/mce-buttons.min.js?version=1.16.1&wp-mce-49110-20201110 HTTP/2" 304 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:10 -0400] "GET /wp-content/plugins/popup-maker/assets/images/admin/popup-maker-icon.png HTTP/2" 200 2601 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-content/plugins/popup-maker/assets/css/pum-admin-shortcode-ui.min.css?ver=1.16.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:10 -0400] "GET /wp-content/plugins/the-events-calendar-templates-and-shortcode/assets/css/ect-icon.png HTTP/2" 200 4701 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-content/plugins/the-events-calendar-templates-and-shortcode/assets/css/shortcode-generator.css?ver=5.7.2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:10 -0400] "GET /wp-content/plugins/popup-maker/assets/css/pum-site.min.css?wp-mce-49110-20201110 HTTP/2" 200 1675 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:10 -0400] "GET /wp-content/themes/generatepress/assets/css/admin/editor-style.css?wp-mce-49110-20201110 HTTP/2" 200 368 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:10 -0400] "GET /wp-content/plugins/wordpress-seo/css/dist/inside-editor-1630.css?wp-mce-49110-20201110 HTTP/2" 200 106 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:08 -0400] "GET / HTTP/2" 200 41553 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-json/tribe/events/v1/categories/?per_page=50 HTTP/2" 200 8041 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-json/tribe/events/v1/venues/?per_page=50&status=publish HTTP/2" 200 4217 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-json/tribe/events/v1/tags/?per_page=50 HTTP/2" 200 2839 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:09 -0400] "GET /wp-json/tribe/events/v1/organizers/?per_page=50&status=publish HTTP/2" 200 2090 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:25 -0400] "POST /wp-admin/admin-ajax.php HTTP/2" 200 100 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:40 -0400] "POST /wp-admin/admin-ajax.php HTTP/2" 200 100 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    173.164.1.21 - - [25/May/2021:15:40:55 -0400] "POST /wp-admin/admin-ajax.php HTTP/2" 200 100 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    72.192.133.62 - - [25/May/2021:15:40:58 -0400] "POST /wp-admin/admin-ajax.php HTTP/1.1" 400 5 "https://networ41.wwwmi3-ts3.a2hosted.com/user/24291/?um_action=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
    173.164.1.21 - - [25/May/2021:15:40:59 -0400] "POST /wp-admin/post.php HTTP/2" 302 0 "https://networ41.wwwmi3-ts3.a2hosted.com/wp-admin/post.php?post=3179&action=edit&classic-editor" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @missveronicatv The development website that the issue is occuring on is not Azure, it is hosted with A2 Hosting. But the current live production site that will eventually be replaced is on Microsoft Azure.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @missveronicatv

    It just happened again! I don’t know exactly when, there is no error log this time but the uploads/ultimatemember/ directory is empty again except for the temp directory. What the heck is going on?

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @missveronicatv

    There is no access log at the exact time, but there is one a minute or less before it:

    168.62.248.37 – – [25/May/2021:14:39:19 -0400] “GET /?nocache=2021-05-25T18:39:19.7636577Z HTTP/1.1” 301 0 “-” “azure-logic-apps/1.0 (workflow 5883055c00de484ca65e51bb8d9f50ea; version 08585868827675929780)”

    The IP lookup for 168.62.248.37 says it’s Microsoft Azure.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @missveronicatv Yes, also searched all child theme php files. I also searched the database to see if it was used anywhere by a code snippets plugin. It is only being used by the UM plugin on the website.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    Since the error trigged when the function remove_dir() was called in class-files.php on line 1199, there can only be so many different times this function is called. I searched all the plugin files and found the function in these files:

    uninstall.php
    class-admin.php
    class-admin-theme-updater.php
    2.0.24/functions.php
    class-user.php

    It looks like remove_dir() happens when these things happen:

    – when the plugin is uninstalled; removes entire ‘ultimatemember’ directory inside of ‘uploads’
    – when the purge_temp() function is called; removes a ‘temp’ directory
    – when the default UM templates are restored to theme directory
    – when the UM version was updated to 2.0.24; removes a ‘temp’ directory`
    – when a user is deleted; removes a ‘temp’ directory and removes the deleted user’s directory that’s inside the ‘ultimatemember’ directory

    Something caused one of these files to call the remove_dir() function to attempt to delete the uploads/ultimatemember/ directory and failed. Then somehow the uploads/ultimatemember/ directory ended up empty. The only thing left inside uploads/ultimatemember/ was a ‘temp’ directory.

    The error log makes it pretty obvious that Ultimate Member is the one deleting the user directories and files.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    Hi @champsupertramp, the version of UM is at 2.1.20.

    Why would something be attempting to delete/remove the entire ‘ultimatemember’ directory from the server?

    Thanks

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    Looks like the download issue was on my end. I rebooted and I am able to download 1.7.1 now. Thanks!

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    Forgot to mention exactly how the names are messed up – The Display names in 1.1 kept the spaces in between the names in the first and last name. e.g. First name = Bob, Last name = Schmob, in 1.1 Display name is Bob Schmob. In 1.2 Display name is BobSchmob, the space is gone.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @champsupertramp Thanks for pointing that out. I’ll get that corrected and see if that fixes the issue.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    Here’s one email notification that checks the string length of the current fields meta value. If the updated field has more or less, then the notification should fire.

    function csc_custom_email_notifications_company_desc( $notifications ){
    
        $notifications['user_updated_company_desc'] = array(
            'key'           	=> 'user_updated_company_desc',
            'title'         	=> __( 'A Supplier has updated their Company Description','um-groups' ),
            'subject'       	=> 'A Supplier has updated their Company Description ',
            'body'          	=> '',
            'description'   	=> __('Sends an email if a Supplier has updated their Company Description','ultimate-member'),
            'recipient'   	 	=> 'admin',
            'default_active' 	=> true
        );
    
        return $notifications;
    }
    add_filter( 'um_email_notifications', 'csc_custom_email_notifications_company_desc', 10, 1 );
    add_action('um_after_user_updated','csc_notify_when_user_updates_company_desc',10, 3);
    function csc_notify_when_user_updates_company_desc( $meta_key,$user, $args  ){
        
        // logged in member
        $user_id = $user->ID;
        um_fetch_user( $user_id );
        $recipient = '[email protected]';
    
        $profile_name = um_user('member_contact_2');
    
    	// viewed member profile
        $profilepage_id = um_profile_id();
        um_fetch_user($profilepage_id);
        $stock_number_value = um_user('stock_no');
    	
        // check stock meta value, if has s, get users that match stock value and get these users' meta data
        if (stripos($stock_number_value, 's') !== false) {
    
            $args = array(
                'meta_key'     => 'stock_no',
                'meta_value'   => $stock_number_value,
                'role'    => 'um_supplier',
            );
            $users = get_users( $args );
            if ($users) {
                foreach ( $users as $user ) {
                    $member_id = $user->ID;
                    $member_name = $user->first_name;
                    $company_info = $user->company_info;
                }
            }
        }
    
        $member_profile_url = home_url( '/' ).'user/'.$member_id.'/';
    	
        // if current meta key data has more or less string length, send email
        if( strlen($meta_key) < strlen($company_info) || strlen($meta_key) > strlen($company_info) ) {
    
            UM()->mail()->send( $recipient, 'user_updated_company_desc', array(
                'plain_text' => 1,
                'tags'  => array(
                    '{profile_name}',
                    '{company_info}',
                    '{member_name}',
                    '{member_profile_url}',
                ),
                'tags_replace' => array(
                    $profile_name,
                    $company_info,
                    $member_name,
                    $member_profile_url,
                )
            ) );
    
        }
    }

    Then here’s another function that checks a different meta key value:

    function um_custom_email_notifications_cnn_news( $notifications ){
    
        $notifications['user_updated_cnn_news'] = array(
            'key'           	=> 'user_updated_cnn_news',
            'title'         	=> __( 'A User has updated News settings','um-groups' ),
            'subject'       	=> '',
            'body'          	=> '',
            'description'   	=> __('Sends an email if the News settings are updated','ultimate-member'),
            'recipient'   	 	=> 'admin',
            'default_active' 	=> true
        );
        return $notifications;
    }
    add_filter( 'um_email_notifications', 'um_custom_email_notifications_cnn_news', 10, 1 );
    add_action('um_after_user_updated','csc_notify_when_user_updates_cnn_news',10, 3);
    function csc_notify_when_user_updates_cnn_news( $metakey, $user  ){
        $user_id = $user->ID;
        um_fetch_user( $user_id );
        $recipient = '[email protected]';
        // get meta keys
        $profile_name = um_user('member_contact_2');
        $list_uncc_text = um_user('list_uncc_text');
    
        if( $metakey != $list_uncc_text ) {
    		
    		// get first_name meta value of viewed profile
            $profilepage_id = um_profile_id();
            um_fetch_user($profilepage_id);
            $stock_number_value = um_user('stock_no');
    		
            if (stripos($stock_number_value, 's') !== false) {
    
                $args = array(
                    'meta_key'     => 'stock_no',
                    'meta_value'   => $stock_number_value,
                    'role'    => 'um_supplier',
                );
                $users = get_users( $args );
                if ($users) {
                    foreach ( $users as $user ) {
                        $member_id = $user->ID;
                        $member_name = $user->first_name;
                    }
                }
            }
    
            $member_profile_url = home_url( '/' ).'user/'.$member_id.'/';
    
            UM()->mail()->send( $recipient, 'user_updated_cnn_news', array(
                'plain_text'	 => 1,
                'tags'				 => array(
                    '{profile_name}',
                    '{member_name}',
                ),
                'tags_replace' => array(
                    $profile_name,
                    $member_name,
                )
            ) );
        }
    }

    So when all this code is together. If I were to update only one of targeted meta keys in the profile, I get both email notifications for the meta keys even if I only updated one of them.

    Is the user page you are trying to access assigned to be the UM User page? This is assigned in the Ultimate Member – Settings page – https://pathwayequityresearch.com/wp-admin/admin.php?page=um_options

    The sign in page and other Ultimate Member pages are assigned here. Did you set these up already?

    I just checked that page and I can’t access it. It says “Sorry, but you do not have permission to view this content.” so it looks like the plugin is working now.

    Thread Starter intarwebsdeveloper

    (@intarwebsdeveloper)

    @champsupertramp

    I think I was able to fix up your code snippet so it’s working a little better now. I added additional clauses, one for if ‘is_featured’ is set to 0 and another clause for newly registered members that have not made any changes to their profile yet. Then I made it so all the members appear alphabetically after the featured/pinned members. Here’s the updated code:

    
    <?php
    add_filter('um_prepare_user_query_args', 'um_custom_prepare_user_query_args', 999999);
    function um_custom_prepare_user_query_args($args)
    {
        $args['meta_query'][ ] = array(
            'relation' => 'OR',
            'featured_clause' => array(
                'key' => 'is_featured',
                'value' => '1',
                'compare' => '='
            ),
    	'regular_clause' => array(
                'key' => 'is_featured',
                'value' => '0',
                'compare' => '='
            ),
    	'newb_clause' => array(
                'key' => 'is_featured',
                'compare' => 'NOT EXISTS'
            )
        );
        $args['orderby'] = array(
    	'newb_clause' => 'DESC',
    	'regular_clause' => 'DESC',
    	'featured_clause' => 'ASC',
    	'display_name'
        );
        return $args;
    }?>
Viewing 15 replies - 31 through 45 (of 110 total)