Skip to content
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

Installation Error #5335

Closed
programmeradu opened this issue Sep 11, 2020 · 35 comments
Closed

Installation Error #5335

programmeradu opened this issue Sep 11, 2020 · 35 comments

Comments

@programmeradu
Copy link

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? Installation

On what type of server is this running? Dedicated / Shared hosting? Linux / Windows? Windows

What browser (and version) are you running? Google Chrome

What version of PHP is the server running? PHP 7

What version of SQL Server are you running? 5

What version of ChurchCRM are you running? 4.1,1

Fatal error: Uncaught Error: Class 'Slim\Http\Cookies' not found in C:\xampp\htdocs\vendor\slim\slim\Slim\Http\Request.php:143 Stack trace: #0 C:\xampp\htdocs\vendor\slim\slim\Slim\DefaultServicesProvider.php(60): Slim\Http\Request::createFromEnvironment(Object(Slim\Http\Environment)) #1 C:\xampp\htdocs\vendor\pimple\pimple\src\Pimple\Container.php(118): Slim\DefaultServicesProvider->Slim{closure}(Object(Slim\Container)) #2 C:\xampp\htdocs\vendor\slim\slim\Slim\Container.php(123): Pimple\Container->offsetGet('request') #3 C:\xampp\htdocs\vendor\slim\slim\Slim\App.php(296): Slim\Container->get('request') #4 C:\xampp\htdocs\setup\index.php(27): Slim\App->run() #5 {main} thrown in C:\xampp\htdocs\vendor\slim\slim\Slim\Http\Request.php on line 143

This appears when i type http://localhost

@DawoudIO
Copy link
Contributor

Hi, can you tell me how you installed the app and where did you download it from

@programmeradu
Copy link
Author

i downloaded it here on github, followed all imstructions to install it on xampp serveer

@DawoudIO
Copy link
Contributor

Ensure you download from https://github.com/ChurchCRM/CRM/releases

@programmeradu
Copy link
Author

that is exactly where i downloaded from
but it's saying fatal error with slim/cookies

@MrClever
Copy link
Collaborator

Let's see if we can figure this out 🙂

  1. Does the file /path/to/ChurchCRM/vendor/slim/slim/Slim/Http/Cookies.php exist? Can the webserver process read it?
  2. What is in the /path/to/ChurchCRM/logs/YYYY-MM-DD-app.log log when the error is thrown?
  3. Is there anything in Apache's error.log?
  4. You mention you're running PHP 7 - can you confirm it is 7.2 or higher?

@programmeradu
Copy link
Author

Are you also using Xampp? Or i need to install some modules?

@programmeradu
Copy link
Author

No there's nothing in the Apache error log

@programmeradu
Copy link
Author

programmeradu commented Sep 12, 2020

yeah there is cookies.php and there is nothing in that file

@MrClever
Copy link
Collaborator

@programmeradu if Cookies.php is empty, then your zip file didn't unpack properly because that file should be 195 lines. My production system (ChurchCRM 4.1.0) the /path/to/ChurchCRM/vendor/slim/slim/Slim/Http/Cookies.php file returns the following:

$ stat Cookies.php 
  File: Cookies.php
  Size: 4924      	Blocks: 16         IO Block: 4096   regular file
Device: 801h/2049d	Inode: 20023       Links: 1
Access: (0644/-rw-r--r--)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2020-09-13 02:31:45.742379049 +1000
Modify: 2020-06-19 10:25:51.767923948 +1000
Change: 2020-06-19 10:25:53.456035161 +1000
 Birth: -

Suggestion - download the latest release. Verify the hash, then unpack it. Make sure you grab the .htaccess files as well when you deploy to Apache etc.

There are no zero-size PHP files in our releases.

@programmeradu
Copy link
Author

Could you please send me the cookies file here

@programmeradu
Copy link
Author

The latest release is 4.1.1 and there is nothing in the cookies.php file

@MrClever
Copy link
Collaborator

MrClever commented Sep 14, 2020

@programmeradu - The latest release (4.1.1) does definitely have a valid Cookies.php file. Make sure you're grabbing the "ChurchCRM-4.1.1.zip" NOT the "Source code (zip)"
Screen Shot 2020-09-14 at 8 51 19 pm

Edit/further explanation: the source code archives are used to build the zipped release. It's more a way of recreating the source tree at the exact point in time the release file was compiled. Unless you're comfortable building all the supporting components yourself, the source code archives are not going to work.

  • ChurchCRM-X.Y.Z.zip = ready to run, fully compiled application.
  • X.Y.Z.tar.gz or X.Y.Z.zip (Source code archives) = uncompiled source code. These can't be deployed without building the supporting libraries (usually in the /vendors branch of the application)

@programmeradu
Copy link
Author

