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

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.
×
×
  • Create New...