× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

JooDB throwing an error

More
7 years 5 months ago #4163 by jverry.ccstech
JooDB throwing an error was created by jverry.ccstech
Hello,

We have the pro version of the Joodb plugin installed on one of the websites we host, and a problem has come up recently:
When enabling the extension, the whole site goes down and displays:
“Fatal error: Can't use method return value in write context in /home/swmar/public_html/components/com_joodb/helpers/joodb.php on line 145”.
That line in joodb.php is: “if (!empty($itemlink) && $fieldname==$joobase->ftitle && !empty($params->get('link_titles',0))) {“
A little background info on the site:
It is currently running:
1) Joomla 3.6.2
2) JooDB 3.1.0
2) The server is running:
a. CentOS 6.7
b. Apache 2.2.27
c. MariaDB 10.1.14, and
d. PHP 5.4.45
The small amount of research we could do is pointing to the PHP version—Apparently empty() only supports variables in PHP5.5 and earlier. Is there any kind of workaround, short of upgrading PHP?

Thank You,

Please Log in to join the conversation.

More
7 years 4 months ago #4164 by Dirk
Replied by Dirk on topic JooDB throwing an error
This happens only with some PHP versions under certain circumstances.

If you are using the free version please update to version 3.1.1

Please Log in to join the conversation.

Moderators: Dirkjoest