That is exactly what i downloaded... kindly send the file here

@programmeradu
Copy link
Author

i have tried redownloading

@programmeradu
Copy link
Author

But still... sopleasesend cookies file

@MrClever
Copy link
Collaborator

MrClever commented Sep 15, 2020

Please verify the SHA1 sum for the zip file - if it matches the published release, then it would be helpful to understand how you are unpacking the zip file. There have been no other reports the release file is corrupt, so I don't want want to clutter up a ticket with the same file that is readily available.

ChurchCRM-4.1.1.zip SHA1: bba10ee5eb23e24b0e67ae1bf1d9df38cc2027ed

It looks like you're running Windows, so try this in a terminal, and verify the result against the hash below (assuming the zip file is in the same directory you run CertUtil in):

CertUtil -hashfile ChurchCRM-4.1.1.zip SHA1

Sample run on Windows 10 VM (assuming release file is in the user's "Downloads" folder):

C:\Users\Test\Downloads> CertUtil -hashfile ChurchCRM-4.1.1.zip SHA1
SHA1 hash of file ChurchCRM-4.1.1.zip:
bba10ee5eb23e24b0e67ae1bf1d9df38cc2027ed    <--- there's the correct SHA1 hash
C:\Users\Test\Downloads>

@programmeradu
Copy link
Author

C:\Users\SAMMIE>Certutil -hashfile ChurchCRM-4.1.1.zip SHA1 CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND) CertUtil: The system cannot find the file

specified.C:\Users\SAMMIE>Certutil -hashfile ChurchCRM-4.1.1.zip SHA1
CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: The system cannot find the file specified.

i got an error

@programmeradu
Copy link
Author

And where do i find the certutil?

@MrClever
Copy link
Collaborator

It has been part of Windows since version 7 AFAIK. Open a PowerShell session to run CertUtil though, not a "cmd.exe" session.

@programmeradu
Copy link
Author

Okay

@programmeradu
Copy link
Author

I am getting same feedback from powershell

@programmeradu
Copy link
Author

C:\Users\SAMMIE>Certutil -hashfile ChurchCRM-4.1.1.zip SHA1 CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND) CertUtil: The system cannot find the file

@programmeradu
Copy link
Author

Same feedback

@boluak
Copy link

boluak commented Sep 19, 2020

@programmeradu
Try installing on another partition aside from C drive.
generally try to.avoid installing on C drive especially on windows 10. You get into a lot of permissions issues, depending on how good you are at handling them.

@boluak
Copy link

boluak commented Sep 19, 2020

For the above command to work, the file u are working on (ChurchCRM-4.1.1.zip) should be in same folder or u specify absolute path

@programmeradu
Copy link
Author

programmeradu commented Sep 19, 2020 via email

@MrClever
Copy link
Collaborator

@programmeradu - If your Windows setup can't find CertUtil maybe a GUI alternative might be more useful, and there's lots of options too (for example): https://www.raymond.cc/blog/7-tools-verify-file-integrity-using-md5-sha1-hashes/

Bottom line is, there are not any empty/zero-length php files in our releases. If you have downloaded the release as described above and are seeing empty/zero-length php files (like Cookies.php) the zip file you are using is either corrupt or altered in some way, but is not the content we released. This is why verifying the SHA1 sum is so important.

@programmeradu
Copy link
Author

programmeradu commented Sep 20, 2020 via email

@programmeradu
Copy link
Author

i finally got the SHA 1
bba10ee5eb23e24b0e67ae1bf1d9df38cc2027ed
i used igorware hasher

@programmeradu
Copy link
Author

i think they are the same

@programmeradu
Copy link
Author

Any solutions yet?

@MrClever
Copy link
Collaborator

@programmeradu - that hash is consistent with the 4.1.2 release. If you're getting zero-length PHP files, then the only things I can think of are something screwy with the way the file is being unpacked or something on the system is interfering with the unpacking process (disk space, antivirus, who knows 🤷🏻‍♂️).

If you have a verified zip file (as suggested above) then the only problems can be with the unpack/deploy process which we have no control over. The release file is 100% functional and I have tested it on MacOS, Linux and FreeBSD (from different networks in different locales).

FYI - 4.1.3 was released today https://github.com/ChurchCRM/CRM/releases/tag/4.1.3

@programmeradu
Copy link
Author

Okay Thank you... and how do i setup kiosk

@MrClever
Copy link
Collaborator

MrClever commented Sep 27, 2020

@programmeradu - to avoid changing topic of this ticket, I'll suggest you link up with our development and support team on Gitter https://gitter.im/ChurchCRM/CRM

@MrClever
Copy link
Collaborator

Sounds like @programmeradu has successfully completed the install. Closing, but feel free to reopen if the installation is still broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants