Jump to content

gavingwatson

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by gavingwatson

  1. Hello, We needed to recover our WHMCS installation and all is fine except it was set to use S3 for storage. The S3 location is no longer available and we need to move to local storage, but we cannot access the Storage page as it errors out as follows: WHMCS\Exception\Storage\StorageConfigurationException: The Access Key field is required. The Access Secret field is required. The Bucket field is required. The Region field is required. in /var/www/html/vendor/whmcs/whmcs-foundation/lib/File/Provider/S3StorageProvider.php:0 Stack trace: #0 /var/www/html/vendor/whmcs/whmcs-foundation/lib/File/Configuration/StorageConfiguration.php(0): WHMCS\File\Provider\S3StorageProvider->applyConfiguration() #1 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Admin/Setup/Storage/StorageController.php(0): WHMCS\File\Configuration\StorageConfiguration->createStorageProvider() #2 [internal function]: WHMCS\Admin\Setup\Storage\StorageController->index() #3 /var/www/html/vendor/middlewares/utils/src/CallableHandler.php(26): call_user_func_array() #4 /var/www/html/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute() #5 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/HandleProcessor.php(0): Middlewares\FastRoute->process() #6 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\HandleProcessor->_process() #7 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\HandleProcessor->process() #8 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #9 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #10 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process() #11 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Admin\ApplicationSupport\Route\Middleware\Assent->process() #12 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #13 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #14 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process() #15 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Security/Middleware/Authorization.php(0): WHMCS\Security\Middleware\Authorization->process() #16 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): WHMCS\Security\Middleware\Authorization->process() #17 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process() #18 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process() #19 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #20 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #21 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Admin/ApplicationSupport/Route/Middleware/AuthenticationConfirmation.php(0): Middlewares\Utils\Delegate->process() #22 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): WHMCS\Admin\ApplicationSupport\Route\Middleware\AuthenticationConfirmation->process() #23 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process() #24 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process() #25 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #26 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #27 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process() #28 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Admin\ApplicationSupport\Route\Middleware\DirectoryValidation->process() #29 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #30 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #31 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): Middlewares\Utils\Delegate->process() #32 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): WHMCS\Route\Middleware\BackendPsr7Response->_process() #33 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendPsr7Response->process() #34 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #35 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #36 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process() #37 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendDispatch.php(0): Middlewares\Utils\Dispatcher->dispatch() #38 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\BackendDispatch->_process() #39 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendDispatch->process() #40 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #41 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #42 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutePathMatch.php(0): Middlewares\Utils\Delegate->process() #43 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutePathMatch->_process() #44 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutePathMatch->process() #45 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #46 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #47 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/WhitelistFilter.php(0): Middlewares\Utils\Delegate->process() #48 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Route\Middleware\WhitelistFilter->_process() #49 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\WhitelistFilter->process() #50 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #51 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #52 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process() #53 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableClientModuleRequest->_process() #54 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process() #55 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #56 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #57 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process() #58 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableAdminRequestUri->_process() #59 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process() #60 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #61 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #62 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process() #63 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestUri->_process() #64 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process() #65 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #66 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #67 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process() #68 /var/www/html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestQueryUri->_process() #69 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process() #70 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}() #71 /var/www/html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func() #72 /var/www/html/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process() #73 /var/www/html/admin/index.php(0): Middlewares\Utils\Dispatcher->dispatch() #74 {main}
  2. Hello, I need to add another priority to support tickets labelled "Urgent" and pick this up in a hook to do something. I am struggling to achieve this (why this is not already possible is beyond me). I have modified supportticketsubmit-steptwo.tpl to add the category, which is visible in the client area to support the ticket, but despite this, it continues to get raised as "Medium" (which is the default one). At the moment I suspect this may be because there is not a word for "Urgent" in the language folder/database as it seems to use this for Low, Medium and High {$LANG.supportticketsticketurgencyhigh} The ticket gets raised correctly, but it ignores the value I have used, I simply entered my own value as follows: <select name="urgency" id="inputPriority" class="form-control"> <option value="Urgent"{if $urgency eq "Urgent"} selected="selected"{/if}> Urgent </option> <option value="High"{if $urgency eq "High"} selected="selected"{/if}> {$LANG.supportticketsticketurgencyhigh} </option> <option value="Medium"{if $urgency eq "Medium" || !$urgency} selected="selected"{/if}> {$LANG.supportticketsticketurgencymedium} </option> <option value="Low"{if $urgency eq "Low"} selected="selected"{/if}> {$LANG.supportticketsticketurgencylow} </option> </select> The I wanted to pick it up with something like this : <?php add_hook('TicketOpen', 1, function($vars) { $str = var_export($vars, true); if (strpos($haystack, "'priority' => 'Urgent'") !== false) { I know the value is there, but it just appears as "Medium" instead of the "Urgent" I created it as. So... how can I achieve this? Can I add a word for Urgent so it uses this : {$LANG.supportticketsticketurgencyhigh} if so, where is that stored and how can I create my own custom word there? I saw a reference to lang folders, but I can't find them anywhere. Any help would be appreciated.
  3. I actually figured that out by using this: <div class="col-sm-6"> <div class="form-group"> <label for="inputConfigOption{$configoption.id}">{$configoption.optionname}</label> <select name="configoption[{$configoption.id}]" id="inputConfigOption{$configoption.id}" class="form-control" {if $productinfo.pid eq 21} disabled=""}{/if}{if $productinfo.pid eq 65} disabled=""}{/if}> {foreach key=num2 item=options from=$configoption.options} <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected" {/if}> {$options.name} </option> {/foreach} </select> </div> </div> (I added this part : {if $productinfo.pid eq 21} disabled=""}{/if}{if $productinfo.pid eq 65} disabled=""}{/if}
  4. Hello, I am trying to deeplink directly to the cart with some configurable options preset, which I am able to do successfully, all good. But what I need to achieve is that, by passing something in the URL, it makes the configurable options read only (so the customer cannot update them). The reason for this is that we are making some offers on our site which are available immediately (instant provisioning) but if they then alter anything on the cart, the *may* think that it is still instantly provisioned, it it will no longer be. My solution to this, according to WHMCS support, would be to pass an additional option in the URL (such as &readonly=1 or similar) and pick that up in configureproduct.tpl with an if statement to make the Configurable Options read-only. My question is, where in the following code would I add the code for that? {if $configoption.optiontype eq 1} <div class="col-sm-6"> <div class="form-group"> <label for="inputConfigOption{$configoption.id}">{$configoption.optionname}</label> <select name="configoption[{$configoption.id}]" id="inputConfigOption{$configoption.id}" class="form-control"> {foreach key=num2 item=options from=$configoption.options} <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected"{/if}> {$options.name} </option> {/foreach} </select> </div> </div> If it were pure PHP I could work it out, along the lines of (for example): $readonly = $_GET['readonly']; if ($readonly == "1") { echo ' <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected" readonly{/if}> {$options.name} </option>'; } else { echo '<option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected"{/if}> {$options.name} </option>'; } (Sorry, can't convert that to code for some reason). So my question is, in the .tpl file, how would I pick up the variable in the URL and add that logic? Thanks in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated