Support

  1. brandnew
  2. Bug Report
  3. Thursday, March 09 2017, 08:46 PM
Hi.

After the update EasyProfile Pro version 2.1.x to 2.3.1 appeared an error on pages where it is used map.

Fatal error: Can't use method return value in write context in [...]/modules/mod_jsnmap/helper.php on line 116

System Information
=============
php: Windows NT BN 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586
dbversion: 5.5.36-log
dbcollation: utf8_general_ci
dbconnectioncollation: utf8mb4_general_ci
phpversion: 5.4.25 <- maybe this is a reason? I found this on Stackoverflow: Note: Prior to PHP 5.5, empty() only supports variables;
server: Apache/2.4.7 (Win32) OpenSSL/0.9.8y PHP/5.4.25
sapi_name: apache2handler
version: Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
useragent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

After commenting this line everything is OK, but i think this is not the right solution :p
116: if(!empty($params->get('where',''))) $where = '('.$where.') AND '. $params->get('where','');

Best regards,

Artur
Brand New
admin Accepted Answer
Admin
Hi,
yes, this is a problem due to PHP version.

to solve you can replace line 116 with this:

$param_where = $params->get('where','');
if(!empty($param_where)) $where = '('.$where.') AND '. $params->get('where','');


Basically PHP 5.4 does not accept class function into if statement ;)

we will fix this in next release, thanks for report it :D
  1. more than a month ago
  2. Bug Report
  3. # 1
brandnew Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.