century1stop Posted July 5, 2015 Report Posted July 5, 2015 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 Quote
0 Michael Posted July 5, 2015 Report Posted July 5, 2015 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. Quote
0 century1stop Posted July 5, 2015 Author Report Posted July 5, 2015 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 Quote
0 Blesta Addons Posted July 6, 2015 Report Posted July 6, 2015 you should yse array_merge for templateskvm and normal templates . Michael 1 Quote
0 century1stop Posted July 6, 2015 Author Report Posted July 6, 2015 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? Quote
0 Tyson Posted July 6, 2015 Report Posted July 6, 2015 Take a look at the comment for CORE-1722. Michael 1 Quote
0 century1stop Posted July 6, 2015 Author Report Posted July 6, 2015 Thanks Tyson, fixed Paul 1 Quote
Question
century1stop
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)
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.