SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
February 10, 2012, 06:34:36 am

Login with username, password and session length
Members
Total Members: 9903
Latest: jaredvaldez2
Stats
Total Posts: 27784
Total Topics: 4859
Online Today: 65
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 69
Total: 71
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: fatal error:  (Read 783 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: 9391


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
by exit
[Today at 06:10:53 am]

[Today at 03:46:15 am]

[Today at 02:30:16 am]

[Today at 02:29:51 am]

[February 09, 2012, 05:30:55 pm]

by exit
[February 09, 2012, 04:47:13 pm]

[February 08, 2012, 09:09:16 pm]

[February 08, 2012, 09:11:02 am]

[February 08, 2012, 09:07:32 am]

[February 08, 2012, 03:46:49 am]
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 4.702 seconds with 21 queries.