Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : whmcs auto installer module



Threaded Mode | Print  

 whmcs auto installer module, can't seem to get the vars to pass (8 Replies, Read 1777 times)
omni
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hello,

I've got a custom script installer for softaculous which is working and installing (super amazing stuff you guys!) and now I'm trying to have it install on the hook for whmcs.  I followed the instructions here:

softaculous.com/docs/WHMCS_Auto_Install_Module

But I keep getting this error:

The following errors occured :
a:1:{s:10:"admin_name";s:67:"The field Admin Username is required and must be filled out.";}

I've tried to so many ways and now I hope you will help :)

The input on install.xml looks like this:

            <input type="text" name="user_name" size="30">
                <head>{{user_name}}</head>               
            </input>

So I added the custom fields on softaculous_extra.php

$GLOBALS['softaculous_conf']['fields']['user_name'] = 'Admin Name';
$GLOBALS['softaculous_conf']['fields']['user_password'] = 'Admin Pass';

And as instructed created custom inputs for whmcs product:

Admin Name, Admin Pass

Should not this variable be getting through? I've tried renaming this and that and am just about flustered :neu: hahahaha... please help.
IP: --   

whmcs auto installer module
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Please replace :
Code
$GLOBALS['softaculous_conf']['fields']['user_name'] = 'Admin Name';
$GLOBALS['softaculous_conf']['fields']['user_password'] = 'Admin Pass';

with

Code
$GLOBALS['softaculous_conf']['custom_fields']['user_name'] = 'Admin Name';
$GLOBALS['softaculous_conf']['custom_fields']['user_password'] = 'Admin Pass';


and it should work.


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

whmcs auto installer module
omni
Group: Member
Post Group: Newbie
Posts: 6
Status:

Brijesh you are a genius!  :D

I'll definitely vote for softaculous.

Got the message "Script Installed successfully" on an otherwise blank page. While I'm super excited that this is working I've got to wonder; is there anything else I can have show up there for customers who just installed a script?

It's very slick in softaculous where it show's the success screen with links to both the main url and the admin url of the script, do you know if there's anything I can do to have a better results page for new customers?

Thank you so much I really appreciate your help. Fun!!!!!!

Now I want to make auto-installers for all kinds of stuff.

   
IP: --   

whmcs auto installer module
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Where exactly do you see the "Script Installed successfully" ?

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

whmcs auto installer module
omni
Group: Member
Post Group: Newbie
Posts: 6
Status:
after checking out from whmcs purchase. the hosting account sets up, the script installs via the super cool auto-install module for softaculous/whmcs hook, then I get an otherwise blank screen with 'Script has installed successfully' in plain text. A bit abrupt for user flow.

I have it setup to install at order as soon as the order is placed, if you'd like to test it's at

inteltoolbox.com/billing/cart.php?a=add&pid=3
IP: --   

whmcs auto installer module
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

This message is appearing because the softaculous_debug.php file is present on your server. This file is for debugging purpose and should be deleted once the module is configured. Once you delete this file this message should not appear.

Also it is not possible to configure the message at the moment. However the user will receive an email with the details of the installation.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

whmcs auto installer module
omni
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hi,

It turns out the above changes to variable names lets it install but it's not passing the data from the whmcs form to the sql insert. I tested the custom script installer directly in softaculous.  The variables are getting from that form to database, but not from the whmcs auto-installer hook.

Code
$GLOBALS['softaculous_conf']['custom_fields']['user_name'] = 'Admin Name';
$GLOBALS['softaculous_conf']['custom_fields']['user_password'] = 'Admin Pass';
$GLOBALS['softaculous_conf']['custom_fields']['user_email'] = 'Admin Email'


and the install.xml inputs

Code
            <input type="text" name="user_name" size="30">
                <head>{{user_name}}</head>               
            </input>
            <input type="text" name="user_password" size="30">
                <head>{{user_password}}</head>
                <handle>__admin_pass</handle>
            </input>
            <input type="text" name="user_email" size="30">
                <head>{{user_email}}</head>                               
            </input>


I really appreciate the help.
IP: --   

whmcs auto installer module
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Can you please email me (brijesh[at]softaculous.com) the install.xml and SQL file I will check it for you.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

whmcs auto installer module
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

I have replied to your email.

The issue was with the default fields for Admin Username, Admin Password and Admin Email is admin_username, admin_password and admin_email when we make the Softaculous packages.

However as you have changed the field names in your custom install.xml to user_name, user_password and user_email the tags [[]] in the SQL file should be changed from admin_username to user_name, admin_pass to user_password and admin_email to user_email respectively.

I have emailed you the updated SQL file.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 6:27 pm.

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