Jump to content

Recommended Posts

Posted

Version: 3.1.0

Actions: Try to add service with add-on from the admin interface.

Error: Cannot pass parameter 1 by reference on line 76 in /var/www/vhosts/my.blesta.site/public_html/app/views/admin/default/admin_clients_addservice_confirm.pdt

 

 

Posted

1. Go to client on the admin side.

2. Click "New Service".

3. Choose package and click "Continue".

4. Choose invoice method, term, status, addon and click "Continue".

5. Choose term for addon and click "Continue".

6. Error: Cannot pass parameter 1 by reference on line 76 in /var/www/vhosts/my.blesta.site/public_html/app/views/admin/default/admin_clients_addservice_confirm.pdt

 

including your main service and addon services' settings.

 

Packages based on the Universal Module, for example, and doesn't have any settings.

 

 

URL: http://my.blesta.site/admin/clients/addservice/40/1/10

Versions: Blesta - 3.1.0; PHP - 5.3.3; MySQL - 5.1.61

 

Also, I've attached screenshot of the error.

post-1735-0-00033400-1391459264_thumb.jp

Posted

Thanks for the steps to duplicate. I've fixed this in CORE-1032 for v3.1.1.

 

If you want to fix this yourself, you can update the following files:

 

Update /app/views/admin/default/admin_clients_addservice_confirm.pdt (line 76) and change:

if ($this->Html->ifSet($addon->package_options && $this->Html->ifSet($addon->configoptions))) {

to:

if ($this->Html->ifSet($addon->package_options) && $this->Html->ifSet($addon->configoptions)) {

You may receive a separate error as well, that you can fix by updating /app/controllers/admin_clients.php (line 4137) and changing:

$addon->package_options = $this->PackageOptions->getByPackageId($addon->id);

to:

$addon->package_options = $this->PackageOptions->getByPackageId($addon->package_id);
Guest
This topic is now closed to further replies.
×
×
  • Create New...