Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter UrL

    (@url)

    Hello Amimul,

    My registration email to Azure is my admin organization email that includes 20 mailboxes.

    Set/update the correct sender email address of course is configured correctly. Maybe the plugin doesn’t read sender setting.

    Tested with alias sales@domain.com and the default mailbox info@domain.com. Both of them return 423. I don’t know why the plugin is trying to send an email on behalf of what specified account. How to check this?

    Thread Starter UrL

    (@url)

    The previous post returns lot of errors.Don’t use it.

    The correct solution:
    Go to Plugins Ediot -> post-from-site/post-from-site.class.php

    Change the code from
    if (current_user_can('publish_posts') || $options['allow_anon']){
    to
    if ( is_user_logged_in() ) {

    Facebook/Twiiter users can submit posts now.

    Thread Starter UrL

    (@url)

    I fixed my problem,just replace the following code to capabilities.php

    That’s a fix if you are using the plugins [Post-From-Site] with disabled allow_non && [WP-Social-Login].

    function current_user_can( $capability ) {
    	// $current_user = wp_get_current_user();
        $current_user = get_the_author_ID();
    	if ( empty( $current_user ) )
    		return false;
    
    	$args = array_slice( func_get_args(), 1 );
    	$args = array_merge( array( $capability ), $args );
    	return call_user_func_array( array( $current_user, 'has_cap' ), $args );
    }
Viewing 3 replies - 1 through 3 (of 3 total)