Jump to content

Question

Posted

Hello,

 

Sorry for opening a new topic on this issue, but the one in "bugs" section seems to be locked.

 

I've actually change templates to templateskvm in solusvm.php (below)

 

// Return the templates
if ($response && $response->status == "success") {
// Fetch the templates
$templates = $this->csvToArray($response->templateskvm);
$formatted_templates = array();
foreach ($templates as $template) {
// Skip the none template
if ($template == "--none--") {
continue;
}
 
so templates work for KVM but OpenVZ now have that problem, templates not showing.
 
Is there any way to rectify this issue for both KVM and OpenVZ? (plus Xen too of course) 
 
Thanks

6 answers to this question

Recommended Posts

  • 0
Posted

Try using this:

$templates = $this->csvToArray($response->templateskvm);
$templates = $this->csvToArray($response->templates);
$formatted_templates = array();
foreach ($templates as $template) {
// Skip the none template
if ($template == "--none--") {
continue;
}

I'm not a coder myself I can do basics but I think that might run both templates arrays together.

  • 0
Posted

Nope, don't work :(

 

$templates = $this->csvToArray($response->templates); 

 

this line blocked out $templates = $this->csvToArray($response->templateskvm);.

 

I figure the issue lies in either order form or packages section but no idea what to look for

  • 0
Posted

would array_merge not mix OpenVZ/KVM/Xen templates? if not, may I know how the code should go? sorry not good at coding, thanks.

 

EDIT

May I know which file from Blesta 3.4 can be used to fix this issue?

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...