Menu
Welcome, Guest
Username: Password: Remember me
Support for Advanced Open Workflow, Sales, Portal for SugarCRM Community Edition

TOPIC: Simple fix for Advanced OpenPortal with PHP 7.1

Simple fix for Advanced OpenPortal with PHP 7.1 2 years 3 months ago #49725

  • ajwilco
  • ajwilco's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Thank you received: 2
  • Karma: 2
For anyone else that hits the problem, or so it can be fixed in the main source. Advanced OpenPortal worked fine out of the box with PHP 5.6 for me, but my install of PHP 7.1 would stop on a "Too few parameters" error on line 277 of /com_advancedopenportal/models/SugarCasesConnection.php

I just had to change this:
$cases[] = new SugarCase($sugarcase);

To this:
$cases[] = new SugarCase($sugarcase, null);

^ This fixed my error, but a better solution would probably be to modify line 5 of /com_advancedopenportal/models/SugarCase.php so SugarCase's parameters better reflect the extended SugarObject, and also is more accepting of usage with a single parameter.

From this:
public function __construct($object,$relations){

To this:
public function __construct($object,$relations = array()){

Thanks!
The administrator has disabled public write access.
The following user(s) said Thank You: pgr, gbbcrm

Simple fix for Advanced OpenPortal with PHP 7.1 1 month 3 weeks ago #88665

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 11144
  • Thank you received: 1669
  • Karma: 380

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
The following user(s) said Thank You: gbbcrm
Time to create page: 0.048 seconds
Powered by Kunena Forum