EvokeNet / humhub

A global network of social innovators
http://evokenet.org
5 stars 3 forks source link

Syntax error warning logged when viewing spaces #517

Open nathanverrill opened 7 years ago

nathanverrill commented 7 years ago

Logged in as Alchemy, went to dashboard, received this info message with syntax error message.

I didn't receive an error as a user, but it happens quite frequently when browsing the site, clutters the log, and perhaps it points to an underlying issue that might cause problems later.

$_GET = [ 'r' => 'missions/dashboard/stream' 'limit' => '4' 'filters' => '' 'sort' => 'c' 'from' => '47' 'mode' => 'normal' ] $_SERVER = [ 'HTTP_HOST' => 'soacha.evokenet.org' 'HTTP_CONNECTION' => 'keep-alive' 'HTTP_ACCEPT' => 'application/json, text/javascript, /; q=0.01' 'HTTP_X_CSRF_TOKEN' => 'dkF4cGdPVmkfIBddUmI1K0MmVSQMFR4ZFwY7KlceESMGEyoeLxslJQ==' 'HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest' 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36' 'HTTP_REFERER' => 'http://soacha.evokenet.org/' 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, sdch' 'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.8,es;q=0.6' 'HTTP_COOKIE' => '_gat=1; language=b1b090445127dc6719f35d4624ccf58bb738c65e1924736baa3113382e631e72a%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22language%22%3Bi%3A1%3Bs%3A2%3A%22en%22%3B%7D; _csrf=23bceb884bd6593bbb3bd040b2ede0973ca3882f104eef8139b780d38931857ca%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22iao-5-cB5g-TkZHpaGCZ0QGJpRRnHTsL%22%3B%7D; PHPSESSID=gk1oa4r5or5ms5023cvphh3157; _ga=GA1.2.1730528541.1487781436; pnctest=1; _identity=9a33092da93987896ff3ce50b1edb52a01e2b6090c955fbc8be14a55bad9f81aa%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A50%3A%22%5B3%2C%223893520c-4dac-4448-a65d-402193721150%22%2C2592000%5D%22%3B%7D' 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' 'SERVER_SIGNATURE' => '

Apache/2.4.7 (Ubuntu) Server at soacha.evokenet.org Port 80
' 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)' 'SERVER_NAME' => 'soacha.evokenet.org' 'SERVER_ADDR' => '172.31.18.75' 'SERVER_PORT' => '80' 'REMOTE_ADDR' => '97.88.214.229' 'DOCUMENT_ROOT' => '/var/www/html/humhub' 'REQUEST_SCHEME' => 'http' 'CONTEXT_PREFIX' => '' 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/humhub' 'SERVER_ADMIN' => 'webmaster@localhost' 'SCRIPT_FILENAME' => '/var/www/html/humhub/index.php' 'REMOTE_PORT' => '57857' 'GATEWAY_INTERFACE' => 'CGI/1.1' 'SERVER_PROTOCOL' => 'HTTP/1.1' 'REQUEST_METHOD' => 'GET' 'QUERY_STRING' => 'r=missions%2Fdashboard%2Fstream&limit=4&filters=&sort=c&from=47&mode=normal' 'REQUEST_URI' => '/index.php?r=missions%2Fdashboard%2Fstream&limit=4&filters=&sort=c&from=47&mode=normal' 'SCRIPT_NAME' => '/index.php' 'PHP_SELF' => '/index.php' 'REQUEST_TIME_FLOAT' => 1487782031.398 'REQUEST_TIME' => 1487782031 ]

And when viewing another team's page

$_GET = [ 'r' => 'missions/space/stream' 1 => '/missions/space/stream' 'limit' => '4' 'filters' => '' 'sort' => 'c' 'from' => '' 'mode' => 'normal' 'sguid' => '319af0e0-1c3a-4737-848e-88119c1c7d62' ] $_SERVER = [ 'HTTP_HOST' => 'soacha.evokenet.org' 'HTTP_CONNECTION' => 'keep-alive' 'HTTP_ACCEPT' => 'application/json, text/javascript, /; q=0.01' 'HTTP_X_CSRF_TOKEN' => 'TWxHT25IUGMkDShiW2UzIXgLahsFEhgTLCsEFV4ZFyk9PhUhJhwjLw==' 'HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest' 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36' 'HTTP_REFERER' => 'http://soacha.evokenet.org/index.php?r=space%2Fspace&sguid=319af0e0-1c3a-4737-848e-88119c1c7d62' 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, sdch' 'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.8,es;q=0.6' 'HTTP_COOKIE' => 'language=b1b090445127dc6719f35d4624ccf58bb738c65e1924736baa3113382e631e72a%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22language%22%3Bi%3A1%3Bs%3A2%3A%22en%22%3B%7D; _csrf=23bceb884bd6593bbb3bd040b2ede0973ca3882f104eef8139b780d38931857ca%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22iao-5-cB5g-TkZHpaGCZ0QGJpRRnHTsL%22%3B%7D; PHPSESSID=gk1oa4r5or5ms5023cvphh3157; _gat=1; pnctest=1; _identity=9a33092da93987896ff3ce50b1edb52a01e2b6090c955fbc8be14a55bad9f81aa%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A50%3A%22%5B3%2C%223893520c-4dac-4448-a65d-402193721150%22%2C2592000%5D%22%3B%7D; _ga=GA1.2.1730528541.1487781436; pm_space-members-panel=expanded' 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' 'SERVER_SIGNATURE' => '

Apache/2.4.7 (Ubuntu) Server at soacha.evokenet.org Port 80
' 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)' 'SERVER_NAME' => 'soacha.evokenet.org' 'SERVER_ADDR' => '172.31.18.75' 'SERVER_PORT' => '80' 'REMOTE_ADDR' => '97.88.214.229' 'DOCUMENT_ROOT' => '/var/www/html/humhub' 'REQUEST_SCHEME' => 'http' 'CONTEXT_PREFIX' => '' 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/humhub' 'SERVER_ADMIN' => 'webmaster@localhost' 'SCRIPT_FILENAME' => '/var/www/html/humhub/index.php' 'REMOTE_PORT' => '58061' 'GATEWAY_INTERFACE' => 'CGI/1.1' 'SERVER_PROTOCOL' => 'HTTP/1.1' 'REQUEST_METHOD' => 'GET' 'QUERY_STRING' => 'r=missions%2Fspace%2Fstream&1=%2Fmissions%2Fspace%2Fstream&limit=4&filters=&sort=c&from=&mode=normal&sguid=319af0e0-1c3a-4737-848e-88119c1c7d62' 'REQUEST_URI' => '/index.php?r=missions%2Fspace%2Fstream&1=%2Fmissions%2Fspace%2Fstream&limit=4&filters=&sort=c&from=&mode=normal&sguid=319af0e0-1c3a-4737-848e-88119c1c7d62' 'SCRIPT_NAME' => '/index.php' 'PHP_SELF' => '/index.php' 'REQUEST_TIME_FLOAT' => 1487782248.307 'REQUEST_TIME' => 1487782248 ]

nathanverrill commented 7 years ago

To quantify, even with a small amount of traffic there were 90 log entries in one hour.

Guihrmsfo commented 7 years ago

This log information unfortunately does not indicate what's causing this error, I'm looking for anything that may indicate what's going on but I can't find either.

Guihrmsfo commented 7 years ago

@rjapur @JayantGandhi That happened for you guys before? Let me know if you have any idea

nathanverrill commented 7 years ago

Since there are requests for content related to missions, e.g. index.php?r=missions%2Fdashboard%2Fstream&limit=4&filters=&sort=c&from=47&mode=normal Could it be related to the user not being on a team?

Guihrmsfo commented 7 years ago

I don't think so, this individual request doesn't show any error. Take a look, it works as expected: Stream

This should return the code for dashboard's frontend, and it does. Look at the end of the file, 4 entries were found.