Anton Qcl Posted January 31, 2014 Report Share Posted January 31, 2014 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 Link to comment Share on other sites More sharing options...
Tyson Posted January 31, 2014 Report Share Posted January 31, 2014 We need to know steps to precisely duplicate this issue as described in How to Report a Bug, including your main service and addon services' settings. Link to comment Share on other sites More sharing options...
Anton Qcl Posted February 3, 2014 Author Report Share Posted February 3, 2014 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. Link to comment Share on other sites More sharing options...
Tyson Posted February 3, 2014 Report Share Posted February 3, 2014 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); Michael 1 Link to comment Share on other sites More sharing options...
Recommended Posts