diff --git a/src/.htaccess b/src/.htaccess index fcd5b8b82..79070e342 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,8 +1,7 @@ # Read documentation http://docs.boxbilling.com/ for more information # If you are receiving "Internal Server Error" message, make sure mod_rewrite is enabled in apache -Options -Indexes -Options +FollowSymLinks +Options -Indexes +SymLinksIfOwnerMatch RewriteEngine On diff --git a/src/bb-modules/Servicehosting/Service.php b/src/bb-modules/Servicehosting/Service.php index 82f7f7fd2..922b10787 100644 --- a/src/bb-modules/Servicehosting/Service.php +++ b/src/bb-modules/Servicehosting/Service.php @@ -99,8 +99,8 @@ class Service implements InjectionAwareInterface { $orderService = $this->di['mod_service']('order'); $model = $orderService->getOrderService($order); - if(!$model instanceof \Model_ServiceHosting) { - throw new \Box_Exception('Could not activate order. Service was not created'); + if(!$model instanceof \RedBean_SimpleModel) { + throw new \Box_Exception('Order :id has no active service', array(':id'=>$order->id)); } $pass = $this->di['tools']->generatePassword(10, 4);