Forum

Only variables should be passed by reference in /var/www/monitor/libraries/database/database_connect

Ahcor Werdna
11 October 2012, 08:53
I receive this error when I execute ./var/www/monitor/database/fetch_webserver_log. It also shows a static log via monitor site.
Would you have any idea on how to fix this issue? My next step is to ask via forums. on MariaDB. =/


Hiawatha version:8.5
Operating System: Debian 7 Wheezy
mySQL Server: MariaDB 5.5
Hugo Leisink
12 October 2012, 08:15
Are you using the latest version of the Hiawatha Monitor?
Ahcor Werdna
12 October 2012, 10:36
Hiawatha Monitor v0.5 | https://monitor.b0x4.net

It shows the error via all pages. But not via CMS Menu.
Hugo Leisink
12 October 2012, 16:42
At what line do you get this error? Did you download the Monitor tool recently of a long time ago?
Ahcor Werdna
13 October 2012, 01:57
database_connection.php on line 259

It is a recent download. 2-3 day's ago, to be precise.

Also, I am using the newest version of MariaDB v5.5. I'm not too sure if that could affect anything, but I think it might....

This is kinda off topic, but I have noticed that "banshee" while using MariaDB, displays a php error via CMS only.
Hugo Leisink
13 October 2012, 08:35
Replace that line with this:
$parts = explode(" ", ltrim($args[0]), 2);
$statement = strtolower(array_shift($parts));
Ahcor Werdna
17 October 2012, 18:56
Hi Hugo,

I replaced the line of code with the two you provided and that solved the issue.
I wanted to say thank you, thank you very much!
This topic has been closed.