Author Topic: Wordpress Create Bug  (Read 5727 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Wordpress Create Bug
« on: September 08, 2020, 07:08:38 PM »
I just created a WordPress installation using the built in addon tool.

One bug.

When creating the database and user, the script seems to ignore the entered database name, and uses username for both database and username.

Example
I entered the below:
db = abc
user = xyz

Generated username and db name:
db = xyz
user = abc

Just thought you should no.

Otherwise you will get DB Connection error from wordpress unless you change the wp-config.php to match what you actually created. Or name the two the same to begin with.

Offline
*
Re: Wordpress Create Bug
« Reply #1 on: January 13, 2021, 08:06:56 PM »
Hi,

I could reproduce the issue on CWPpro version: 0.9.8.1032.

If user input same value as Database Name and User Name the installer works perfectly.

If the user input different value as Database and User Name, the installer creates the wp-config.php file with "User Name" value both in DB_NAME and DB_USER fields which causes a database error on the WordPress site because of wrong credentials.

Steps to reproduce the issue -
Login to CWP User -> Navigate to Addons -> WordPress -> Add New WordPress -> Set "wpdb" as database name and "wpuser" as username and finish installation.

I have tried on multiple server and could reproduce this on all of them.
Please let me know if there's something I can do to fix this.

Thanks.

Offline
*****
Re: Wordpress Create Bug
« Reply #2 on: January 14, 2021, 09:44:33 AM »
Hello

Thanks for the report, this will be solved in our next version