Welcome, Guest
Username: Password: Remember me
JO Facebook Events Pro

TOPIC: Trying to access array offset on value of type nul

Trying to access array offset on value of type nul 1 year 9 months ago #10966

  • Jay ZAP
  • Jay ZAP's Avatar
  • OFFLINE
  • New Member
  • Posts: 2
  • Karma: 0
Hey gang, i'm new and just got this extension. (FB Events Pro)

setup went fine and as expected, but when enabled i get the following page error:

0 - count(): Argument #1 ($value) must be of type Countable|array, null given

and then the following is found in the logs:

Got error 'PHP message: PHP Warning: Trying to access array offset on value of type null in ####/###/########.com/httpdocs/modules/mod_jo_facebookevents_pro/tmpl/default.php on line 47'

line 47 in the code is:

<?php

if($params->get('max') != ""){
if(count($fbevents) > $params->get('max')) {
$limit = $params->get('max');
}else{
$limit = count($fbevents);
}
}else{
$limit = count(@$fbevents);
}
.....

Any advice or help appreciated.

Thanks a bunch!
j.

PS - assuming the red exclamation Topic icon is for "I need help!"
The administrator has disabled public write access.
Time to create page: 0.044 seconds