Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 181
Total: 181

Author Topic: fatal error:  (Read 4249 times)

0 Members and 1 Guest are viewing this topic.

Offline prestigehackers

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
fatal error:
« 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");

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: fatal error:
« 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline prestigehackers

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: fatal error:
« 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 »

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
6675 Views
Last post May 07, 2009, 08:13:45 pm
by SMFHacks
6 Replies
5332 Views
Last post April 18, 2010, 06:24:17 pm
by SMFHacks
9 Replies
7345 Views
Last post July 07, 2013, 12:01:29 pm
by SMFHacks
4 Replies
3930 Views
Last post March 03, 2015, 01:40:32 pm
by kgirlsusa
0 Replies
4187 Views
Last post August 25, 2016, 02:57:44 am
by niknik

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal