Getting permission error when installing CiviCRM under Drupal I've recently set up a subdomain of mine on a VPS, installed Drupal 7.56, and managed to download the civicrm module but when I go to http://mysite.net/drupal-7.56/sites/all/modules/civicrm/install/index.php

It give me this:

You don't have permission to access this page

I was logged in as the admin before I tried the install.  Not sure if this is file permissions or what.

PHP 7.0
Drupal 7.56
CiviCRM 4.7.28

Thanks in advance,
John

I faced this problem too and tried a lot of things to make it works, but failed.

Finally, I opened the file "index.php" in "http://(mysite)/sites/all/modules/civicrm/install/index.php". I put the comments in line number 265th through 274th like this.

/*
  // Check that user is logged in and has administrative permissions
  // This is necessary because the script exposes the database settings in the form and these could be viewed by unauthorised users
  if ((!function_exists('user_access')) || (!user_access('administer site configuration'))) {
    $errorTitle = ts("You don't have permission to access this page");
    $errorMsg = ts("The installer can only be run by a user with the permission to administer site configuration.");
    errorDisplayPage($errorTitle, $errorMsg);
    exit();
  }
*/

Yeah. IT WORKS!!!.

Who use this way like me, DON'T for get to remove the comments after installation is completed.

i got the point, i also faced the same problem for 2 days and at last i figure out that the user created during installation looks like not given the administrator rights and this might be a bug may be, anyways i did by changing following permissions.
Goto People->permissions
Under system heading there is 'Administer site configuration' permission.
Give this permission to Annonymous User and Authenticated User.
save changes and you are done.

Note: Revoke permission from both users after installation.


Why does the Constituent Summary & Detail reports contain deleted contacts? (or, how to remove them?) The constituent summary & constituent detail reports both contain deleted contacts - this is 4.7.21 (and 4.7.23) under Drupal.  I verified the problem on this demo site.  This doesn't seem right to me - is this a bug or WAD? Either way, any advice on how to remove them from these reports? If a bug I will report it, of course, but I wonder whether I'm missing something obvious here!

I think the answer is that the contacts probably haven't been deleted but are in Trash.  You can search for deleted contacts in Advanced Search>Search Settings where you'll see a box labeled "Search in Trash".  On completion of the search, click on Actions and they can be deleted permanently there.  They will probably not then appear in your reports.


Create menu for "Event registration" on Joomla site I have created a menu item "Event registration" on the backend of my Joomla site (localhost).  In civiCRM I created a template and created a new event.  On the front end it displays the below error message.

I will appreciate help.

Many thanks in advance

  @import url(/civicrm/administrator/components/com_civicrm/civicrm/css/civicrm.css); @import url(/civicrm/administrator/components/com_civicrm/civicrm/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css);    Sorry but we are not able to provide this at the moment. The page you requested is currently unavailable. Return to home page.    function toggle( element ) { var className = element.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } }

Thanks I managed to get this to work. I had to in the Joomla menu manager select even information page and enter the title of the event


I cannot get the installer civicrm screen I have downloaded and unzipped the files. In wordpress when i click on the menu "install civicrm" i have no answer, the screen remains.
See screencap

Thank you for help

My hosting is by 000webhost free

Marc

Welcome to the CiviCRM community!

After enabling CiviCRM on the WordPress plugins page, you must run the CiviCRM installer.  Please see the WordPress installation instructions for details.

If you still have trouble, please post a new question, indicating a) the version of WordPress and CiviCRM; b) what steps you've taken, and which aren't working.

I found the answer to my problem.

The download of files was incomplete, i did it again properly and completely and it works quite well.

Thank you for those who answered.

MB


Best way to copy Contact name to Nickname & Legal name CiviCRM 4.7.29 / WP 4.9.4

Maybe it's a bit of OCD but I imported about 1000 Organizations and the name imported into Contact name. That left the nickname and legal name fields blank, which drives me nuts. I want them to match the Contact name.

I tried to use Profiles thinking maybe I could specify a variable pointing to each record's Contact name but I couldn't figure out how to make it work.

Is there a way within Civi to update a large number of records to achieve this?

thanks

This chapter of the user guide should help you: https://docs.civicrm.org/user/en/latest/organising-your-data/profiles/#updating-multiple-records-at-the-same-time_1

Basically you:

create a profile with the field you want to view + the ones you want to update
Search for the contacts you want to update
With the search result actions you select Batch Update with Profile and use the profile you created

