Hot answers tagged

4

I was just dealing with this and found your question.. Since you used C:\, i'll assume you're in windows. TLDR; Try checking your PHP environment variable for 'HOMEPATH' vs 'HOME' and editing the file I mention below. The first thing I will say is that you can increase verbosity of errors in civix by using -v, -vv, or -vvv options for most verbose. It ...


3

On windows use attrib -r C:\xampp\htdocs\drupal\sites\default to make it writable.


3

If you've run amp, you should also delete the hidden folder $HOME/.amp. Leaving --full out of the install command will skip installing apps. Hoewver, There is no side effect to reinstalling the apps, and it includes ancillary programs like zip and curl, so you're most likely best off running with --full. It will also restart Apache for you, which might be ...


2

I'm going to provide one answer for the moment. This appears to be a Windows-only issue. I lifted my wordpress file hierarchy to my linux laptop and set permissions accordingly (chmod 775 all directories, chmod 664 all files, chmod 660 wp-config.php and civicrm.settings.php). Running linux xampp, the CiviCRM Dashboard appears exactly as it does on the live ...


2

Did you change the various URLs/paths in civicrm.settings.php and wp-config.php to match the new location? See this section from How should I copy a site from production to staging? : Replace all the usernames, passwords, paths, etc. in settings.php, civicrm.settings.php, and/or wp-config.php with the values appropriate to the staging server. If ...


2

You can't, I'm afraid. It doesn't work on Windows. From https://docs.civicrm.org/dev/en/latest/tools/buildkit/ :


2

I was about to take Eli's approach, but then I realized it is much simpler: close your current cmd shell/terminal; press Win + R, type setx CV_CONFIG "%userprofile%\.cv.json" and press Enter; reopen the shell, goto your project's directory and test with civix civicrm:ping -vvv. Alternatively, if you prefer to check/set environment variables for your ...


1

I did a bunch more work around this issue, and it appears to relate to a bug in how the values stored in the database civicrm_custom_field.serialize are handled when testing whether a change to serialization is required. When dealing with INT columns this would lead to an attempt to serialize a single value in and INT column, which results in an attempt to ...


1

In windows to change the folder permissions use attrib -r path\to\sites\default (can be a relative or absolute path).


1

The problem was caused by IIS Request Filtering Hidden Segments. By default IIS has a hidden segment called bin. API Explorer 4 attempts to get JavaScript from .../administrator/components/com_civicrm/civicrm/bower_components/google-code-prettify/bin/ Notice the bin folder name. Removing the bin Hidden Segment cured the problem. Security isn't an ...


1

BuildKit does not work on Windows at present - CiviCRM BuildKit makes many assumptions about what tools and environment it has access to and at this time it is not Windows compatible. It could be made to be so but the ease of setting up a Linux VM in Windows and the ever-improving "Windows Subsystem for Linux" make it unlikely that any explicit efforts are ...


1

Shortcut to Eli's answer; just civix civicrm:ping -vvv and check for ...\civix\vendor\civicrm\cv\src\Config.php. If you find it, it means you need to change HOME to HOMEPATH. From elseif (getenv('HOME')) { return getenv('HOME') . '/.cv.json'; } to elseif (getenv('HOMEPATH')) { return getenv('HOMEPATH') . '/.cv.json'; }


1

This really looks like you're trying to install on a hosting provider, but you downloaded the WordPress package for Windows. I can see how this might have happened given the WP site, but it's not at all what you wanted. Which hosting provider are you using? Do they offer WHM/cPanel? Or Plesk? These are management frameworks for hosting providers. Inside them ...


1

Well, this is embarassing as the answer was simply to clear all browser cache AND cookies. I had only cleared the browser cache before and just last night cleared the cookies for something else. When I brought up my local win Wordpress+CiviCRM under xampp, the CiviCRM dashboard was back in business! I apologize to those who took the time to help diagnose, ...


Only top voted, non community-wiki answers of a minimum length are eligible