Friending

     Went to add someone as a friend today and got a bad error (below).  I'm new to elgg and don't have a clue as to where to start troubleshooting this.

 

Fatal Error.

Class 'hypeJunction\Access\Collection' not found

Log at time 1529021617 may have more data.

Error Object
(
[message:protected] => Class 'hypeJunction\Access\Collection' not found
[string:Error:private] => Error: Class 'hypeJunction\Access\Collection' not found in /var/www/html/mod/hypeAttachments/classes/hypeJunction/Attachments/Events.php:58
Stack trace:
#0 [internal function]: hypeJunction\Attachments\Events::saveMessageAttachments('create', 'object', Object(ElggObject))
#1 /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(113): call_user_func_array(Array, Array)
#2 /var/www/html/vendor/elgg/elgg/engine/classes/ElggEntity.php(1453): Elgg\EventsService->trigger('create', 'object', Object(ElggObject))
#3 /var/www/html/mod/messages/start.php(298): ElggEntity->save()
#4 /var/www/html/mod/messages/actions/messages/send.php(39): messages_send('Nooptropics', '<p>&nbsp;&nbsp;...', 7840, 36, 0)
#5 /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Includer.php(18): include('/var/www/html/m...')
#6 /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/ActionsService.php(176): Elgg\Includer::includeFile('/var/www/html/m...')
#7 /var/www/html/vendor/elgg/elgg/engine/lib/actions.php(22): Elgg\ActionsService->execute('messages/send')
#8 [internal function]: _elgg_action_handler(Array, 'action')
#9 /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Router.php(100): call_user_func('_elgg_action_ha...', Array, 'action')
#10 /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(436): Elgg\Router->route(Object(Elgg\Http\Request))
#11 /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(384): Elgg\Application->run()
#12 /var/www/html/index.php(8): Elgg\Application::index()
#13 {main}
[code:protected] => 0
[file:protected] => /var/www/html/mod/hypeAttachments/classes/hypeJunction/Attachments/Events.php
[line:protected] => 58
[trace:Error:private] => Array
(
[0] => Array
(
[function] => saveMessageAttachments
[class] => hypeJunction\Attachments\Events
[type] => ::
[args] => Array
(
[0] => create
[1] => object
[2] => ElggObject Object
(
[url_override:protected] =>
[temp_metadata:protected] => Array
(
)

[temp_annotations:protected] => Array
(
)

[temp_private_settings:protected] => Array
(
)

[volatile:protected] => Array
(
)

[orig_attributes:protected] => Array
(
)

[attributes:protected] => Array
(
[time_created] => 1529021617
[guid] => 7872
[type] => object
[subtype] => 22
[owner_guid] => 7840
[container_guid] => 7840
[site_guid] => 1
[access_id] => 2
[time_updated] => 1529021617
[last_action] => 1529021617
[enabled] => yes
[title] => Nooptropics
[description] => <p>&nbsp;&nbsp;&nbsp;&nbsp; Since we share an interest in nootropics, I've added you as a friend.</p>
)

[valid:protected] =>
[time:ElggData:private] =>
)

)

)

[1] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php
[line] => 113
[function] => call_user_func_array
[args] => Array
(
[0] => Array
(
[0] => hypeJunction\Attachments\Events
[1] => saveMessageAttachments
)

[1] => Array
(
[0] => create
[1] => object
[2] => ElggObject Object
(
[url_override:protected] =>
[temp_metadata:protected] => Array
(
)

[temp_annotations:protected] => Array
(
)

[temp_private_settings:protected] => Array
(
)

[volatile:protected] => Array
(
)

[orig_attributes:protected] => Array
(
)

[attributes:protected] => Array
(
[time_created] => 1529021617
[guid] => 7872
[type] => object
[subtype] => 22
[owner_guid] => 7840
[container_guid] => 7840
[site_guid] => 1
[access_id] => 2
[time_updated] => 1529021617
[last_action] => 1529021617
[enabled] => yes
[title] => Nooptropics
[description] => <p>&nbsp;&nbsp;&nbsp;&nbsp; Since we share an interest in nootropics, I've added you as a friend.</p>
)

[valid:protected] =>
[time:ElggData:private] =>
)

)

)

)

[2] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/ElggEntity.php
[line] => 1453
[function] => trigger
[class] => Elgg\EventsService
[type] => ->
[args] => Array
(
[0] => create
[1] => object
[2] => ElggObject Object
(
[url_override:protected] =>
[temp_metadata:protected] => Array
(
)

[temp_annotations:protected] => Array
(
)

[temp_private_settings:protected] => Array
(
)

[volatile:protected] => Array
(
)

[orig_attributes:protected] => Array
(
)

[attributes:protected] => Array
(
[time_created] => 1529021617
[guid] => 7872
[type] => object
[subtype] => 22
[owner_guid] => 7840
[container_guid] => 7840
[site_guid] => 1
[access_id] => 2
[time_updated] => 1529021617
[last_action] => 1529021617
[enabled] => yes
[title] => Nooptropics
[description] => <p>&nbsp;&nbsp;&nbsp;&nbsp; Since we share an interest in nootropics, I've added you as a friend.</p>
)

[valid:protected] =>
[time:ElggData:private] =>
)

)

)

[3] => Array
(
[file] => /var/www/html/mod/messages/start.php
[line] => 298
[function] => save
[class] => ElggEntity
[type] => ->
[args] => Array
(
)

)

[4] => Array
(
[file] => /var/www/html/mod/messages/actions/messages/send.php
[line] => 39
[function] => messages_send
[args] => Array
(
[0] => Nooptropics
[1] => <p>&nbsp;&nbsp;&nbsp;&nbsp; Since we share an interest in nootropics, I've added you as a friend.</p>
[2] => 7840
[3] => 36
[4] => 0
)

)

[5] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Includer.php
[line] => 18
[args] => Array
(
[0] => /var/www/html/mod/messages/actions/messages/send.php
)

[function] => include
)

[6] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/ActionsService.php
[line] => 176
[function] => includeFile
[class] => Elgg\Includer
[type] => ::
[args] => Array
(
[0] => /var/www/html/mod/messages/actions/messages/send.php
)

)

[7] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/lib/actions.php
[line] => 22
[function] => execute
[class] => Elgg\ActionsService
[type] => ->
[args] => Array
(
[0] => messages/send
)

)

[8] => Array
(
[function] => _elgg_action_handler
[args] => Array
(
[0] => Array
(
[0] => messages
[1] => send
)

[1] => action
)

)

[9] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Router.php
[line] => 100
[function] => call_user_func
[args] => Array
(
[0] => _elgg_action_handler
[1] => Array
(
[0] => messages
[1] => send
)

[2] => action
)

)

[10] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Application.php
[line] => 436
[function] => route
[class] => Elgg\Router
[type] => ->
[args] => Array
(
[0] => Elgg\Http\Request Object
(
[attributes] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
)

)

[request] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[__elgg_token] => J_akJ53nal6GKdYcWPWTFA
[__elgg_ts] => 1529021595
[recipients] => 7840
[subject] => Nooptropics
[body] => <p>&nbsp;&nbsp;&nbsp;&nbsp; Since we share an interest in nootropics, I've added you as a friend.</p>
[extendedtinymcelang] => en
)

)

[query] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[__elgg_uri] => /action/messages/send
)

)

