XF2 [8WR] Discord Integration

XF2 [8WR] Discord Integration [Paid] 2.0.1.9

No permission to buy ($30.00)
#65
I would like to be able to disable the possibility to register with Discord. Please let me know how to do that or please enable it in a future release.
 
Last edited:

Tasanar

Active member
#68
Was working fine for about a week but now once again it wants random users to save something to their desktop.

Screen1.png


What is going on now? No edits, no customs. Randomly too uses with Chrome can never seem to get it to sync.
 

gforce

Active member
#69
I was having this issue, i really really tried to hunt down the bug. went through my database, reinstalled the files, but get this everytime on install.

  • ErrorException: [E_NOTICE] Array to string conversion
  • src/XF/Db/Mysqli/Statement.php:63
  • Generated by: *****
  • Jan 28, 2018 at 10:50 PM
Stack trace
#0 [internal function]: XF::handlePhpError(8, '[E_NOTICE] Arra...', '/var/www/vhosts...', 63, Array)
#1 src/XF/Db/Mysqli/Statement.php(63): mysqli_stmt->execute()
#2 src/XF/Db/AbstractAdapter.php(74): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(150): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/addons/EWR/Discord/Setup.php(35): XF\Db\AbstractAdapter->insert('xf_connected_ac...', Array)
#5 src/XF/AddOn/StepRunnerInstallTrait.php(60): EWR\Discord\Setup->installStep2(Array)
#6 src/XF/AddOn/StepRunnerInstallTrait.php(27): EWR\Discord\Setup->installStepRunner(2, Array)
#7 src/XF/Admin/Controller/AddOn.php(378): EWR\Discord\Setup->install(Array)
#8 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\AddOn->actionInstall(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Install', 'html', Object(XF\Mvc\ParameterBag), 'listAddOns', Object(XF\Admin\Controller\AddOn), NULL)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
Request state
array(4) {
["url"] => string(38) "/admin.php?add-ons/EWR-Discord/install"
["referrer"] => string(59) "https://plexguide.com/admin.php?add-ons/EWR-Discord/install"
["_GET"] => array(1) {
["add-ons/EWR-Discord/install"] => string(0) ""
}
["_POST"] => array(7) {
["_xfProcessing"] => string(1) "1"
["continue"] => string(1) "1"
["confirm"] => string(1) "1"
["params"] => string(2) "[]"
["count"] => string(1) "1"
["finished"] => string(1) "0"
["_xfToken"] => string(8) "********"
}
}
 

gforce

Active member
#70
Just checking in. Any info? Cannot create any forums or do anythign because of this issue. Went into phpadmin to hunt this down, but cannot find. Use to VB to find errors in the past.
 

gforce

Active member
#72
I was able to create a Node/ Forums no issues. Did you try re-uploading the files?
I did an uninstall of it and ever since, it has been causing problems. I'm tracking to find where this record is at, but no luck :( (did a reinstall) and still same errors as noted above when attempting to install.

When i have it installed, it does this for the nodes:

XF\Db\Exception: MySQL query error [1364]: Field 'discord_options' doesn't have a default value in src/XF/Db/AbstractStatement.php at line 212
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 174
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 69
  3. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 74
  4. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 150
  5. XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1381
  6. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1113
  7. XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 69
  8. XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 159
  9. XF\Mvc\FormAction->run() in src/XF/Admin/Controller/AbstractNode.php at line 110
  10. XF\Admin\Controller\AbstractNode->actionSave() in src/XF/Mvc/Dispatcher.php at line 249
  11. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  12. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  13. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1880
  14. XF\App->run() in src/XF.php at line 328
  15. XF::runApp() in admin.php at line 13
 

Tasanar

Active member
#75
I reported it before and he fixed it. After about a week I started getting reports from new users that, depending on the browser, it would force them to try and download something. Seems to be some issue with syncing. No edits on my end other than this addon. Is a real problem right now. People get sketched out when it looks like I am trying to force a download on them.
 

Jaxel

Well-known member
#77
Was working fine for about a week but now once again it wants random users to save something to their desktop.

View attachment 167545


What is going on now? No edits, no customs. Randomly too uses with Chrome can never seem to get it to sync.
I can't track down this issue... I have a feeling its something on Discord's end, but who knows. I'm not having this issue on my own website.

