Craig Tucker

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • in reply to: Search stopped working for one client name #45224
    Craig Tucker
    Participant

    I figured it out. I noticed that the search for user is partially based on user role. The user role had changed. I added the correct role for the user and all is good now.

    Also, in the process I learned how to show first last name using your filter. That was not available in the distant past but I am grateful that it is now. I can now delete Force First Last Name plugin!

    in reply to: Just updated. Can I role back? #26980
    Craig Tucker
    Participant

    Thanks I just noticed that change in your documentation and updated. It seems to work. Thanks.

    in reply to: Just updated. Can I role back? #26971
    Craig Tucker
    Participant

    Taking a closer look. The function that I am using to insert a message upon submission of a Gravity Forms object apparently is not including me as a participant in the discussion now. So it posts to my patient but I am not included as a participant. This is the code that I am using for my function:

    add_action(‘user_register’,’returning_client’);
    function returning_client($user_id){
    // the wp meta_user field we are looking for
    global $wpdb;
    $current_redirect_value = get_user_meta( $user_id, ‘payment’, true );
    update_user_meta( $user_id, ‘renew’, date(“Y-m-d”, strtotime(“-1 years”)));
    if ($current_redirect_value == “returning”){
    $message = array(
    ‘message_title’ => ‘IMPORTANT! It is time to update your information.’,
    ‘message_content’ => ‘<p>Welcome Back!</p>,
    ‘message_to_id’ => $user_ID,
    );
    $override = array(
    ‘post_author’ => 1,
    );
    //Post message in Frontend PM
    $message_id = fep_send_message( $message, $override );
    }
    }

    What would I need to add given your recent updates so that I am posted as a participant in this message?

    in reply to: New update crashed site #18041
    Craig Tucker
    Participant

    Ok, your edit works:

    @include_once ‘PEAR.php’;

    if ( ! class_exists( ‘PEAR’ ) ) {
    require_once __DIR__ . ‘/PEAR.php’;
    }

    All is well, thanks.

    Craig

    in reply to: New update crashed site #18039
    Craig Tucker
    Participant

    No luck with refresh. I have tried on different browsers and still no luck. I am using piping. Modifying open_basedir did not make a difference.

    in reply to: New update crashed site #18031
    Craig Tucker
    Participant

    I am using WordPress 4.9.7

    in the error log:

    [06-Oct-2018 04:28:27 UTC] PHP Warning: require_once(): open_basedir restriction in effect. File(/volume1/@appstore/PEAR/PEAR.php) is not within the allowed path(s): (/var/services/web:/tmp:/var/services/tmp) in /volume1/web/wordpress/wp-content/plugins/front-end-pm-pro/pro/fep-email-parser/mimeDecode.php on line 65
    [06-Oct-2018 04:28:27 UTC] PHP Warning: require_once(/volume1/@appstore/PEAR/PEAR.php): failed to open stream: Operation not permitted in /volume1/web/wordpress/wp-content/plugins/front-end-pm-pro/pro/fep-email-parser/mimeDecode.php on line 65
    [06-Oct-2018 04:28:27 UTC] PHP Fatal error: require_once(): Failed opening required ‘PEAR.php’ (include_path=’.:/var/packages/PEAR/target’) in /volume1/web/wordpress/wp-content/plugins/front-end-pm-pro/pro/fep-email-parser/mimeDecode.php on line 65

    in reply to: New update crashed site #18029
    Craig Tucker
    Participant

    Yep, tried it again. Version 10.1.3. White screen. [HTTP/1.1 500 Internal Server Error 2061ms]. I will try the debugging.

    in reply to: Help with Version 10.1.1 Database Changes #17474
    Craig Tucker
    Participant

    Thanks, your edit is perfect:

    
    		$attachment[] = array(
    		 'att_file' => $pathtofile,
    		 'att_mime' => 'application/pdf',
    		);
    		//Add attachment to Frontend PM post
           FEP_Attachments::init()->insert( $message_id, $attachment );
    

    I can clearly see that your modification the the database is much better. Now on to OpenEMR. I will look at FEP_Message_Query. Thanks again,
    Craig

    in reply to: Help with Version 10.1.1 Database Changes #17470
    Craig Tucker
    Participant

    What I see is that you have moved all messages to their own table: wp_fep_messages

    That changes a lot. So for Gravity Forms what I need to understand is how attachments are assigned to messages now.

    For OpenEMR since all messages are in their own table now I will need to completely re write the query for that table obviously. I am wondering about your use of the wp_postmeta table. In the old system it was being used to track participants, deletions of messages with pm_delete and _fep_delete_by_; then clearing of messages with pm_clear.

    Since we are no longer using the post table, p.post_type = ‘fep_message’ is not necessary. That should simplify the query.

    Am I on the right track?

    in reply to: Help with Version 10.1.1 Database Changes #17464
    Craig Tucker
    Participant

    And to clarify, the problem I am having with GravityForms is inserting the PDF of the form with the message. The Message is posting fine. But my pdf file of the form is not inserted anymore. So I am supposing that the field that held the attachment data has changed in some way?

    And the problem with the OpenEMR is that I am not able to grab new messages and pull them into OpenEMR anymore. So I imagine the problem is that one of these fields or functions has changed or no longer exists or there is a new dependency that I need to include in my query:

    fep_get_option
    fep_get_userdata
    fep_send_message

    fep_message

    _fep_participants
    _fep_delete_by_
    _fep_participants

    in reply to: License won't activate #16711
    Craig Tucker
    Participant

    Please go to Front End PM PRO > Settings > Licenses
    Then remove your license key and save changes, again input your license key and again save changes.

    This worked for me.
    Thanks,
    Craig

    in reply to: Announcement Problems #6508
    Craig Tucker
    Participant

    The appropriate roles are selected. One anomaly may be that I added the administrator role after the first post of the announcement. So perhaps that is an issue.

    in reply to: Revive deleted string #6506
    Craig Tucker
    Participant

    That does it thanks.

    in reply to: Revive deleted string #6461
    Craig Tucker
    Participant

    I suppose you mean:

    if ($post->post_type = ‘fep_message’ && $post->post_parent != 0){

    That will be better. Thanks.

    in reply to: Revive deleted string #6454
    Craig Tucker
    Participant

    This works to refresh the thread and revive the deleted participants if placed in functions.php

    
        add_action('save_post', 'undelete_thread');
        function undelete_thread($post_id) {
            $post = get_post($post_id);
            if ($post->post_type = 'fep_message'){
                $participants = fep_get_participants( $post->post_parent );
                foreach( $participants as $participant )        
                {
                    delete_post_meta($post->post_parent,'_fep_delete_by_'. $participant );    
                }
            }
        } 
    
    
Viewing 15 posts - 1 through 15 (of 28 total)