I was looking for a way within Civi but I think the easiest way is to do a reimport again, thank you both for the suggestion


4.6.10 to 4.7.1 upgrade woes **UPDATE #5: See new answer at bottom. It's a fix!

**UPDATE #4: Decided do a clean install of 4.7.1 and see if I can point it to a working 4.7.1 backup database. I suppose I need to follow Kurund's wisdom on this, eh? https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+the+database+using+phpMyAdmin

~~~~~

**UPDATE #3: Well, it's been a nasty Mercury in retrograde these past couple of weeks. Or Murphy's Law has been acting like a troll. Had a power outage last night that exceeded the UPS runtime and this sandbox didn't gracefully shutdown. Ugh! Got it back up except...

4.7.1 gave me a blank screen again. Cleared the cache, checked all settings. All was intact except now missing a few files and folders. Ugh! Tried to reinstall it from Joomla Install-from-Folder function but that now gives me a blank page (500 error). I then decided to uninstall 4.7.1 and reinstall a fresh package but same results. It stopping after 30% of the folder/files are being installed.

I checked the database again, too. Noticed that in table

  civicrm_domain
  config_backend

field is gone

Any ideas?

~~~~~~~

**UPDATE #2: I was finally able to upgrade after starting with a good 4.6.10 database backup. Then again in table

  civicrm_domain.config_backend

marked that field column to NULL, and made sure the version number was set back to 4.6.10.

Then reading through the documentation again, deleted

  ~/media/civicrm/ConfigAndLogs/Config.IDS.ini

and

  ~/media/civicrm/templates_c/en_US

I then performed the 4.7.1 install again and it worked.

~~~~~~

**UPDATE #1: Seems there is an error of corrupted table creation in the log files. http://pastebin.com/KajmZuC1

There is an old bug by core developers on this supposedly fixed but here it is again. https://issues.civicrm.org/jira/browse/CRM-9493**

I actually have a dead upgrade now from 4.6.10 to 4.7.1 on Joomla 3.4.8. I am still running PHP 5.4 if that makes a difference considering the warnings during the upgrade.

After initial upgrade, I got a system error message on pop-up and where the notice is at the bottom of the container next to the CiviCRM version number. The error was that no Crons were recorded. I opened Scheduled Events and it showed all active Crons having just been run.

Next, I Cleared Caches but on this settings page the paths were missing from the HTML. I decided to hit the Reset Paths button and then everything went blank.

Front and backends are completely blank now. All paths in civicrm.settings.php and civicrm.config.php are correct including MySQL settings.

Here is the latest entries in the ConfigAndLogs log file.
http://pastebin.com/KajmZuC1

Also, "No mailboxes have been configured for Email to Activity Processing" but this shouldn't break the upgrade.

Please advise.

I got CiviCRM to come back by manually entering the paths manually into the CiviCRM Settings Overrides in civicrm.settings.php file.  There were some more error but at least CiviCRM came back for me.  It is obvious that the Reset Paths is causing problem and it might have to do with the way UpdateConfigBackend is calling a URL for GettingStarted.php.  I am not a developer but they all seem to be linked.  I shared what I actually did in this posting at the bottom: 4.6.12 to 4.7.1 upgrade causes problems with directories, update paths and clear cache
4.6.12 to 4.7.1 upgrade causes problems with directories, update paths and clear cache

A corrupt table could explain this. I would repair it. First repair and see if it works already. If not, restore the backup, make sure table is still fixed (or repair again) and upgrade again.

If you have access to phpMyAdmin, you can select all tables at the bottom and then choose "repair tables".

If you do not have phpMyAdmin, but you have access to ssh then you can use mysqlrepair (or mysqlcheck -r), see more at http://linuxcommand.org/man_pages/mysqlcheck1.html

If you have neither you should ask your hoster to do a repair for all tables.

Good luck.


How to register participant for all repeating/recurring events - CiviCRM 4.6 I've been looking at the docs but can't find an obvious way to register someone onto all occurrences of a repeating/recurring event.

e.g. On a ten week course, I want to register them on one page, and not have to register them 10 times

At the moment recurring events don't support registering a participant onto all/some occurrences through the registration process. Its a feature thats been requested a few times and we're looking for funding to make it happen. Please get in touch if your interested.

If an event lasts 10 weeks, and only a single registration is required, you don't need to set it up as a parent event plus 9 recurrences. A single event registration will do and just show the start and end dates on the Information and Settings pages.

If you need to have the attendee register for each week individually, I'd use the Import Participants feature to mass register them for all events.


CiviCRM 5.4.0 Install "You do not have permission to access this page" I am stuck on this step:

  Then go to Settings > CiviCRM Installer:
  http://example.org/wp-admin/options-general.php?page=civicrm-install

In version 4.7 and above you will see a link on the wp-admin page to the Installer screen

There is not link on the wp-admin page like it says and if I manually use http://example.org/wp-admin/options-general.php?page=civicrm-install with my domain it gives me a "You do not have permission to access this page" error.

I basically cannot access the installer at all.

Sometimes even i face similar problem when i try to install CiviCRM. But i make it work by commenting the line that throws this error.

You can find quick solution here.


How do I print the "received date" on an invoice? I have an urgent problem with invoices. For our finance department, I have to print out all invoices we generated this year.
On the invoice, it HAS to display the date the invoice was issued, but instead it displays the date that I print the invoice.

In the template, the line

  {ts}Invoice Date:{/ts} {$invoice_date}

gives me the CURRENT date, not the date the invoice was issued.

I have looked for other variables I could use, but I had no luck finding anything.

Does anyone have a solution for this?

I came accross the same issue. The invoice date gives the current date and that is in most cases not correct.

We have used the receive date of the contribution in the invoice template as follows.

...
{crmAPI var='contribution' entity='Contribution' action='getsingle' id=$id}
...
{ts}Invoice Date:{/ts} {$contribution.receive_date|crmDate:$config->dateformatFull}
...

The top line with {crmApi...} could be present already in the template. So check whether you can find that line. The {crmApi...} line is not defined before the {$contribution....}

Hold Tab five seconds, Press F11 CTRL P Space bar twice. Remove touch and display by restarting and press F5 after done.. Actualy do this. Twice or delet current past note.s invoices


How to fix this JSON Error with Joomla 3.7, CiviCRM 4.7.19, PHP 7.1? To evaluate CiviCRM, I've installed CiviCRM 4.6.26/Joomla 3.6.5, subsequently upgraded to CiviCRM 4.7.19/Joomla 3.7 site that is running PHP 7.1.

The backend 4.7.19/3.7 install appears to work fine, but when I define a CiviCRM Dashboard or anything else as a front-end menu option, I get

RuntimeException: Error decoding JSON data:
Syntax error in /home/hillcresttm/public_html/libraries/vendor/joomla/registry/src/Format/Json.php:72 Stack trace:
#0 /home/hillcresttm/public_html/libraries/vendor/joomla/registry/src/Registry.php(366):
  Joomla\Registry\Format\Json->stringToObject('{"menu_image":"...', Array)
#1 /home/hillcresttm/public_html/libraries/vendor/joomla/registry/src/Registry.php(72):
  Joomla\Registry\Registry->loadString('{"menu_image":"...')
#.............

Various Joomla support forums indicate that message is likely a problem with JSON data that is not valid. In Joomla versions prior to 3.6.3 (October, 2016) this failed silently, but since 3.6.3, it generates an error.

I've cleared/disabled my Joomla caching with no change in the error. I found a CiviCRM item on cache, but the directory structure did not match my installation.

Any suggestions for how to proceed?

Bruce

As of May 2017, I'd say PHP 7.1 / CiviCRM combination is probably not ready for production use - I tried it the other day and ran into some errors. If you need to run CiviCRM in production, I'd switch down to PHP 7.0.x or 5.6.x.

You might be able to get it to behave with some other configuration changes or by being more actively engaged in CiviCRM development, but for a production site I'd recommend shifting down to 7.0.x.


Petition Email Error When Creating New Petition I just installed the "Petition Email" extension (2.0) for CiviCRM (4.7.10) under Drupal (7.50). When going to Campaign > New Petition, I get the error

Sorry but we are not able to provide this at the moment. 'civicrm_survey' is not a valid option for field entity_table

This is a known issue - see CRM-19286.  To fix, upgrade to CiviCRM 4.7.12 or higher.

Luckily that's a helpful error message. The code causing the error is on line 182 in petitionemail.php, and the error can be eliminated by commenting out that line.

However, being new to this extension, I don't know if that's affecting functionality. Everything seems to work.


