Jump to content

Invite System


Adriano Faria

Recommended Posts

@Adriano Faria When I activate this app I get:

ParseError: syntax error, unexpected '[', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' (0)
#0 [internal function]: IPS\IPS::autoloader()
#1 [internal function]: spl_autoload_call()
#2 /home/site/public_html/system/Task/Task.php(718): class_exists()
#3 /home/site/public_html/system/Task/Task.php(198): IPS\_Task::constructFromData()
#4 /home/site/public_html/applications/core/interface/task/task.php(56): IPS\_Task::queued()
#5 {main}

BACKTRACE
 

#0 /home/site/public_html/init.php(1004): IPS\_Log::log()
#1 [internal function]: IPS\IPS::exceptionHandler()
#2 {main}

 

Link to comment
Share on other sites

2 minutes ago, Steph40 said:

@Adriano Faria When I activate this app I get:

ParseError: syntax error, unexpected '[', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' (0)
#0 [internal function]: IPS\IPS::autoloader()
#1 [internal function]: spl_autoload_call()
#2 /home/site/public_html/system/Task/Task.php(718): class_exists()
#3 /home/site/public_html/system/Task/Task.php(198): IPS\_Task::constructFromData()
#4 /home/site/public_html/applications/core/interface/task/task.php(56): IPS\_Task::queued()
#5 {main}

BACKTRACE
 

#0 /home/site/public_html/init.php(1004): IPS\_Log::log()
#1 [internal function]: IPS\IPS::exceptionHandler()
#2 {main}

 

Sent a message with a fix while I review the whole app.

Link to comment
Share on other sites

2 hours ago, Adriano Faria said:

Sent a message with a fix while I review the whole app.

Hey Adriano....I'm getting the same thing I think:

ParseError: syntax error, unexpected '[', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' (0)
#0 [internal function]: IPS\IPS::autoloader('IPS\\invite\\task...')
#1 [internal function]: spl_autoload_call('IPS\\invite\\task...')
#2 /xxx/system/Task/Task.php(718): class_exists('IPS\\invite\\task...')
#3 /xxx/system/Task/Task.php(198): IPS\_Task::constructFromData(Array)
#4 /xxx/applications/core/interface/task/task.php(56): IPS\_Task::queued()
#5 {main}

I had to disable Invites as it caused a huge backlog of system log errors.

If there's a fix, could you pass it along?  Thanks!

Link to comment
Share on other sites

Hello Adriano,

I get this error...

REPLACE INTO `invite_groups` ( `is_id`, `is_canvite`, `is_unlimited` ) VALUES ( 2, NULL, NULL )
IPS\Db\Exception: Column 'is_canvite' cannot be null (1048)
#0 /home1/tab32716/public_html/system/Db/Db.php(967): IPS\_Db->preparedQuery('/*tab32716_foru...', Array)
#1 /home1/tab32716/public_html/applications/invite/sources/Member/Group.php(34): IPS\_Db->replace('invite_groups', Array)
#2 /home1/tab32716/public_html/applications/invite/extensions/core/GroupForm/Invite.php(60): IPS\invite\Member\_Group::setGroupData(2, NULL, NULL)
#3 /home1/tab32716/public_html/applications/core/modules/admin/members/groups.php(224): IPS\invite\extensions\core\GroupForm\_Invite->save(Array, Object(IPS\Member\Group))
#4 /home1/tab32716/public_html/system/Dispatcher/Controller.php(90): IPS\core\modules\admin\members\_groups->form()
#5 /home1/tab32716/public_html/applications/core/modules/admin/members/groups.php(39): IPS\Dispatcher\_Controller->execute()
#6 /home1/tab32716/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\members\_groups->execute()
#7 /home1/tab32716/public_html/admin/index.php(13): IPS\_Dispatcher->run()
#8 {main}

 

Link to comment
Share on other sites

19 minutes ago, SaebMsarwa said:

I get this error...

Happens in any group? Not sure how that's possible. Both columns has 0 (zero) as default value and pass zero if they're disabled. I'm able to save any combination in groups: can invite and unlimited invitations enabled, disable, one enabled and other disabled, and vice-verse. No error.

Update your install, btw. You're not using the latest. If it insists, send a PM with an ACP account. I'll take a look today later or tomorrow in the morning.

Link to comment
Share on other sites

  • 1 month later...
Quote

