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.