-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
issues launching suitecrm locally #10146
Comments
|
Hey! Thanks for getting in touch! On top of what @chris001 has noted, I would recommend ensuring your file/folder permissions are correct before installing. As well as ensuring you meet the compatability matrix: And have all the prerequisites noted here: If you're still having issues installing, could you try installing the version released yesterday? (7.14.0) Please let us know if you are having any further issues! |
It's mostly because the permissions are not correct for the SuiteCRM directory. If you give correct permissions. I will initialize a log file and this should work. I too had the same issue... I am on Ubuntu.. All I did was Please note that I have apache running as web server. Hence the user www-data |
The issue here is on the line 732 in install/install_utils.php . You can change the code from if (@fwrite($fp, $nl.$entry) === false) { to if(is_resource($fp)){ |
@Aakeeo Can you make a Pull Request with your fix? |
May I suggest something different? The proposed code will not be useful to users because if you neglected to set proper permissions and the log file can't be written to, you won't know what happened, you will be left without a clue. On the other hand, it is difficult to write a helpful message to the log file, if you can't write to the log file... So I propose this trick: change the ... and leave the current code as it is. If it bombs, if bombs telling you why. |
Issue
I cannot launch suitecrm locally after cloning ht egithub repository. I am not sure if there is a requirements.txt document somewhere but when I tried to launch it, it is throwing the fwrite error below which seems to be from the suitecrm code itself
Expected Behavior
launch locally using localhost
Actual Behavior
PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /home/*******/Desktop/SuiteCRM/install/install_utils.php:723
^will not launch locally with php -S localhost:8000 -t
Possible Fix
Unknown
Steps to Reproduce
clone github, launch locally with php -S localhost:8000 -t
Your Environment
Suitecrm Version (current github version)
PHP 8.2.9
MySQL 8.0.34-0ubuntu0.20.04.1
Google Chrome Version 116.0.5845.96
The text was updated successfully, but these errors were encountered: