I installed the Market plugin, and when I delete some post this error occurs below, has anyone gone through this?
Error Critical
Call to undefined method ElggObject::getOwner()
Error Object
(
[message:protected] => Call to undefined method ElggObject::getOwner()
[string:Error:private] => Error: Call to undefined method ElggObject::getOwner() in /home/u662297310/public_html/mod/market/lib/market.php:68
Stack trace:
#0 /home/u662297310/public_html/mod/market/actions/delete.php(17): market_delete_post(Object(ElggObject))
#1 /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/ActionsService.php(132): include('/home/u66229731...')
#2 /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/ActionsService.php(121): Elgg\ActionsService::includeFile('/home/u66229731...')
#3 /home/u662297310/public_html/vendor/elgg/elgg/engine/lib/actions.php(20): Elgg\ActionsService->execute('market/delete')
#4 [internal function]: _elgg_action_handler(Array, 'action')
#5 /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/Router.php(95): call_user_func('_elgg_action_ha...', Array, 'action')
#6 /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(429): Elgg\Router->route(Object(Elgg\Http\Request))
#7 /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php(377): Elgg\Application->run()
#8 /home/u662297310/public_html/index.php(8): Elgg\Application::index()
#9 {main}
[code:protected] => 0
[file:protected] => /home/u662297310/public_html/mod/market/lib/market.php
[line:protected] => 68
[trace:Error:private] => Array
(
[0] => Array
(
[file] => /home/u662297310/public_html/mod/market/actions/delete.php
[line] => 17
[function] => market_delete_post
[args] => Array
(
[0] => 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
(
[guid] => 205
[type] => object
[subtype] => 17
[owner_guid] => 36
[site_guid] => 1
[container_guid] => 36
[access_id] => 2
[time_created] => 1479737478
[time_updated] => 1479743714
[last_action] => 1479737479
[enabled] => yes
[title] => Vendo U20
[description] => Vendo U20 Frateschi Fepasa Fase III
)
[valid:protected] =>
)
)
)
[1] => Array
(
[file] => /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/ActionsService.php
[line] => 132
[args] => Array
(
[0] => /home/u662297310/public_html/mod/market/actions/delete.php
)
[function] => include
)
[2] => Array
(
[file] => /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/ActionsService.php
[line] => 121
[function] => includeFile
[class] => Elgg\ActionsService
[type] => ::
[args] => Array
(
[0] => /home/u662297310/public_html/mod/market/actions/delete.php
)
)
[3] => Array
(
[file] => /home/u662297310/public_html/vendor/elgg/elgg/engine/lib/actions.php
[line] => 20
[function] => execute
[class] => Elgg\ActionsService
[type] => ->
[args] => Array
(
[0] => market/delete
)
)
[4] => Array
(
[function] => _elgg_action_handler
[args] => Array
(
[0] => Array
(
[0] => market
[1] => delete
)
[1] => action
)
)
[5] => Array
(
[file] => /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/Router.php
[line] => 95
[function] => call_user_func
[args] => Array
(
[0] => _elgg_action_handler
[1] => Array
(
[0] => market
[1] => delete
)
[2] => action
)
)
[6] => Array
(
[file] => /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php
[line] => 429
[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
(
)
)
[query] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[__elgg_uri] => /action/market/delete
[guid] => 205
[__elgg_ts] => 1484520857
[__elgg_token] => J742O71DsVUedAkuO0ODGQ
)
)
[server] => Symfony\Component\HttpFoundation\ServerBag Object
(
[parameters:protected] => Array
(
[PHP_FCGI_CHILDREN] => 0
[PATH] => /sbin:/usr/sbin:/bin:/usr/bin
[PWD] => /opt/php
[SHLVL] => 0
[PHP_FCGI_MAX_REQUESTS] => 0
[SCRIPT_NAME] => /index.php
[REQUEST_URI] => /action/market/delete?guid=205&__elgg_ts=1484520857&__elgg_token=J742O71DsVUedAkuO0ODGQ
[QUERY_STRING] => __elgg_uri=action/market/delete&guid=205&__elgg_ts=1484520857&__elgg_token=J742O71DsVUedAkuO0ODGQ
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.1
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_URL] => /action/market/delete
[REDIRECT_QUERY_STRING] => __elgg_uri=action/market/delete&guid=205&__elgg_ts=1484520857&__elgg_token=J742O71DsVUedAkuO0ODGQ
[REMOTE_PORT] => 61551
[SCRIPT_FILENAME] => /home/u662297310/public_html/index.php
[CONTEXT_DOCUMENT_ROOT] => /home/u662297310/public_html
[CONTEXT_PREFIX] =>
[REQUEST_SCHEME] => http
[DOCUMENT_ROOT] => /home/u662297310/public_html
[REMOTE_ADDR] => 201.14.48.249
[SERVER_PORT] => 80
[SERVER_ADDR] => 31.220.104.4
[SERVER_NAME] => www.cartelcaipira.com
[SERVER_SOFTWARE] => Apache
[SERVER_SIGNATURE] =>
[LD_LIBRARY_PATH] => /opt/httpd/lib
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_CONNECTION] => close
[HTTP_COOKIE] => em_cdn_uid=t%3D1482695191170%26u%3Dd0a64ced313048e3969c8904f4e2565c; em_p_uid=l:1484509136933|t:1482695386620|u:625839204d024783950ea617a1ce21e0; plupload_ui_view=thumbs; Elgg=8e2903f4c1887f314dbbf53127c23261
[HTTP_REFERER] => http://www.cartelcaipira.com/market/category?offset=5
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_LANGUAGE] => pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
[HTTP_HOST] => www.cartelcaipira.com
[BINARY_SERVERADMIN] => webmaster@cartelcaipira.com
[SERVER_ADMIN] => webmaster@cartelcaipira.com
[UNIQUE_ID] => WHv9qwoBAisAAuIknyoAAAD1
[REDIRECT_STATUS] => 200
[REDIRECT_dont_vary] => 1
[REDIRECT_no_gzip] => 1
[REDIRECT_BINARY_SERVERADMIN] => webmaster@cartelcaipira.com
[REDIRECT_SERVER_ADMIN] => webmaster@cartelcaipira.com
[REDIRECT_UNIQUE_ID] => WHv9qwoBAisAAuIknyoAAAD1
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1484520875.7753
[REQUEST_TIME] => 1484520875
)
)
[files] => Symfony\Component\HttpFoundation\FileBag Object
(
[parameters:protected] => Array
(
)
)
[cookies] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[em_cdn_uid] => t=1482695191170&u=d0a64ced313048e3969c8904f4e2565c
[em_p_uid] => l:1484509136933|t:1482695386620|u:625839204d024783950ea617a1ce21e0
[plupload_ui_view] => thumbs
[Elgg] => 8e2903f4c1887f314dbbf53127c23261
)
)
[headers] => Symfony\Component\HttpFoundation\HeaderBag Object
(
[headers:protected] => Array
(
[upgrade-insecure-requests] => Array
(
[0] => 1
)
[connection] => Array
(
[0] => close
)
[cookie] => Array
(
[0] => em_cdn_uid=t%3D1482695191170%26u%3Dd0a64ced313048e3969c8904f4e2565c; em_p_uid=l:1484509136933|t:1482695386620|u:625839204d024783950ea617a1ce21e0; plupload_ui_view=thumbs; Elgg=8e2903f4c1887f314dbbf53127c23261
)
[referer] => Array
(
[0] => http://www.cartelcaipira.com/market/category?offset=5
)
[accept-encoding] => Array
(
[0] => gzip, deflate
)
[accept-language] => Array
(
[0] => pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
)
[accept] => Array
(
[0] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
)
[user-agent] => Array
(
[0] => Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
)
[host] => Array
(
[0] => www.cartelcaipira.com
)
)
[cacheControl:protected] => Array
(
)
)
[content:protected] =>
[languages:protected] =>
[charsets:protected] =>
[encodings:protected] =>
[acceptableContentTypes:protected] =>
[pathInfo:protected] =>
[requestUri:protected] => /action/market/delete?guid=205&__elgg_ts=1484520857&__elgg_token=J742O71DsVUedAkuO0ODGQ
[baseUrl:protected] =>
[basePath:protected] =>
[method:protected] =>
[format:protected] =>
[session:protected] =>
[locale:protected] =>
[defaultLocale:protected] => en
)
)
)
[7] => Array
(
[file] => /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/Application.php
[line] => 377
[function] => run
[class] => Elgg\Application
[type] => ->
[args] => Array
(
)
)
[8] => Array
(
[file] => /home/u662297310/public_html/index.php
[line] => 8
[function] => index
[class] => Elgg\Application
[type] => ::
[args] => Array
(
)
)
)
[previous:Error:private] =>
)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
The Market plugin is very likely no longer compatible with the recent version of Elgg. The last version of the Market plugin was recommented for Elgg 1.10 and no newer version since then.
The comment at https://elgg.org/plugins/407901/releases/1.10.2#elgg-object-2550761 also mentions possibly the same issue, so it seems some modification in the code would be necessary to fix it.
@Mauricio Just try to do it
Thanks iionly
Thanks RvR, I'll try now.
Mauricio Post your bug tracks here, please...
RvR, how do I upgrade the plugin? Do I delete the old folder? Paste over the old folder? What is the best procedure? I have publications already by the previous plugin.
Mauricio Backup your database. Delete old folder. Upload new folder. Activate plugin.
Don't use the previous version of my Market. It's a wrong plugin. Use just released a new version
Thanks RvR. I did some tests and the plugin is working normal, but CRON gives this error message:
Cron jobs for "minute" completed at Thu, 19 Jan 2017 23:08:37 +0000Cron jobs for "fiveminute" completed at Thu, 19 Jan 2017 23:08:40 +0000Cron jobs for "fifteenmin" completed at Thu, 19 Jan 2017 23:08:40 +0000Cron jobs for "halfhour" completed at Thu, 19 Jan 2017 23:08:40 +0000Cron jobs for "hourly" completed at Thu, 19 Jan 2017 23:08:40 +0000
Fatal error: Uncaught TypeError: Argument 5 passed to notify_user() must be of the type array, null given, called in /home/u662297310/public_html/mod/market/start.php on line 184 and defined in /home/u662297310/public_html/vendor/elgg/elgg/engine/lib/notification.php:480 Stack trace: #0 /home/u662297310/public_html/mod/market/start.php(184): notify_user(77, 1, 'Your market pos...', 'Hi Paulo Afonso...', NULL, 'site') #1 [internal function]: market_expire_cron_hook('cron', 'daily', '', Array) #2 /home/u662297310/public_html/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php(38): call_user_func_array('market_expire_c...', Array) #3 /home/u662297310/public_html/vendor/elgg/elgg/engine/lib/elgglib.php(802): Elgg\PluginHooksService->trigger('cron', 'daily', Array, '') #4 /home/u662297310/public_html/mod/crontrigger/start.php(28): elgg_trigger_plugin_hook('cron', 'daily', Array, '') #5 /home/u662297310/public_html/mod/crontrigger/start.php(52): crontrigger_trigger('daily') #6 /home/u662297310/public_html/vendor/elgg/el in /home/u662297310/public_html/vendor/elgg/elgg/engine/lib/notification.php on line 480
Fixed. Thanks for debuging!
- Previous
- 1
- 2
- Next
You must log in to post replies.