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 fails on the civi demo site civi standalone (ver 6.2alpha) #622

Open
zawsx opened this issue Mar 10, 2025 · 8 comments · May be fixed by #623
Open

Installation fails on the civi demo site civi standalone (ver 6.2alpha) #622

zawsx opened this issue Mar 10, 2025 · 8 comments · May be fixed by #623

Comments

@zawsx
Copy link

zawsx commented Mar 10, 2025

CiviVolunteer won't install on civicrm wp demo site or on my 6.0 stable version
Having installed the pre-req angular profiles
On https://wpmaster.demo.civicrm.org/
I get the message:
Failed to register activity type Volunteer

Granted the civi wp demo site is running 6.2alpha1 , but hopefully there are no .2 changes that will break extensions that are supposed to work on the stable 6.0 version...

Here's the backtrace from the standalone Civicrm demo sandbox when it fails, so the same fault as previous issues?

0 civicrm_api3() /srv/buildkit/build/smaster/web/core/CRM/Admin/Form/Extensions.php:187
1 CRM_Admin_Form_Extensions->postProcess() /srv/buildkit/build/smaster/web/core/CRM/Core/Form.php:647
2 CRM_Core_Form->mainProcess() /srv/buildkit/build/smaster/web/core/CRM/Core/StateMachine.php:144
3 CRM_Core_StateMachine->perform() /srv/buildkit/build/smaster/web/core/CRM/Core/QuickForm/Action/Next.php:43
4 CRM_Core_QuickForm_Action_Next->perform() /srv/buildkit/build/smaster/web/core/packages/HTML/QuickForm/Controller.php:203
5 HTML_QuickForm_Controller->handle() /srv/buildkit/build/smaster/web/core/packages/HTML/QuickForm/Page.php:103
6 HTML_QuickForm_Page->handle() /srv/buildkit/build/smaster/web/core/CRM/Core/Controller.php:356
7 CRM_Core_Controller->run() /srv/buildkit/build/smaster/web/core/CRM/Core/Page/Basic.php:364
8 CRM_Core_Page_Basic->edit() /srv/buildkit/build/smaster/web/core/CRM/Core/Page/Basic.php:170
9 CRM_Core_Page_Basic->run() /srv/buildkit/build/smaster/web/core/CRM/Admin/Page/Extensions.php:110
10 CRM_Admin_Page_Extensions->run() /srv/buildkit/build/smaster/web/core/CRM/Core/Invoke.php:278
11 CRM_Core_Invoke::runItem() /srv/buildkit/build/smaster/web/core/CRM/Core/Invoke.php:73
12 CRM_Core_Invoke::_invoke() /srv/buildkit/build/smaster/web/core/CRM/Core/Invoke.php:38
13 CRM_Core_Invoke::invoke() /srv/buildkit/build/smaster/web/core/Civi/Standalone/WebEntrypoint.php:80
14 Civi\Standalone\WebEntrypoint::invoke() /srv/buildkit/build/smaster/web/core/Civi/Standalone/WebEntrypoint.php:21
15 Civi\Standalone\WebEntrypoint::index() /srv/buildkit/build/smaster/web/index.php:35
16 {main}
@zawsx zawsx changed the title Installation fails on the civi demo site civi standalone (ver 6.2alhpa) Installation fails on the civi demo site civi standalone (ver 6.2alpha) Mar 10, 2025
@mlutfy
Copy link
Member

mlutfy commented Mar 10, 2025

The underlying issue seems to be:

API (ActivityType, create) does not exist (join the API team and implement it!)

tested on CiviCRM 6.0.0.

According to the git log of CiviCRM:

commit ffbcf0f4c08befc0ca379e806fb2ec29648e8829
Author: colemanw <coleman@civicrm.org>
Date:   Mon Jan 13 12:42:08 2025 -0500

    Api3 - Delete ActivityType API (deprecated since 2014)

@mlutfy mlutfy linked a pull request Mar 10, 2025 that will close this issue
@mlutfy
Copy link
Member

mlutfy commented Mar 10, 2025

PR: #623

@zawsx Thank you for reporting the issue. Can you test this patch? You can also download this zip: https://github.com/civicrm/org.civicrm.volunteer/archive/refs/heads/fixSixZeroCompat.zip

@zawsx
Copy link
Author

zawsx commented Mar 10, 2025

Thanks! I'm too much a newbie to know how to install exts. How do I discover the install syntax? I looked in your XML and couldn't spot it - there seems to be two things - it has to go into a specially-named folder in the civicrm tree and cv needs a keyword (I'm guessing cv ext:enable volunteer) or is it somehow
cv ext:enable civi_volunteer
I don't suppose I cold use the sandbox https://wpmaster.demo.civicrm.org/ could I? Can't see a way to get to the terminal to do the manual steps, nor a way in the gui to 'upload a zip' the way wp does with it's extensions. That would really help validate the fix in case my website install is somehow non-standard (which I hope it's not).

@zawsx
Copy link
Author

zawsx commented Mar 10, 2025

OK so I noticed the org name in the old narrative and deleted the folder, replacing it with your zip. Got a cloudflare timeout but not sure why (my php execution time was set to 120 secs) and if it affected it but in refresh it worked, thanks!

@zawsx
Copy link
Author

zawsx commented Mar 10, 2025

On the Voluinteer Settings page I get Warning: Undefined array key "volunteer_project_default_profiles_primary" in .../wp-content/uploads/civicrm/templates_c/en_GB/80/02/68/800268526c138a29b4a6edf7fff259a034c7c6e0_0.file_Settings.tpl.php on line 69
Line 69 contains:

getValue('fieldDescriptions')[$_smarty_tpl->getValue('elementName')]) {?>

Maybe I need to configure a Volunteer Project first?

@zawsx
Copy link
Author

zawsx commented Mar 10, 2025

So I tried to create a project and it wants a Beneficiary. After adding one and pressing 'continue' I get "A technical problem has occurred
Your submission was not saved. Resubmitting the form is unlikely to resolve this problem. Please contact a system administrator
." The log says "Parse error in extension org.civicrm.volunteer: Failed to parse info XML: File .../wp-content/uploads/civicrm/ext/org.civicrm.volunteer/info.xml does not exist." even though it does and seems to contain suitable XML

@mlutfy
Copy link
Member

mlutfy commented Mar 10, 2025

hi @zawsx, thank you for testing! The "Undefined array key" warning might be a different bug. Sometimes the warnings are just from newer PHP versions that tend to display the warnings more explicitly, but they are not necessarily bugs. (to be honest, I'm not very familiar with CiviVolunteer, I only noticed your question on the CiviCRM chat)

Your last comment about "failed to parse info XML" looks like maybe the folder changed location, and CiviCRM was confused. Sometimes going to Administer > System Settings > Extensions, and then clicking "refresh" makes that problem go away.

@zawsx
Copy link
Author

zawsx commented Mar 10, 2025

Thanks for responding!
The refresh does seem to have eliminated any more XML error log entries, good catch. Trying to create a project and getting "A technical problem has occurred" does not create a log entry. As the extension seems to operate on projects at every stage, not being able to create one stops the whole show sadly.

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

Successfully merging a pull request may close this issue.

2 participants