[server] => Symfony\Component\HttpFoundation\ServerBag Object
(
[parameters:protected] => Array
(
[CONTENT_LENGTH] => 252
[CONTENT_TYPE] => application/x-www-form-urlencoded
[CONTEXT_DOCUMENT_ROOT] => /var/www/html
[CONTEXT_PREFIX] =>
[DOCUMENT_ROOT] => /var/www/html
[GATEWAY_INTERFACE] => CGI/1.1
[H2PUSH] => on
[H2_PUSH] => on
[H2_PUSHED] =>
[H2_PUSHED_ON] =>
[H2_STREAM_ID] => 15
[H2_STREAM_TAG] => 384-15
[HTTP2] => on
[HTTPS] => on
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_ACCEPT_LANGUAGE] => en-US
[HTTP_COOKIE] => phpbb3_paz46_k=8db64a8b739a11c0; phpbb3_paz46_u=3; phpbb3_paz46_sid=e9c0e96e928c5ff94a82b64a33d3b0b1; Elgg=q18eqkv9v33h7s2gnna775hjt1
[HTTP_DNT] => 1
[HTTP_HOST] => social.eskimo.com
[HTTP_REFERER] => https://social.eskimo.com/messages/compose?send_to=7840
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_USER_AGENT] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
[PATH] => /bin:/usr/bin:/usr/local/bin
[QUERY_STRING] => __elgg_uri=action/messages/send
[REDIRECT_H2PUSH] => on
[REDIRECT_H2_PUSH] => on
[REDIRECT_H2_PUSHED] =>
[REDIRECT_H2_PUSHED_ON] =>
[REDIRECT_H2_STREAM_ID] => 15
[REDIRECT_H2_STREAM_TAG] => 384-15
[REDIRECT_HTTP2] => on
[REDIRECT_HTTPS] => on
[REDIRECT_QUERY_STRING] => __elgg_uri=action/messages/send
[REDIRECT_SSL_TLS_SNI] => social.eskimo.com
[REDIRECT_STATUS] => 200
[REDIRECT_URL] => /action/messages/send
[REDIRECT_dont_vary] => 1
[REDIRECT_no_gzip] => 1
[REMOTE_ADDR] => 50.251.249.49
[REMOTE_PORT] => 45804
[REQUEST_METHOD] => POST
[REQUEST_SCHEME] => https
[REQUEST_URI] => /action/messages/send
[SCRIPT_FILENAME] => /var/www/html/index.php
[SCRIPT_NAME] => /index.php
[SERVER_ADDR] => 204.122.16.41
[SERVER_ADMIN] => nanook@eskimo.com
[SERVER_NAME] => social.eskimo.com
[SERVER_PORT] => 443
[SERVER_PROTOCOL] => HTTP/2.0
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache/2.4.33 (Unix) OpenSSL/1.1.1-pre6-dev
[SSL_CIPHER] => ECDHE-RSA-AES256-GCM-SHA384
[SSL_CIPHER_ALGKEYSIZE] => 256
[SSL_CIPHER_EXPORT] => false
[SSL_CIPHER_USEKEYSIZE] => 256
[SSL_CLIENT_VERIFY] => NONE
[SSL_COMPRESS_METHOD] => NULL
[SSL_PROTOCOL] => TLSv1.2
[SSL_SECURE_RENEG] => true
[SSL_SERVER_A_KEY] => rsaEncryption
[SSL_SERVER_A_SIG] => sha256WithRSAEncryption
[SSL_SERVER_I_DN] => CN=RapidSSL SHA256 CA,O=GeoTrust Inc.,C=US
[SSL_SERVER_I_DN_C] => US
[SSL_SERVER_I_DN_CN] => RapidSSL SHA256 CA
[SSL_SERVER_I_DN_O] => GeoTrust Inc.
[SSL_SERVER_M_SERIAL] => 26F45B2DC06ECB4CEFCA0A605D3DEF01
[SSL_SERVER_M_VERSION] => 3
[SSL_SERVER_SAN_DNS_0] => *.eskimo.com
[SSL_SERVER_SAN_DNS_1] => eskimo.com
[SSL_SERVER_S_DN] => CN=*.eskimo.com
[SSL_SERVER_S_DN_CN] => *.eskimo.com
[SSL_SERVER_V_END] => Jul 14 23:59:59 2018 GMT
[SSL_SERVER_V_START] => Jun 14 00:00:00 2017 GMT
[SSL_SESSION_ID] => 78746a702ad4cf0404e512aecd52354ee1c10462adeb56b09b2d6d1e3cda3bb1
[SSL_SESSION_RESUMED] => Resumed
[SSL_TLS_SNI] => social.eskimo.com
[SSL_VERSION_INTERFACE] => mod_ssl/2.4.33
[SSL_VERSION_LIBRARY] => OpenSSL/1.1.1-pre6-dev
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1529021617.6856
[REQUEST_TIME] => 1529021617
)

)

[files] => Symfony\Component\HttpFoundation\FileBag Object
(
[parameters:protected] => Array
(
)

)

[cookies] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[phpbb3_paz46_k] => 8db64a8b739a11c0
[phpbb3_paz46_u] => 3
[phpbb3_paz46_sid] => e9c0e96e928c5ff94a82b64a33d3b0b1
[Elgg] => q18eqkv9v33h7s2gnna775hjt1
)

)

[headers] => Symfony\Component\HttpFoundation\HeaderBag Object
(
[headers:protected] => Array
(
[content-length] => Array
(
[0] => 252
)

[content-type] => Array
(
[0] => application/x-www-form-urlencoded
)

[accept] => Array
(
[0] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
)

[accept-encoding] => Array
(
[0] => gzip, deflate, br
)

[accept-language] => Array
(
[0] => en-US
)

[cookie] => Array
(
[0] => phpbb3_paz46_k=8db64a8b739a11c0; phpbb3_paz46_u=3; phpbb3_paz46_sid=e9c0e96e928c5ff94a82b64a33d3b0b1; Elgg=q18eqkv9v33h7s2gnna775hjt1
)

[dnt] => Array
(
[0] => 1
)

[host] => Array
(
[0] => social.eskimo.com
)

[referer] => Array
(
[0] => https://social.eskimo.com/messages/compose?send_to=7840
)

[upgrade-insecure-requests] => Array
(
[0] => 1
)

[user-agent] => Array
(
[0] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
)

)

[cacheControl:protected] => Array
(
)

)

[content:protected] =>
[languages:protected] =>
[charsets:protected] =>
[encodings:protected] =>
[acceptableContentTypes:protected] =>
[pathInfo:protected] =>
[requestUri:protected] => /action/messages/send
[baseUrl:protected] =>
[basePath:protected] =>
[method:protected] =>
[format:protected] =>
[session:protected] =>
[locale:protected] =>
[defaultLocale:protected] => en
[isForwardedValid:Symfony\Component\HttpFoundation\Request:private] => 1
)

)

)

[11] => Array
(
[file] => /var/www/html/vendor/elgg/elgg/engine/classes/Elgg/Application.php
[line] => 384
[function] => run
[class] => Elgg\Application
[type] => ->
[args] => Array
(
)

)

[12] => Array
(
[file] => /var/www/html/index.php
[line] => 8
[function] => index
[class] => Elgg\Application
[type] => ::
[args] => Array
(
)

)

)

[previous:Error:private] =>
)

  • Not sure if I can help you here. It seems there's a plugin at https://github.com/hypeJunction/Elgg-acl_builder_api/releases that would provide the hypeJunction\Access\Collection class. But the available releases of this plugin are for Elgg 1.11/1.12, so it might no longer be required on Elgg 2.x (maybe the functionality is provided by another plugin by now).

    Are you getting the error on every message you are trying to send or only when friending? Is the friending functionality connected with a message sending option on your site (by default it isn't so I wonder if you use some 3rd party plugin that adds some functionality to send a message together with a friend request)? If you are using some other plugin for friending, there might be a conflict with this plugin in connection with the hypeAttachments plugin. I don't use this plugin myself - actually I have problems understanding how the hypeAttachments plugin is even supposed to work exactly (maybe some additional plugin are required I have not yet discovered).

    If you can reproduce the error and it's connected with hypeAttachments (and you don't want to stop using this plugin), you might want to report an issue at https://github.com/hypeJunction/hypeAttachments/issues and you maybe get some support by the developer of the hypeAttachments plugin or at least some hint what you might need to do to prevent the error from occuring.

  • acl_builder_api is no longer a plugin but a composer dependency and should be in the dist package of hypeAttachments or hypeInbox. If not, please report on github