SELECT COUNT(*) FROM `core_members` WHERE member_group_id=?7 OR FIND_IN_SET(7,mgroup_others)
IPS\Db\Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?7 OR FIND_IN_SET(7,mgroup_others)' at line 1 (1064)
#0 /home4/kaleidx3/public_html/Alpha1/system/Db/Select.php(383): IPS\_Db->preparedQuery('/*kaleidx3_Inv0...', Array, true)
#1 /home4/kaleidx3/public_html/Alpha1/system/Db/Select.php(441): IPS\Db\_Select->runQuery()
#2 /home4/kaleidx3/public_html/Alpha1/system/Db/Select.php(365): IPS\Db\_Select->rewind()
#3 /home4/kaleidx3/public_html/Alpha1/applications/invite/extensions/core/Queue/Bonus.php(39): IPS\Db\_Select->first()
#4 /home4/kaleidx3/public_html/Alpha1/system/Task/Task.php(134): IPS\invite\extensions\core\Queue\_Bonus->preQueueData(Array)
#5 /home4/kaleidx3/public_html/Alpha1/applications/invite/modules/admin/invite/bonus.php(74): IPS\_Task::queue('invite', 'Bonus', Array, 1)
#6 /home4/kaleidx3/public_html/Alpha1/system/Dispatcher/Controller.php(101): IPS\invite\modules\admin\invite\_bonus->manage()
#7 /home4/kaleidx3/public_html/Alpha1/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute()
#8 /home4/kaleidx3/public_html/Alpha1/admin/index.php(13): IPS\_Dispatcher->run()

I am able to give bonus invites to the default groups (Members, Admin, Mods) However this group (Alpha Testers) the first time kicked an error

I tried to re-create by doing it a second time /after/ I had given the main group (Members) Bonus tickets, and it did not give the error

Just putting it here as a FYI in case you need it

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

I have just purchased the plug and I am testing by sending a test invitation but I receive the following error:

Error: Undefined constant "IPS\Theme\raw" (0)
#0 /home/XXX/public_html/system/Email/Email.php(925): IPS\Theme\email_plaintext_invite_invite_system('Test', 'f5cced00846daf6...', 1636466942, 'EMAIL ADDRESS', 'Dean', Object(IPS\Email\Outgoing\Smtp))
#1 /home/XXX/public_html/system/Email/Email.php(350): IPS\_Email::template('invite', 'invite_system', 'plaintext', Array)
#2 /home/XXX/public_html/system/Email/Email.php(651): IPS\_Email->compileContent('plaintext', Object(IPS\Member))
#3 /home/XXX/public_html/system/Email/Email.php(562): IPS\_Email->_compileMessage(Object(IPS\Member), '--==_mimepart_5...', '\r\n', 998)
#4 /home/XXX/public_html/system/Email/Outgoing/Smtp.php(198): IPS\_Email->compileFullEmail('EMAIL ADDRESS', Array, Array, 'enquiries@upthe...', NULL, Array)
#5 /home/XXX/public_html/system/Email/Email.php(708): IPS\Email\Outgoing\_SMTP->_send('EMAIL ADDRESS', Array, Array, 'EMAIL ADDRESS', NULL, Array)
#6 /home/XXX/public_html/applications/invite/sources/Invite/Invite.php(30): IPS\_Email->send('EMAIL ADDRESS')
#7 /home/XXX/public_html/init.php(902) : eval()'d code(85): IPS\invite\_Invite::sendInvitation('EMAIL ADDRESS', 'Test', 'f5cced00846daf6...', 'EMAIL ADDRESS', 'Dean', 1636466942)
#8 /home/XXX/public_html/applications/core/modules/front/system/settings.php(57): IPS\core\modules\front\system\invite_hook_is_Settings->_invitesystem()
#9 /home/XXX/public_html/system/Dispatcher/Controller.php(101): IPS\core\modules\front\system\_settings->manage()
#10 /home/XXX/public_html/applications/core/modules/front/system/settings.php(42): IPS\Dispatcher\_Controller->execute()
#11 /home/XXX/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_settings->execute()
#12 /home/XXX/public_html/index.php(13): IPS\_Dispatcher->run()
#13 {main}

I have tested my email settings and I am receiving emails from the forum. Just get this when I try send out a new invite.

Edited by Dean Hamer
Link to comment
Share on other sites

On 10/11/2021 at 11:33 AM, Dean Hamer said:

Yes, I'm using SMTP.

Still can't reproduce, even using SMTP:

0igZLJP.png

 

mUF27pu.png

 

pB6ZgAA.png

 

yZfR7m3.png

 

But this is 4.6.0 and I'm waiting for the admin to update to 4.6.7, which will happen today later, according to him.

I'll post back when I'm able to test in latest version.

Link to comment
Share on other sites

On 10/13/2021 at 1:02 PM, Adriano Faria said:

Still can't reproduce, even using SMTP:

0igZLJP.png

 

mUF27pu.png

 

pB6ZgAA.png

 

yZfR7m3.png

 

But this is 4.6.0 and I'm waiting for the admin to update to 4.6.7, which will happen today later, according to him.

