Jump to content
  • 0

Error activating product


MDHMatt

Question

I need some help i tried to activate a product and i'm getting this error. (hidden usernames ect) 

 Something went wrong.
Array to string conversion on line 18 in /home/XXXXXXX/public_html/billing/vendors/blesta/h2o/h2o/datatype.php

Printing Stack Trace:
#0 [internal function]: UnknownException::setErrorHandler(8, 'Array to string...', '/home/XXXXXXX/...', 18, Array)
#1 /home/XXXXXXX/public_html/billing/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(173): call_user_func(Array, 8, 'Array to string...', '/home/XXXXXXX/...', 18, Array)
#2 [internal function]: Monolog\ErrorHandler->handleError(8, 'Array to string...', '/home/XXXXXXX/...', 18, Array)
#3 /home/XXXXXXX/public_html/billing/vendors/blesta/h2o/h2o/datatype.php(18): implode('', Array)
#4 /home/XXXXXXX/public_html/billing/vendors/blesta/h2o/h2o.php(137): StreamWriter->close()
#5 /home/XXXXXXX/public_html/billing/app/models/emails.php(940): H2o->render(Array)
#6 /home/XXXXXXX/public_html/billing/app/models/emails.php(569): Emails->buildEmail('service_creatio...', '1', 'en_uk', Array)
#7 /home/XXXXXXX/public_html/billing/app/models/services.php(2775): Emails->send('service_creatio...', '1', 'en_uk', 'xxx@xxxx...', Array, NULL, NULL, NULL, Array)
#8 /home/XXXXXXX/public_html/billing/app/models/services.php(1377): Services->sendNotificationEmail(Object(stdClass), Object(stdClass), '25')
#9 /home/XXXXXXX/public_html/billing/app/controllers/admin_clients.php(5117): Services->edit('45', Array, false, true)
#10 /home/XXXXXXX/public_html/billing/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminClients->editService()
#11 /home/XXXXXXX/public_html/billing/index.php(21): Dispatcher::dispatch('/billing/admin/...')
#12 {main}

 

Edit: The invoice hasnt been paid but i wanted to manually add it. the product in question is a email only hosting package for cpanel. the package never gets set to approved but is created in cpanel???

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Blesta is trying to send an email but fails to do so because some tag in the email template is not being used correctly.

Double-check your "Service Creation" email template and how you are using the tags. If email is sent successfully for other services, then the problematic tag is probably in the package's Welcome Email section instead (which is imported into the "Service Creation" email template as the tag "{package.email_html}"/"{package.email_text}"), so edit that service's package and take a look at the Welcome Email template for both text and HTML.

Some tags cannot be displayed as written because they are not strings, and instead need to be iterated over. You should take a look at the package module's documentation for what tags are available and how to use them. For example, when using the cPanel module, there is a tag "{module.name_servers}". That tag cannot be displayed as a string since its data is an array of multiple nameservers. If you attempt to display it as written, you will receive the error that you encountered. In this example, you would use a "for" statement in the email template to loop over the nameservers as mentioned in the cPanel documentation:

{% for name_server in module.name_servers %}
Name server: {name_server}{% endfor %}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...