Off Canvas sidebar is empty
  Thursday, 28 June 2018
  2 Replies
  6.3K Visits
0
Votes
Undo
  Subscribe
Hello friends!
After an update to Joomla 3.8.10 I am getting errors and I cannot use the menu to TZ Portfolio Plus
Joomla Menu To Not Work.
I am getting errors: "0 Cannot use object of type stdClass as array"
(TZ Portfolio+ 1.2.6, PHP version: 7.0)
5 years ago
·
#782
Accepted Answer
0
Votes
Undo
Hi Olena!
You can wait the version update. If you want to fix it now, you can modify codes at lines 210 - 212 of path file administrator/components/com_tz_portfolio_plus/libraries/plugin/plugin.php to:

if(is_array($data) && isset($data['link']) && !empty($data['link'])){
$link = $data['link'];
}elseif(is_object($data) && isset($data -> link) && !empty($data -> link)){
$link = $data -> link;
}

Thanks & best regard.
5 years ago
·
#782
Accepted Answer
0
Votes
Undo
Hi Olena!
You can wait the version update. If you want to fix it now, you can modify codes at lines 210 - 212 of path file administrator/components/com_tz_portfolio_plus/libraries/plugin/plugin.php to:

if(is_array($data) && isset($data['link']) && !empty($data['link'])){
$link = $data['link'];
}elseif(is_object($data) && isset($data -> link) && !empty($data -> link)){
$link = $data -> link;
}

Thanks & best regard.
5 years ago
·
#783
0
Votes
Undo
Thank you, Duong Trinh Van!
It worked!
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,zip,rar
· Insert · Remove
  Upload Files (Maximum 2MB)

Sharing your current location while posting a new question allow viewers to identify the location you are located.

Login