I'll post back when I'm able to test in latest version.

Hi,

 

Have you managed to test on 4.6.7? I can't seem to fix this my end.


Thanks,

Dean

Link to comment
Share on other sites

4 hours ago, Adriano Faria said:

No mate, not yet. I can’t test in my host so I need. But I honestly don’t see any possibility of a huge change between minor versions like 4.6.0 to 4.6.7.

Post a screenshot of your email settings like I did please.

Untitled.thumb.png.accd65bf0e436234e0a546edc2fce329.png

Link to comment
Share on other sites

I just wanted to offer that I am running Invision Community v4.6.7, invite system v2.6.2 and SMTP for email and everything just works great.  My community is running under the default theme and the server is running PHP v7.4.24.

I sent out a couple of invites yesterday, users received emails fine and registered without issue.

I don't mean to interfere and will leave the diagnostics to Adriano and Dean.  I just wanted to offer that my default installation is working and thought the working specs might help narrow down the issue Dean is experiencing.

 

Link to comment
Share on other sites

  • 4 weeks later...

Hey Adriano,

I'm using Invite System 2.6.3 on IPB 4.6.8.

I was editing one of my member groups (Guest) - specifically, I was toggling Can download original image? under the Gallery tab of the Guest group.  When I tried toggling this value and saving the changes, I got the following error:

REPLACE INTO `invite_groups` ( `is_id`, `is_canvite`, `is_unlimited` ) VALUES ( 2, NULL, NULL )
IPS\Db\Exception: Column 'is_canvite' cannot be null (1048)
#0 /home/XXXX/public_html/system/Db/Db.php(969): IPS\_Db->preparedQuery('/*lfctlr_INVI...', Array)
#1 /home/XXXX/public_html/applications/invite/sources/Member/Group.php(34): IPS\_Db->replace('invite_groups', Array)
#2 /home/XXXX/public_html/applications/invite/extensions/core/GroupForm/Invite.php(60): IPS\invite\Member\_Group::setGroupData(2, NULL, NULL)
#3 /home/XXXX/public_html/applications/core/modules/admin/members/groups.php(224): IPS\invite\extensions\core\GroupForm\_Invite->save(Array, Object(IPS\Member\Group))
#4 /home/XXXX/public_html/system/Dispatcher/Controller.php(90): IPS\core\modules\admin\members\_groups->form()
#5 /home/XXXX/public_html/applications/core/modules/admin/members/groups.php(39): IPS\Dispatcher\_Controller->execute()
#6 /home/XXXX/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\members\_groups->execute()
#7 /home/XXXX/public_html/admin/index.php(13): IPS\_Dispatcher->run()
#8 {main}

If I temporarily disable the Invite System I can change the value no problem, but this is something you should probably look into. 🙂

