We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

New Version 5 Support - Fundraising Plugin by Oxwall CS | Forum

dave Leader
dave Oct 28 '13

Hi just updated to new version, from 3 to 5.  Anyway it sais the project is by deleted user, so i went and created a new project and same thing.

 

see image below.

 

 

 

Update:

   ow_ocsfundraising_goal table  ownerId is NULL  which is the issue

 

Hope this helps

 

The Forum post is edited by dave Oct 28 '13
dave Leader
dave Oct 28 '13

issue could be here  ow_plugins/ocs_fundraising/classes/goal_add_form.php  i dont see any hidden field for owner (userid) in the form...

 

 

in  ow_plugins/ocs_fundraising/controllers/project.php it is not grabbing or storing the userId 

 

 

even when i hard code the function add like this

 

       $goal->ownerId = 1;     // OW::getUser()->getId();

 

it still does not store it..

 

also on another note there needs to be something like this to set the switch.. i know default is admin in the table but still might need something like this in the add function

 

//added by dave
if ( OW::getUser()->isAdmin() )
{
$goal->ownerType = 'admin';
}else{
      $goal->ownerType = 'user';
     }


             // original code
            // $goal->ownerType = 'user';

 

 

UPDATE:  This issue fixed in version 6 plugin update.. :)


 

The Forum post is edited by dave Nov 1 '13
dave Leader
dave Oct 28 '13

also i did notice a donate index and a donate php, does this work independently to accept funding or is another plugin required with this?

 

I ask because when i add my user id to the table so i can see the widget to test this i get "No payment gateways activated"

 

If so please add to your text description on the plugin page, thanks.

The Forum post is edited by dave Oct 28 '13
You do not have permission to reply this topic