SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 08:00:24 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 42
Total: 42
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: fatal error:  (Read 852 times)
prestigehackers
Jr. Member
**
Offline Offline

Posts: 50


View Profile
« on: August 07, 2010, 03:14:35 am »

im getting this error

Fatal error: Call to undefined function addMembersToGroup() in /home/content/95/6399695/html/Sources/Store2.php on line 4138

i tried adding a new membergroup called infected member. the only way to get this membergroup was to go to the store for regular members and get the free product that i made in it, this free product was suppose to bump the member up to the new membergroup that i made.

Basically im giving away a free product as a promotion and i wanna keep track of the people that have used it. so i made a membergroup for those people and made a product for them to use to get that membergroup.


here is the lines the error is talking about:


4136      // Also check cart items of members
4137      /*
4138      $result2 = $smcFunc['db_query']('', "
4139      SELECT
4140         SUM(quantity) as total
4141      FROM {db_prefix}store_cart
4142      WHERE ID_ITEM = $id");
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: August 07, 2010, 05:06:59 pm »

Posted an update to fix this issue
Version 1.3.11.1
!Fixed issue with SMF 2 RC3 when adding a member to a membergroup on purchase
Logged
prestigehackers
Jr. Member
**
Offline Offline

Posts: 50


View Profile
« Reply #2 on: August 07, 2010, 05:23:43 pm »

oh cool thanks man.

problem now though.. when a regular member tries to buy it now it gives this error:

You don't have permission to modify or assign membergroups


the regular memebers can now click on the store and and click on buy free product they dont get the fatal error but now its saying they dont have permissions to change the membergroup

here is a link to the product:
http://prestigehackers.com/index.php?action=store;sa=view;id=87


I have 2 custom fields added for the person to fill in, but the check box and the info i need from them is not showing on the transaction details for the order.
« Last Edit: August 08, 2010, 11:26:33 pm by prestigehackers » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.2 seconds with 18 queries.