Edited by LiquidFractal
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Similar Content

    • By Adriano Faria
      This application will allow your community to use an invitation system for new registrations. You can make it mandatory (or not, depending on your configuration). In this case, an invitantion code will be required in order to register a new account in your community.
      Public side features:
      Users can send invitation in 2 places: + Create menu and Invitations on Account Settings. New icon on board top (beside Notifications and Messenger) to display the converted invitees and how many invites the user has. This icon also shows the remaining invitations for the member (just like how many users are online on Chat). 2 widgets: Top Inviters (per week, month, year and general) and Latest Converted Invitees, which are invitations converted to membership. Shows "Invited by" on user profile and on profile card (hover on user link). Tab on user profile to display their invitees (converted invitations) Notification to the member who invited someone when an account is created using their invitation Campaigns: You can bring Invite System to the real world by using campaings, where people can register using same code for a given number of days or until a limit of registration is reached. Campaigns DO NOT send emails. The purpose is to use its code somewhere else. Campaigns are independent from the invitation system, so you can simply leave it disabled if you don't want to use it. You can also use invitations and campaigns together. More. Settings:
      Enable Invite System Require an Invitation to Register an Account Restore deleted or expired invitation Display "Invitation" option on + Create menu Display the popup Invitations link on board top? Display total of remaining invitations Invitation Expires after X days Earn one Invitation at every X new content posted More. ACP Features:
      Invitations Management: a place where you can see the status of each invitation. The status are: PENDING, CONVERTED and EXPIRED. You can invite people, delete or resend invitations. You can also create batch invitations, to be used on a campaign or to be posted elsewhere. It won't send any emails. Bonus form: you can give invitations to a specific member or to a whole member group Integration with Members Shop Integration with Commerce Note:
      It doesn't work in Commerce registration (if you have packages in register screen)
    • By Adriano Faria
      This application will allow members to create and manage raffles and giveaways on your board.
      Notice:
      Requirement: For Raffles: Commerce: https://invisionpower.com/features/commerce For Giveaways: Commerce NOT required THIS IS NOT AN UPGRADE of the old app (for IP.Board 3), so if you used the old app you probably still have data from the old app in your database, take a read on Manual.pdf in the zip file or request support BEFORE you install this app. Each purchase entitles you to use Raffles System on one Community installation. Be aware that may have local laws regarding paying for the tickets unless you are registered as a non-profit organization, or have special authorization to do so. Some sites like Paypal usually shut accounts down or even can take actions against the accounts of people using their site in that manner. Features:
      Ability to choose which type of content per category: only Raffles, only Giveaways or both Up to 100 prizes per raffle/giveaway (category setting) Restrictions members participation per raffle/giveaway by: Tickets per member (raffles only) Number of participants Content count Reputation points/likes Number of days as member Groups Multiple participants per raffle/giveaway (participants can buy more than one ticket (raffle only) to increase their odds) Unlimited categories of raffles/giveaways with permissions,  extra fields, plus unlimited depth of parent-child relationships with a lot of settings, permissions and extra fields Category Icons Integrates to Commerce, so you can choose a specific payment gateway, tax, fee and comission and use multi-currencies Ability to force users to fill the price in currencies Ability to switch between currencies with a click to display raffle prices Raffles Management on ACP: a place where admins can control status of raffles: activate raffle, change expiration date and perform mod actions like pin/unpin, lock/unlock, etc Per member settings: allows to access the app and allows to submit raffles Per group settings: allows to access the app, how many approvwd content items must have to access the app and restrict X raffles/giveaways by a period of time (day, week, month and year) Robust Admin CP Restrictions Ability to take specific actions when a member is deleted or flagged as a spammer Ability for users to report potentially offensive content using the built-in Report Center Supports item marking, allowing your users to see what adverts have been added or commented/reviewed on Integrates to: Activity Streams Share Links Tag/Prefixs system Notifications such as new raffles/giveaways, etc Follow System for raffles/giveaways and categories Announcements Advertisements Search system ACP Live Seach (categories) Moderating system, which all commons permissions, such as pin, unpin, delete, feature, move, etc., for Raffles, Comments and Reviews Ability to create RSS feeds of all adverts More... Suggestions and Bugs report:
      Submit suggestions to the Suggestions forum: http://www.sosinvision.com.br/ips4/index.php?/forum/35-suggestions/ Submit bug reports to the official Bug Tracker for this app: http://www.sosinvision.com.br/ips4/index.php?/tracker/raffles/
    • By Marafa
      How to reach the Ticket system for client support
      the new request bottom here 
      https://invisioncommunity.com/clientarea/support/
       
      gives  the message , before it was showing an input form where i can submit the requet
      Oops, this help center no longer exists
    • By DawPi
      Description
      This app allows you to run elections on your board, good for members who wan't to run for staff positions etc. 
      How it works
      Admin adds an Organization. Admin then adds the Positions. Admin then adds the Ballot. Admin then adds positions for those Ballot. Admin then adds Nominees for those Positions. Then the Voters vote.
    • By kims79
      Hello,
      When I try to activate gogole auth on our forum, I get the following error log when visiting the profile edit page (https://fallout-generation.com/settings/😞
      TypeError: Cannot access offset of type string on string (0)
      #0 /var/www/vhosts/fallout-generation.com/httpdocs/system/Login/Handler/OAuth2/Google.php(299): IPS\Login\Handler\OAuth2\_Google->_userData()
      #1 /var/www/vhosts/fallout-generation.com/httpdocs/applications/core/modules/front/system/settings.php(158): IPS\Login\Handler\OAuth2\_Google->userProfileName()
      #2 /var/www/vhosts/fallout-generation.com/httpdocs/applications/core/modules/front/system/settings.php(57): IPS\core\modules\front\system\_settings->_overview()
      #3 /var/www/vhosts/fallout-generation.com/httpdocs/system/Dispatcher/Controller.php(101): IPS\core\modules\front\system\_settings->manage()
      #4 /var/www/vhosts/fallout-generation.com/httpdocs/applications/core/modules/front/system/settings.php(42): IPS\Dispatcher\_Controller->execute()
      #5 /var/www/vhosts/fallout-generation.com/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_settings->execute()
      #6 /var/www/vhosts/fallout-generation.com/httpdocs/index.php(13): IPS\_Dispatcher->run()
      #7 {main}
      Pile des appels: 
      #0 /var/www/vhosts/fallout-generation.com/httpdocs/init.php(1004): IPS\_Log::log()
      #1 [internal function]: IPS\IPS::exceptionHandler()
      #2 {main}
      In addition, the connect button does not work and returns an error 503
      Have you ever encountered this problem? 
      thank you
       
×
×
  • Create New...