I was having this issue, i really really tried to hunt down the bug. went through my database, reinstalled the files, but get this everytime on install.

  • ErrorException: [E_NOTICE] Array to string conversion
  • src/XF/Db/Mysqli/Statement.php:63
  • Generated by: *****
  • Jan 28, 2018 at 10:50 PM
Stack trace
#0 [internal function]: XF::handlePhpError(8, '[E_NOTICE] Arra...', '/var/www/vhosts...', 63, Array)
#1 src/XF/Db/Mysqli/Statement.php(63): mysqli_stmt->execute()
#2 src/XF/Db/AbstractAdapter.php(74): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(150): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/addons/EWR/Discord/Setup.php(35): XF\Db\AbstractAdapter->insert('xf_connected_ac...', Array)
#5 src/XF/AddOn/StepRunnerInstallTrait.php(60): EWR\Discord\Setup->installStep2(Array)
#6 src/XF/AddOn/StepRunnerInstallTrait.php(27): EWR\Discord\Setup->installStepRunner(2, Array)
#7 src/XF/Admin/Controller/AddOn.php(378): EWR\Discord\Setup->install(Array)
#8 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\AddOn->actionInstall(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Install', 'html', Object(XF\Mvc\ParameterBag), 'listAddOns', Object(XF\Admin\Controller\AddOn), NULL)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
Request state
array(4) {
["url"] => string(38) "/admin.php?add-ons/EWR-Discord/install"
["referrer"] => string(59) "https://plexguide.com/admin.php?add-ons/EWR-Discord/install"
["_GET"] => array(1) {
["add-ons/EWR-Discord/install"] => string(0) ""
}
["_POST"] => array(7) {
["_xfProcessing"] => string(1) "1"
["continue"] => string(1) "1"
["confirm"] => string(1) "1"
["params"] => string(2) "[]"
["count"] => string(1) "1"
["finished"] => string(1) "0"
["_xfToken"] => string(8) "********"
}
}
I have this fixed for the next version. Its a minor bug, that does not hurt the addon in any way; it doesn't even interrupt the install process. So I'm in no rush to push the update out.

I did an uninstall of it and ever since, it has been causing problems. I'm tracking to find where this record is at, but no luck :( (did a reinstall) and still same errors as noted above when attempting to install.

When i have it installed, it does this for the nodes:

XF\Db\Exception: MySQL query error [1364]: Field 'discord_options' doesn't have a default value in src/XF/Db/AbstractStatement.php at line 212
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 174
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 69
  3. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 74
  4. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 150
  5. XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1381
  6. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1113
  7. XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 69
  8. XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 159
  9. XF\Mvc\FormAction->run() in src/XF/Admin/Controller/AbstractNode.php at line 110
  10. XF\Admin\Controller\AbstractNode->actionSave() in src/XF/Mvc/Dispatcher.php at line 249
  11. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  12. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  13. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1880
  14. XF\App->run() in src/XF.php at line 328
  15. XF::runApp() in admin.php at line 13
What files have you edited? I'm looking at the code right now, and the node entity expansion clearly has a default value:
Code:
$structure->columns['discord_options'] = ['type' => self::SERIALIZED_ARRAY, 'required' => false, 'default' => []];
 

Tasanar

Active member
#78
No idea I have everything set up just right.

I run a gaming community so sometimes people will hop in discord and try to link to our forums site, because it gets them a different Discord group.

For some it works fine but now it seems, unless they were already synced and unsycned, they all get prompted to once again install that PHP file.
 

gforce

Active member
#79
I can't track down this issue... I have a feeling its something on Discord's end, but who knows. I'm not having this issue on my own website.


I have this fixed for the next version. Its a minor bug, that does not hurt the addon in any way; it doesn't even interrupt the install process. So I'm in no rush to push the update out.


What files have you edited? I'm looking at the code right now, and the node entity expansion clearly has a default value:
Code:
$structure->columns['discord_options'] = ['type' => self::SERIALIZED_ARRAY, 'required' => false, 'default' => []];
Ya no idea why it didn’t work, but at least figured the simple fix. I saw it in yours and wanted to at least attempt to figure the problem. Sometimes people complain about everything on forum without reason.
 
Top