install Chulan demo on php7

mattheweigand's picture
mattheweigand
Sun, 12/18/2016 - 01:45
#1
install Chulan demo on php7

I'm trying to install Chulan on my server which has Ubuntu 16.04 and php7. I would ideally like to use the demo install script to set everything up. However, the mdchulan.profile install script has some mysql_* statements that don't work in php7, because they have been deprecated in favor of mysqli_* statements. I thought it would be a simple matter of searching and replacing mysql_ with mysqli_, so I did that. But now I'm getting errors saying 

mysqli_query() expects at least 2 parameters, 1 given in _md_profile_import_sql()

all over the place. I feel like asking for help now because I'm not sure how exactly I have to change the mysqli statements to make the script work. Can you give me some advice or provide a php7-compatible install script?

phuonght's picture
phuonght
Fri, 12/23/2016 - 00:00

Hi,

Can you please describe more about problem with PHP7? We tried to install but it worked normally. 

Or you can send us your server infomation, ssh, mysql so then we will help you install theme. 

mattheweigand's picture
mattheweigand
Thu, 12/29/2016 - 10:55

Well, when I try to install the demo, I get this error:

Error: Call to undefined function mysql_connect() in _md_profile_import_sql() (line 65 of <path>/profiles/mdchulan/mdchulan.profile).

This is because I have php7 installed on my server and not php5. mysql_connect() was deprecated in php7, changed to mysqli_connect(). 

So, if i go to mdchulan.profile and change mysql_connect() to mysqli_connect(), it begins to work, but throws other errors. 

The basic problem is that mdchulan.profile is written for php5, but I'd like to convert it work for php7. 

I don't feel comfortable giving you login access to my private server.

phuonght's picture
phuonght
Thu, 12/29/2016 - 22:35

You can please go to your account page (http://megadrupal.com/user/mattheweigand) to download older profile and install.

mattheweigand's picture
mattheweigand
Fri, 12/30/2016 - 03:58

Ok, but I only see the original profile that I purchased there, and I can't even download that anymore.

phuonght's picture
phuonght
Fri, 12/30/2016 - 04:41

We changed it to older version for you already. Please try to click onto Md_chulan_install_profile.Zip.

mattheweigand's picture
mattheweigand
Fri, 12/30/2016 - 05:02

It says access denied.

phuonght's picture
phuonght
Fri, 12/30/2016 - 05:14

Please try again. We fixed.

mattheweigand's picture
mattheweigand
Sat, 12/31/2016 - 04:50

Ok, it downloaded, and it installed. Thanks for your help!

mattheweigand's picture
mattheweigand
Wed, 01/04/2017 - 07:22

If you'd like to see what I ended up doing with this, check out my site: http://matthew.weigand.guru

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.