Solved ParseError: syntax error, unexpected '|', expecting ';' or '{

zoldos

Registered
Registered
User Moods Manager
Invite System
Joined
Feb 10, 2022
Messages
18
Reaction score
9
I found another issue. I seem able to send e-mail invites and create personalized codes. However, when someone tries to register using these codes, I get these two server errors:

Code:
[LIST]
[*]ParseError: syntax error, unexpected '|', expecting ';' or '{'
[*]src/addons/XenSoluce/InviteSystem/Admin/Controller/Logs.php:12
[*]Generated by: Draconis Vex
[*]Nov 9, 2023 at 11:55 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/var/www/vhosts...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('XenSoluce\\Invit...')
#2 [internal function]: spl_autoload_call('XenSoluce\\Invit...')
#3 src/XF/Container.php(267): class_exists('XenSoluce\\Invit...')
#4 src/XF/App.php(1625): XF\Container->createObject('XenSoluce\\Invit...', Array, true)
#5 src/XF/Container.php(234): XF\App->XF\{closure}('XenSoluce\\Invit...', Array, Object(XF\Container))
#6 src/XF/App.php(2959): XF\Container->create('controller', 'XenSoluce\\Invit...', Array)
#7 src/XF/Mvc/Dispatcher.php(291): XF\App->controller('XenSoluce\\Invit...', Object(XF\Http\Request))
#8 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XenSoluce\\Invit...', 'Order', Object(XF\Mvc\RouteMatch), NULL, NULL)
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), NULL, NULL)
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(34) "/admin.php?invitation/logs/orders/"
  ["referrer"] => string(56) "https://bloodofsouls.com/admin.php?invitation/send-email"
  ["_GET"] => array(1) {
    ["invitation/logs/orders/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }

And:

Code:
[LIST]
[*]ParseError: syntax error, unexpected '|', expecting ';' or '{'
[*]src/addons/XenSoluce/InviteSystem/Entity/InvitationCarts.php:57
[*]Generated by: Unknown account
[*]Nov 9, 2023 at 11:53 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/var/www/vhosts...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('XenSoluce\\Invit...')
#2 [internal function]: spl_autoload_call('XenSoluce\\Invit...')
#3 src/XF/Mvc/Entity/Manager.php(51): class_exists('XenSoluce\\Invit...')
#4 src/XF/Mvc/Entity/Manager.php(69): XF\Mvc\Entity\Manager->getEntityClassName('XenSoluce\\Invit...')
#5 src/XF/Mvc/Entity/Finder.php(774): XF\Mvc\Entity\Manager->getEntityStructure('XenSoluce\\Invit...')
#6 src/XF/Mvc/Entity/Finder.php(1701): XF\Mvc\Entity\Finder->join('InvitationCart', false, true)
#7 src/XF/Mvc/Entity/Finder.php(610): XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn('InvitationCart....', true)
#8 src/XF/Mvc/Entity/Finder.php(274): XF\Mvc\Entity\Finder->columnSqlName('InvitationCart....', true)
#9 src/XF/Mvc/Entity/Finder.php(138): XF\Mvc\Entity\Finder->buildCondition('InvitationCart....', 'validate')
#10 src/addons/XenSoluce/InviteSystem/XF/Pub/Controller/Register.php(162): XF\Mvc\Entity\Finder->where('InvitationCart....', 'validate')
#11 src/addons/XenSoluce/InviteSystem/XF/Pub/Controller/Register.php(17): XenSoluce\InviteSystem\XF\Pub\Controller\Register->getErrorInvitation('FEnQb-FDfX4hEjw...')
#12 src/XF/Mvc/Dispatcher.php(352): XenSoluce\InviteSystem\XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(XenSoluce\InviteSystem\XF\Pub\Controller\Register), NULL)
#14 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\InviteSystem\XF\Pub\Controller\Register), NULL)
#15 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#17 src/XF.php(524): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(18) "/register/register"
  ["referrer"] => string(25) "https://bloodofsouls.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(14) {
    ["_xfToken"] => string(8) "********"
    ["username"] => string(0) ""
    ["55295bc6b57036720feea3976e3fe12701dc7b31"] => string(4) "test"
    ["9998b3aaed31648a8c089674cbd04c3ee914d65b"] => string(18) "xxx@xxxcom"
    ["61db8361ac7d3a0c72c4d9af15c69216abe7dd08"] => string(9) "123456789"
    ["code"] => string(32) "FEnQb-FDfX4hEjwHFRA0HQ0vLYW3Lkvt"
    ["custom_fields"] => array(3) {
      ["fantasy001"] => string(2) "01"
      ["custom006"] => string(0) ""
      ["custom001"] => string(0) ""
    }
    ["g-recaptcha-response"] => string(1591) "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQRDvbAob3b8jGVV9Gg8QQ5WiHh2NwPDbkfS9_zeuGts3P-lGS_WcBS3K-wSkn8jlkya79RJHZvtf_v4hg8934gxUsLWlaW02oPe_kyrrlAbV4Cp7obNlNSGMptAe_-AdoS-_hFv87Ko3ChiZ9mgzqDrSpiUmd8HNpi_IbaufzbHjca0--Ip4L6vpA8Yc0NP_GhmnTKGzRPGV_yBJ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Neqq4fxAzlaS43UcQL4H1iIo-WSZKS17l8EhJ_NrXBXKQEmHFXNdm83Tm0LEkJs2ws71pwnblZaKp07wW4TRs6cdXvDGpprR-fbQ5fNKx3SKOuBOKKyJ6ZKtwdFDfcYmwNsbHjYiRlQ68RYmDIU50FbD3LTBYmAh6Ih3z1gzGafzWz8rOUDjPbgTQeSJEpuxnlmhcgoQo5hxeND857a_UJUeRCVw3U6Yfhj6BPfpJ96lWVcJ8vRvE4KoOr3jvSWGg6kRwSAKbNLZXwc-bwWJ2I_dHoNcdZcU0L1-e9WDERWpjpMd9LLMdSr26vceQaYtVhBnfFDfpqQtl_TLpT8jPgSPse-A7rG6x919V3nHZ_hm9SQhFZw_MZVjM3JMUrprKbng41eBLJMypRwN7EinPNCBR_cYElCPETCM_EIxhfNE3gUtThNtUZpwjrgVuWqV_fjO1XKcLai1JluUVPEZ0HargPWMXJW7tKKOI7jYRmxuPkXbkFmK65Lb6LY5mWMgURNTs9iysuflbJoETUtKbc3mJAAwYrunpS3kULos-QMKENxnd6zGd1e6mx9LnhPPRqydkQWFNwLXt2U0oESVSiAT-XMtxQoQE5i_1NxiAt4hN_M_sMp76TX431SsfHLLqjmrNEja-MWwhsmpY9OiZ92e6JS33U1Ps6I5sPHmKob-Z_1MSPV84wAKhi_B0oMsS3dkrDvVK9TOKePSjZXhwzmVNxduoc2hhcmRfaWTODTtkKaJwZAA.dxB0b4UYo77u47XAS5RqY1Da1wPCJ4A0_nbT5mHlbWo"
    ["reg_key"] => string(16) "mdvRbbWMtnlfJn_V"
    ["753793724b714e4701167200bb320754be8aea4b"] => string(15) "America/Chicago"
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Please help!
 
Back
Top Bottom