CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • gitify error
Pages: [1]

Author Topic: gitify error  (Read 1055 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
gitify error
July 14, 2014, 06:51:52 am
I'm working to get the 4.5 beta up and running via gitify on my local box. I have done the following:
- Installed wordpress latest
- Installed civicrm 4.5 from http://sourceforge.net/projects/civicrm/files/civicrm-testing/4.5.beta1/ and ensured it is working correctly
- ran gitify via instructions on http://wiki.civicrm.org/confluence/display/CRMDOC/GitHub+for+CiviCRM

Although everything seems to build fine and the site still runs properly after this, I receive a fatal error when it tries to run do_gencode and I'm not sure if I should be concerned about that output - can anyone tell me if this is an error locally or something else:

Code: [Select]
bash gitify WordPress /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm
[[Checkout https://github.com/civicrm/civicrm-core.git (/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm.tmp)]]
[git clone -b master https://github.com/civicrm/civicrm-core.git /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm.tmp]
Cloning into '/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm.tmp'...
remote: Reusing existing pack: 88698, done.
remote: Counting objects: 147, done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 88845 (delta 52), reused 18 (delta 3)
Receiving objects: 100% (88845/88845), 40.74 MiB | 321.00 KiB/s, done.
Resolving deltas: 100% (64582/64582), done.
Checking connectivity... done.
Checking out files: 100% (4491/4491), done.
[[Swap metadata]]
[[Remove local modifications]]
[[Skip hook installation (/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm) -- use "--hooks" to enable]]
[[Set remote (origin => https://github.com/civicrm/civicrm-core.git within /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm)]]
[[Checkout https://github.com/civicrm/civicrm-packages.git (/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/packages.tmp)]]
[git clone -b master https://github.com/civicrm/civicrm-packages.git /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/packages.tmp]
Cloning into '/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/packages.tmp'...
remote: Reusing existing pack: 7429, done.
remote: Total 7429 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (7429/7429), 73.01 MiB | 342.00 KiB/s, done.
Resolving deltas: 100% (2716/2716), done.
Checking connectivity... done.
Checking out files: 100% (4556/4556), done.
[[Swap metadata]]
[[Remove local modifications]]
[[Skip hook installation (/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/packages) -- use "--hooks" to enable]]
[[Set remote (origin => https://github.com/civicrm/civicrm-packages.git within /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/packages)]]
[[Checkout https://github.com/civicrm/civicrm-wordpress.git (/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/WordPress.tmp)]]
[git clone -b master https://github.com/civicrm/civicrm-wordpress.git /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/WordPress.tmp]
Cloning into '/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/WordPress.tmp'...
remote: Reusing existing pack: 273, done.
remote: Total 273 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (273/273), 93.10 KiB | 0 bytes/s, done.
Resolving deltas: 100% (125/125), done.
Checking connectivity... done.
[[Swap metadata]]
[[Remove local modifications]]
[[Skip hook installation (/Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/WordPress) -- use "--hooks" to enable]]
[[Set remote (origin => https://github.com/civicrm/civicrm-wordpress.git within /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/WordPress)]]
[[Generate files]]

civicrm_domain.version := 4.5.beta2

Parsing schema description schema/Schema.xml
Extracting database information
Extracting table information

Fatal error: Uncaught exception 'Exception' with message 'Failed to locate template for civicrm.config.php' in /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/CRM/Core/CodeGen/Config.php:29
Stack trace:
#0 /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/CRM/Core/CodeGen/Config.php(10): CRM_Core_CodeGen_Config->setupCms()
#1 /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/CRM/Core/CodeGen/Main.php(116): CRM_Core_CodeGen_Config->run()
#2 /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/CRM/Core/CodeGen/Main.php(101): CRM_Core_CodeGen_Main->runAllTasks()
#3 /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/xml/GenCode.php(35): CRM_Core_CodeGen_Main->main()
#4 {main}
  thrown in /Applications/MAMP/htdocs/civi4.5-core/wp-content/plugins/civicrm/CRM/Core/CodeGen/Config.php on line 29

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: gitify error
July 14, 2014, 03:35:14 pm
The "WordPress" option in gitify is... misleading. It gets the code required for Civi-WP but uses a different directory structure. It's suitable for creating a new Civi-WP tarball/zipfile (via distmaker), but it's not suitable for a live dev installation.

In the near future, we'll probably remove/deprecate the "GitHub for CiviCRM" instructions and replace them with a link to buildkit. Buildkit can prepare a working dev-install with WP+CiviCRM (or Drupal+CiviCRM) without as much mucking around to create config files and install dependencies. We use it for the 4.5 sandbox http://wordpress.sandbox.civicrm.org (among other things). The analog to gitify would be:

  https://github.com/civicrm/civicrm-buildkit/blob/master/app/config/wp-demo/download.sh

That script is designed to run as part of buildkit and needs some adaptation to run manually on top of an existing WP+Civi installation. A manual process would be more like:

Code: [Select]
cd wp-content/plugins
mv civicrm /tmp/civicrm.bak
git clone http://github.com/civicrm/civicrm-wordpress.git -b "$CIVI_VERSION" civicrm
git clone http://github.com/civicrm/civicrm-core.git -b "$CIVI_VERSION" civicrm/civicrm
git clone http://github.com/civicrm/civicrm-packages.git -b "$CIVI_VERSION" civicrm/civicrm/packages
cp /tmp/civicrm.bak/civicrm.settings.php civicrm/

Then create civicrm/civicrm/bin/setup.conf (based on setup.conf.txt) and be sure to add the line:

Code: [Select]
GENCODE_CMS="WordPress"

and finally you can regenerate some files and reset the Civi DB with by running:

Code: [Select]
cd civicrm/civicrm/bin
./setup.sh

teja-amil

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Joomla! 3.2
  • MySQL version: 4
  • PHP version: 5
Re: gitify error
July 16, 2014, 04:14:24 am
Hi

Followed through the steps. I am working with Emily and we are trying to setup 4.5.beta1 for GSoC project.

When I execute ./setup.sh and try to open a civicrm page, I end up with a blank page. Error Log shows this:

[Wed Jul 16 16:35:57.898830 2014] [:error] [pid 7549] [client 127.0.0.1:47851] PHP Fatal error:  require_once(): Failed opening required 'CRM/Core/DAO/Domain.php' (include_path='.:/home/rahul/Desktop/public_html/wordpress/wp-content/plugins/civicrm/civicrm:/home/rahul/Desktop/public_html/wordpress/wp-content/plugins/civicrm/civicrm/packages:.:/home/rahul/Desktop/public_html/wordpress/wp-content/plugins/civicrm/civicrm/:/home/rahul/Desktop/public_html/wordpress/wp-content/plugins/civicrm/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /home/rahul/Desktop/public_html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/ClassLoader.php on line 165, referer: http://localhost/wp-admin/plugins.php

What went wrong?

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: gitify error
July 16, 2014, 06:11:05 am
thanks totten - I only see 4.4 branches on https://github.com/civicrm/civicrm-wordpress - is there anything up for 4.5 yet?

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: gitify error
July 16, 2014, 01:30:43 pm
The "master" branch is always the next major release. At the moment, "master" is really "4.5". In the near future (~1 week?), we will make a new "4.5" branch (and then master will be "4.6"). We'll post an announcement on the forum and mailing list when that happens.

teja-amil

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Joomla! 3.2
  • MySQL version: 4
  • PHP version: 5
Re: gitify error
July 18, 2014, 10:44:51 am
Hi totten

I understand WordPress 4.5 is not available. So, I have installed drupal-demo.

The command I ran after successful amp test response is : ./civibuild create drupal-demo --civi-ver 4.5.beta2 --url http://localhost:8001

I get this error:

[[Download drupal-demo (type 'drupal-demo' in '/home/rahul/civicrm-buildkit/build/drupal-demo')]]
PHP Warning:  file_put_contents(/home/rahul/civicrm-buildkit/app/tmp/git-cache/civicrm/civicrm-core.git.lock): failed to open stream: No such file or directory in /home/rahul/civicrm-buildkit/bin/pidlockfile.php on line 76

Can you please help me with this?

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: gitify error
July 18, 2014, 01:09:51 pm
Hey, thanks for the error report. I was able to reproduce on a new installation and posted a patch. You should update buildkit and try again, eg

Code: [Select]
cd buildkit
git pull
cd bin
./civibuild create drupal-demo --civi-ver 4.5.beta2 --url http://localhost:8001

Aside: If you prefer to get bleeding-edge 4.5.x (rather than a beta), you can say:

Code: [Select]
./civibuild create drupal-demo --civi-ver master --url http://localhost:8001

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • gitify error

This forum was archived on 2017-11-26.