Get error report - A PHP Exception - Admin Tools Pro & EasySocial b3

More
3 years 1 month ago #45403 by ssnobben
HI

I get some error reports coming from Admin Tools Pro. I use php 7.4.15, EasySocial 4b3 and Joomla 3.9.25 and want to get rid of it and know what causing it.

A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: TypeError
File: ,/plugins/system/whovisitedmyprofile/whovisitedmyprofile.php
Line: 22
Message: explode(): Argument #2 ($string) must be of type string, array given

#0 ,/plugins/system/whovisitedmyprofile/whovisitedmyprofile.php(22): explode()
#1 ,/libraries/joomla/event/event.php(70): PlgSystemWhovisitedmyprofile->onAfterRoute()
#2 ,/libraries/joomla/event/dispatcher.php(160): JEvent->update()
#3 ,/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger()
#4 ,/libraries/src/Application/AdministratorApplication.php(478): Joomla\CMS\Application\BaseApplication->triggerEvent()
#5 ,/libraries/src/Application/AdministratorApplication.php(144): Joomla\CMS\Application\AdministratorApplication->route()
#6 ,/libraries/src/Application/CMSApplication.php(203): Joomla\CMS\Application\AdministratorApplication->doExecute()
#7 ,/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#8 {main}

Request information
GET variables

Array
(
)

POST variables

Array
(
)

COOKIE variables

Array
(
[adf9fb139a1e54768a1a8be4661327a0] => a5b3c7f06b7607b3d6ae8f73ea69c65d
[resolution] => 1536,1.25
[63265fc774e9c2e3b6ef29038c4afab1] => 408bb3e989a3d7ce990bbe8b3c30e6ac
[g_state] => {"i_p":1615977410864,"i_l":1}
)

REQUEST variables

Array
(
)

SERVER variables

Array
(
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[HTTP_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_ACCEPT_LANGUAGE] => sv-SE,sv;q=0.8,en-US;q=0.5,en;q=0.3
[HTTP_COOKIE] => adf9fb139a1e54768a1a8be4661327a0=a5b3c7f06b7607b3d6ae8f73ea69c65d; resolution=1536,1.25; 63265fc774e9c2e3b6ef29038c4afab1=408bb3e989a3d7ce990bbe8b3c30e6ac; g_state={"i_p":1615977410864,"i_l":1}
[HTTP_HOST] => www.site.com
[HTTP_REFERER] => www.site.com/administrator/index.php?option=com_config
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
[HTTP_DNT] => 1
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_TE] => trailers
[DOCUMENT_ROOT] => ,
[REMOTE_ADDR] =>
[REMOTE_PORT] =>
[SERVER_ADDR] =>
[SERVER_NAME] => www.site.com
[SERVER_ADMIN] => webmaster@site.com
[SERVER_PORT] =>
[REQUEST_SCHEME] => https
[REQUEST_URI] => /administrator/
[HTTPS] => on
[X_SPDY] => HTTP2
[SSL_PROTOCOL] => TLSv1.3
[SSL_CIPHER] => TLS_AES_128_GCM_SHA256
[SSL_CIPHER_USEKEYSIZE] => 128
[SSL_CIPHER_ALGKEYSIZE] => 128
[SCRIPT_FILENAME] => ,/administrator/index.php
[QUERY_STRING] =>
[SCRIPT_URI] => www.site.com/administrator/
[SCRIPT_URL] => /administrator/
[SCRIPT_NAME] => /administrator/index.php
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => LiteSpeed
[REQUEST_METHOD] => GET
[X-LSCACHE] => on
[PHP_SELF] => /administrator/index.php
[REQUEST_TIME_FLOAT] => 1615973931.3901
[REQUEST_TIME] => 1615973931
)


Any tips how to solve this?

Cheers!

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #45407 by ssnobben
This is the error coming too make a Joomla report check debug. Check it against php 8 compability too.


Warning: explode() expects parameter 2 to be string, array given in /plugins/system/whovisitedmyprofile/whovisitedmyprofile.php on line 22

An error has occurred.
0 explode(): Argument #2 ($string) must be of type string, array given
/plugins/system/whovisitedmyprofile/whovisitedmyprofile.php:22
Call stack
# Function Location
1 () JROOT/plugins/system/whovisitedmyprofile/whovisitedmyprofile.php:22
2 explode() JROOT/plugins/system/whovisitedmyprofile/whovisitedmyprofile.php:22
3 PlgSystemWhovisitedmyprofile->onAfterRoute() JROOT/libraries/joomla/event/event.php:70
4 JEvent->update() JROOT/libraries/joomla/event/dispatcher.php:160
5 JEventDispatcher->trigger() JROOT/libraries/src/Application/BaseApplication.php:108
6 Joomla\CMS\Application\BaseApplication->triggerEvent() JROOT/libraries/src/Application/AdministratorApplication.php:478
7 Joomla\CMS\Application\AdministratorApplication->route() JROOT/libraries/src/Application/AdministratorApplication.php:144
8 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:203
9 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #45409 by nordmograph
This message contains confidential information

This one may solve the issue.
Let me know

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
Attachments:
The following user(s) said Thank You: ssnobben

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #45412 by ssnobben
Thanks!

Seems to solve the problem!

Please Log in or Create an account to join the conversation.

Time to create page: 0.336 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.