-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not connect to MySQL - Shared in Hosting (Locaweb) #4413
Comments
Please check the values in your Config.php on your server. |
The information contained in Config.php is correct, I tested the connection both by the server and the client of my computer. The following is the model: // Database connection constants // Root path of your ChurchCRM installation (THIS MUST BE SET CORRECTLY!) // Set $ bLockURL = TRUE to enforce https access by specifying exactly // URL [0] is the URL that you prefer most users use when they |
@MrClever any ideas here? Really seems like a username / password issue. |
I opened a call on my hosting provider (Locaweb), and received the following response: The application is trying to use root access on the server, it is not possible on shared hosting. Because super user changes would impact the other clients that are on the same server. The application also uses Python, and the module is not used in shared hosting. Does ChurchCRM really need root access? There is something you can help me with, I would love to implement the application in my church. |
That sounds wrong. A production installation of ChurchCRM does not use root, nor does it use Python. Are you sure you downloaded the correct zip file from the release page? |
Yes, I tested both ChurchCRM-3.0.7 and ChurchCRM-3.0.6. the error log is this: Mon Aug 20 09:59:35 2018] [error] [client 186.202.102.84] PHP Fatal error: Call to undefined function ChurchCRM \ dto \ random_bytes () in / home / storage / 9 / c7 / public_html / members / ChurchCRM / dto / SystemURLs.php on line 28 Is there anything I can do? Thankful, |
Oh. This error comes from using the wrong version of PHP. You need at least 7.0 |
I have the same issue. |
Late to the ticket - my apologies. A few things:
I can't emphasise enough just how utterly bad this is! It's not even encrypted!! :(
EDIT: the screenshot above seems to suggest the ChurchCRM system is installed in |
Update... I've found a bug in the implementation of #4071 (my code...I'm an idiot :P). Basically the carry-over from the old |
PR #4444 created to fix this issue. @crossan007 / @DawoudIO please review and consider pushing out a patch release - this is a bit of a problem and I feel bad because it was my code that caused it :( Apologies to all affected! |
I tried to follow the steps, but I did not succeed. As for correcting the problem found in the code, should I wait for the release of a new version to validate? Thank you. |
@gvleite - if your hosting provider has separated the web and database servers then using localhost/127.0.0.1 won't work, so there's that. I'd still follow up with them on the unencrypted, world-exposed MySQL database though. Secondly, the fix is pretty simple - it's actually a single line in the Essentially, you need to modify line 81 in the 3.0.7/3.0.8
to this
If you can't edit the file on the host upload a new copy with the changes made locally on your PC etc. Be aware, the file integrity check will break when you modify a file directly like I've suggested, but it should get you started with a connection to the database. When this fix is rolled into a release, the update process will install the new version. |
I was able to do the editing, |
We see this a lot: https://github.com/ChurchCRM/CRM/wiki/500-Error |
I changed the permissions, as guidance did not solve. But when I return I'll stick to the new version with the fix. Thanks for the help so far. |
I can not complete the process of a new installation because I get the error:
Could not connect to MySQL on 179.188.16.35 on port 3306 as fp_mychurchcrm. Please check the settings in Include / Config.php.
MySQL Error:
I can connect to the database server through my computer and through the server with no problems.
None of the other issues solved my problem.
If you have the ChurchCRM software running, please file an issue using the Report an issue in the help menu.
On what page in the application did you find this issue?
Setup
On what type of server is this running? Dedicated / Shared hosting? Linux / Windows?
Shared in Hosting (Locaweb) Linux
What browser (and version) are you running?
Google Chrome 67.0.3396.99
What version of PHP is the server running?
7
What version of SQL Server are you running?
5.6
What version of ChurchCRM are you running?
3.0.7
The text was updated successfully, but these errors were encountered: