Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > Bugs > Topic : Parse Error in WHMCS Module for Virtualizor



Threaded Mode | Print  

 Parse Error in WHMCS Module for Virtualizor (2 Replies, Read 6668 times)
Nico1102
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hey guys & Hey Team,

I have an Problem with the WHMCS Module for Virtualizor
(Downloaded here: virtualizor(dot)com/wiki/WHMCS_Module)

I put the Folder inside the modules/servers folder (like any other Module)

& as i click "Setup->Products->Servers-> Add Server" i get a white, blank page. When i enable Debugging in WHMCS, i see the following Error:

Parse error: syntax error, unexpected '{' in /var/www/vhosts/DOMAIN/httpdocs/modules/servers/virtualizor/virtualizor.php on line 449

What could be the Problem?
PHP Version: 5.6.30 by OS Vendor
With Plesk: Plesk Onyx v17.5.3_build1705170317.16 os_Debian 8.0

Ioncube is Up to date.
IP: --   

Parse Error in WHMCS Module for Virtualizor
Nico1102
Group: Member
Post Group: Newbie
Posts: 2
Status:
Here is the code for Line 448 - 466

If i delete the code, i dont get the error anymore and it seems to work so far. But this can't be the solution?
Code

        // If its Virtuozzo
        if(preg_match('/virtuozzo/is', $virttype){
           
            $tmp_virt = explode(' ', $virttype);
           
            if($tmp_virt[1] == 'openvz'){
                $virttype = 'vzo';
            }elseif(){
                $virttype = 'vzk';
            }
        }
       
        $hvm = (preg_match('/hvm/is', $params['configoption1']) ? 1 : 0);
        $numips = (empty($params['configoptions'][v_fn('ips')]) || $params['configoptions'][v_fn('ips')] == 0 ? $params['configoption13'] : $params['configoptions'][v_fn('ips')]);
        $numips_int = (empty($params['configoptions'][v_fn('ips_int')]) || $params['configoptions'][v_fn('ips_int')] == 0 ? $params['configoption19'] : $params['configoptions'][v_fn('ips_int')]);
        $numips6 = (empty($params['configoptions'][v_fn('ips6')]) || $params['configoptions'][v_fn('ips6')] == 0 ? $params['configoption17'] : $params['configoptions'][v_fn('ips6')]);
        $numips6_subnet = (empty($params['configoptions'][v_fn('ips6_subnet')]) || $params['configoptions'][v_fn('ips6_subnet')] == 0 ? $params['configoption18'] : $params['configoptions'][v_fn('ips6_subnet')]);
        $ctrlpanel = (empty($params['configoptions'][v_fn('ctrlpanel')]) ? -1 : strtolower(trim($params['configoptions'][v_fn('ctrlpanel')])));

       
IP: --   

Parse Error in WHMCS Module for Virtualizor
asim_shaikh
Group: Virtualizor Team
Post Group: Elite Member
Posts: 381
Status:
Quote
I have an Problem with the WHMCS Module for Virtualizor

(Downloaded here: virtualizor(dot)com/wiki/WHMCS_Module)


Hi,

There was a syntax error in the pacth file given to you.

We have emailed you the updated patch file.

Please let us know if you face any issue.


-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is December 14, 2018, 10:06 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.320