Are private contribution pages a thing? We want to restrict our member signup page ( a contribution page ) to people who have registered to our Drupal site.  Also, we'd want to have public contribution pages not associated with membership be accessible without login.

In Drupal, I could make the permissions for "CiviContribute: make online contributions" be not accessible for unauthenticated users, but then I wouldn't be able to have the public contribution pages accessible.

Is there such thing as a private contribution page?  Or is there some other way of achieving our goal that I don't know about?

Thanks!

A short bit of custom code could take care of this (using the hook_civicrm_preProcess hook I think).  It would need to check if the current page is your "sign-up" contribution page, and if it is, make sure that the user is currently logged in.  If not, it would redirect to wherever you need.

Not positive this code is perfect, but it should get you pretty darn close...

function hook_civicrm_preProcess($formName, &$form) {

  $form_id = 7;   // set this to the specific form_id you wish to limit access to
  $redirect_path = 'home';  // set this to the url to redirect to if not logged in

  if ($formName == "CRM_Contribute_Form_Contribution_Main" && $form->_id == $form_id) {
    if (!user_is_logged_in()) {
      drupal_goto($redirect_path);
    }
  }

}

I might have misunderstood your question, but I think you are looking for something like the node access module, which it will allow you to restrict access to a page (ie membership page) based on user roles, ie authenticated users.

I'm not a Drupal user so please correct me if there are better solutions.


Which Drupal permissions does a user need in order to see and change their relatives (contacts with permissioned relationships) in webform? I have a webform which users use to register themselves and their family members for events. If users have a login, it automatically populates their family members, who are contacts with permissioned relationships to the user, and all they have to do is select which events they are registering for this time.

Recently, most of my users are not having their families pre-populate, even though they do have family members, properly relationshiped and permissioned in the system. It works perfectly for anyone with admin privileges, but in this case I want most users to only see their spouses and children.

Which permissions do I need to give them?

I'm using Drupal 7.43, CiviCRM 4.6.18, Webform 7.x-4.12, and Webform Civicrm Integration 7.x-4.15+27-dev

Below are my current settings:

EDIT: I have now read this documentation, which makes me wonder whether my question should be about the CiviCRM ACL permissions instead, but I don't see how to do that either. https://docs.civicrm.org/user/en/4.6/initial-set-up/permissions-and-access-control/

You're looking for the Relationship Permissions as ACL extension.

Try setting CiviCRM: access Contact Dashboard for authenticated users.


CiviEvent - Unable to select profiles - get 'custom field is not assigned to the event' warning even though no profile selected Possibly since the last versions of 4.6 but certainly in 4.7 we're unable to select any profiles for the online registration screen for events. Even for a new event we get the "The selected profile is using a custom field which is not assigned to the "Event" being configured" warning, and we can see only two profiles (Discount Codes and End Dates) - we get this warning even though at this stage we haven't picked any profile.

This is Joomla 3.4.8 and Civi 4.7.1. It's a default Joomla template and I've removed all Civi extensions for the moment. I'm accessing as a SuperUser so it isn't a permissions thing.

Unfortunately the demo server is running Civi 4.6 so I can't try to replicate the issue there.

Any suggestions where I should look?

I had a very similar issue and it was caused by CiviRules. I disabled CiviRules and it worked fine.

I'm running CiviCRM 4.7.15 on Joomla 3.6.5
Not running CiviRules.
I have the same problem. I can create profiles that I can use in contribution pages for memberships but, if I enable online registration for an event or for an event template, only the pre-existing, default profiles show up. This means that I cannot collect custom data from event registrants.


How to install civix and build an extension in drupal Please I don't know how to install civix and build an extension using civicrm. I
already installed drupal and civicrm module. but I have no clue how to write an extension or how to run anything here. I am totally new to it.

thanks

Have a look at the Developer Guide here: https://docs.civicrm.org/dev/en/latest/ as a start.

If at all possible I would recommend trying to find an expert near you who would be able to give you a developer training. You would have to pay for it but it will probably save you a lot of exploration time :-)

Download Buildkit from github.
Then set environment variable.

Set civicrm.setting.php in evvironment variable (C:\xampp\htdocs\drupal\sites\default\civicrm.setting.php)

Then goto the directory -> {I am using xampp -> C:\xampp\htdocs\drupal\sites\default\files\civicrm\ext ).

Open your cmd (right shift + right click) then type
civix civicrm:ping