Answers.Body: <p>I'm having the same problem with a fresh install of Drupal 9.</p>
  <p>I've managed to get rid of the &quot;REST url path incorrect&quot; message at /civicrm/civimobile/checklist in a very hacky way, but still when I use the app on my phone the only thing that is visible is Events.</p>
  <p>Here is how I got REST working:</p>
  <ol>
  <li><p>Added &quot;RewriteCond %{REQUEST_URI} !/libraries/civicrm/core/extern/rest.php$&quot; to .htaccess in web root (note this gets overwritten when you use &quot;composer require&quot;).</p>
  </li>
  <li><p>created web/libraries/civicrm/core/civicrm.config.php file by copying it from an older installation, as this file is missing in a fresh D9 + Civi install.</p>
  </li>
  <li><p>copied the directory vendor/civicrm/civicrm-core/extern to web/libraries/civicrm/core.</p>
  </li>
  <li><p>Edited civicrm.config.php and added the following at line 86:  $confdir = '../../../sites/default';</p>
  </li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-15T15:19:27.150Z
Answers.Text: This solution almost worked for us. Had to make a few changes as per https://civihosting.com/blog/civimobile-and-drupal-9/
Answers.UserDisplayName: Hershel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-02T18:22:24.993Z
Answers.LastActivityDate: 2022-02-02T18:22:24.993Z
Answers.UserDisplayName: Rob Squires
Answers.Body: <p>Please make sure <strong>permission settings</strong> are correct:<br/>
  <a href="https://civimobile.org/permissions/" rel="nofollow noreferrer">https://civimobile.org/permissions/</a><br/><br/>
  In order to <strong>view the calendar</strong>, they should be<br/>
  CiviCRM: access CiviCRM backend and API<br/>
  CiviCRM: view my contact<br/>
  CiviEvent: access CiviEvent<br/>
  CiviEvent: view event info<br/></p>
  <p><strong>View contacts:</strong><br/>
  CiviCRM: access CiviCRM backend and API<br/>
  CiviCRM: view my contact<br/>
  CiviCRM: view all contacts<br/></p>
  <hr />
  <p>Please also check the calendar settings in <strong>Administration/CiviMobile/CiviMobile Calendar Settings</strong>:<br/><br/>
  <a href="https://i.sstatic.net/oUSgq.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/oUSgq.jpg" alt="enter image description here" /></a></p>
  <p>Did you check &quot;Synchronize with CiviCalendar&quot;?<br/><br/>
  <a href="https://i.sstatic.net/TK6jj.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TK6jj.jpg" alt="enter image description here" /></a></p>
  <hr />
  <p>Did you <strong>clear the cache</strong> afterwards?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T17:36:59.073Z
Answers.Text: Thanks for the prompt reply! The calendar was synched.  I just cleared the cache on my browser and reconnected with CiviMobile, but no change.  I'm the administrator that recently set up this test domain.  The Drupal, Civi everything.  I can see and edit my contacts and Events in CiviCRM. When I look at the Drupal > People > Permissions they all have a greyed out check mark under Administrator, except a few of the more basic permissions where Anonymous and Authenticated users are checked.  I can't find rest.php anywhere (see the end of my original question).  Is that a problem?
Answers.UserDisplayName: jimcrist
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T19:25:45.823Z
Answers.Text: Yes, it is! Did you upgrade from an older drupal version? Have a look at https://www.drupal.org/project/drupal/issues/3153769#comment-13948137 I don't run CiviCRM/CiviMobile on Drupal, therefore I'm not sure, if this corresponds to the wrong feature behaviour in your case...
Answers.UserDisplayName: Guitarman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T20:28:17.500Z
Answers.Text: It's a fresh install of everything. I didn't upgrade Drupal. Thanks for the link, but it doesn't say how to find the file that needs editing.
Answers.UserDisplayName: jimcrist
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T21:08:14.517Z
Answers.Text: rest.php should be in /drupal/sites/all/modules/civicrm/extern/rest.php Probably the path to the civicrm.settings.php file is not correct and as consequence the APIv3 Rest query doesn't work?!
Answers.UserDisplayName: Guitarman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T19:28:51.900Z
Answers.Text: I'm still stuck and frustrated. Please see Update to my original post.  Thanks in advance...
Answers.UserDisplayName: jimcrist
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-12T20:21:49.753Z
Answers.Text: I got CiviMobile to work reasonably well on a WordPress website.  Is anyone using 5.6.1 CiviMobile with Drupal 9?
Answers.UserDisplayName: jimcrist
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T16:46:21.757Z
Answers.LastActivityDate: 2021-06-07T16:46:21.757Z
Answers.UserDisplayName: Guitarman
Body: <p>I set up a test domain to try CiviMobile. I got it to work but it only shows the test event I set up. Drupal 9.1.9 / CiviCRM 5.37.2 / CiviMobileAPI 5.6.1 / PHP 7.4.14 / Android 8.0.0</p>
  <p>I have administrative rights. When I logout of CiviMobile it presents the login screen.  When I login it spins a bit then stays on the login screen, showing my username and password and above it, it says You are connected to <a href="https://xxx.dreamhosters.com" rel="nofollow noreferrer">https://xxx.dreamhosters.com</a>. If I mess up the password it gives me an error message. I touch &quot;Back&quot; on the login screen and it says 'There are no events'. If I touch &lt;-- Back at the top of the screen, I get the 'Change server' message. If I say OK, it shows the Civi URL and a Connect button. Touch that and it shows the test event I set up, but there's no other menu items along the bottom of the screen. I can't see any of the contacts in the database. I installed the CiviCalendar Extension too, but it doesn't show up. The CiviMobile Checklist looks good, except it says the <strong>Rest url and the Rest Path are not correct. What's that?</strong>  Please advise...thanks!</p>
  <p><strong>UPDATE</strong>:
  I found rest.php, but it was in .../ffv.dreamhosters.com/vendor/civicrm/civicrm-core/extern. Then I realized Civi Directories &amp; Resource URLs had different [civicrm.root] directories, so I posted <a href="https://civicrm.stackexchange.com/questions/39742/resource-urls-screen-has-the-wrong-civicrm-root">Resource URLs Screen has the wrong [civicrm.root]</a> Then I moved my Extensions directory to the preferred location: .../sites/default/files/civicrm/ Reinstalled CiviMobile, Updated Paths, emptied the Civi cache and my browser cache.  But it's still complaining that the Rest Path is wrong, so I copied the Extern directory to where CiviMobile wants it to be .../libraries/civicrm/core/ but it's still not happy...Please Help!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-01T11:13:00.420Z
Comments.Text: Hi did you figure this out? I'm having the same problem with a fresh install of Drupal 9.
Comments.UserDisplayName: Rob Squires
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-01T15:59:11.947Z
Comments.Text: We're not using CiviMobile at this time.  If you read the comments below, you'll see I got it to work with WordPress which was our preferred CMS anyway.
Comments.UserDisplayName: jimcrist
Tags: <drupal><civimobile>
Title: CiviMobile Only Shows Events
ThreadText: # CiviMobile Only Shows Events
  
  (Asked by: username_0 on 2021-06-07)
  
  I set up a test domain to try CiviMobile. I got it to work but it only shows the test event I set up. Drupal 9.1.9 / CiviCRM 5.37.2 / CiviMobileAPI 5.6.1 / PHP 7.4.14 / Android 8.0.0
  
  I have administrative rights. When I logout of CiviMobile it presents the login screen. When I login it spins a bit then stays on the login screen, showing my username and password and above it, it says You are connected to <https://xxx.dreamhosters.com>. If I mess up the password it gives me an error message. I touch "Back" on the login screen and it says 'There are no events'. If I touch <-- Back at the top of the screen, I get the 'Change server' message. If I say OK, it shows the Civi URL and a Connect button. Touch that and it shows the test event I set up, but there's no other menu items along the bottom of the screen. I can't see any of the contacts in the database. I installed the CiviCalendar Extension too, but it doesn't show up. The CiviMobile Checklist looks good, except it says the **Rest url and the Rest Path are not correct. What's that?** Please advise...thanks!
  
  **UPDATE**:
  I found rest.php, but it was in .../ffv.dreamhosters.com/vendor/civicrm/civicrm-core/extern. Then I realized Civi Directories & Resource URLs had different [civicrm.root] directories, so I posted [Resource URLs Screen has the wrong [civicrm.root]](https://civicrm.stackexchange.com/questions/39742/resource-urls-screen-has-the-wrong-civicrm-root) Then I moved my Extensions directory to the preferred location: .../sites/default/files/civicrm/ Reinstalled CiviMobile, Updated Paths, emptied the Civi cache and my browser cache. But it's still complaining that the Rest Path is wrong, so I copied the Extern directory to where CiviMobile wants it to be .../libraries/civicrm/core/ but it's still not happy...Please Help!
  
  **Tags:** drupal, civimobile
  
  > **Comments:**
  > **username_1**: Hi did you figure this out? I'm having the same problem with a fresh install of Drupal 9.  
  > **username_0**: We're not using CiviMobile at this time.  If you read the comments below, you'll see I got it to work with WordPress which was our preferred CMS anyway.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2022-02-02. Score: 1
  
  I'm having the same problem with a fresh install of Drupal 9.
  
  I've managed to get rid of the "REST url path incorrect" message at /civicrm/civimobile/checklist in a very hacky way, but still when I use the app on my phone the only thing that is visible is Events.
  
  Here is how I got REST working:
  
  1. Added "RewriteCond %{REQUEST\_URI} !/libraries/civicrm/core/extern/rest.php$" to .htaccess in web root (note this gets overwritten when you use "composer require").
  2. created web/libraries/civicrm/core/civicrm.config.php file by copying it from an older installation, as this file is missing in a fresh D9 + Civi install.
  3. copied the directory vendor/civicrm/civicrm-core/extern to web/libraries/civicrm/core.
  4. Edited civicrm.config.php and added the following at line 86: $confdir = '../../../sites/default';
  
  > **Comments:**
  > **username_2**: This solution almost worked for us. Had to make a few changes as per https://civihosting.com/blog/civimobile-and-drupal-9/  
  
  ---
  
  ### Answer by username_3 on 2021-06-07. Score: 0
  
  Please make sure **permission settings** are correct:  
  <https://civimobile.org/permissions/>  
    
  In order to **view the calendar**, they should be  
  CiviCRM: access CiviCRM backend and API  
  CiviCRM: view my contact  
  CiviEvent: access CiviEvent  
  CiviEvent: view event info
  
  **View contacts:**  
  CiviCRM: access CiviCRM backend and API  
  CiviCRM: view my contact  
  CiviCRM: view all contacts
  
  ---
  
  Please also check the calendar settings in **Administration/CiviMobile/CiviMobile Calendar Settings**:  
    
  [![enter image description here](https://i.sstatic.net/oUSgq.jpg)](https://i.sstatic.net/oUSgq.jpg)
  
  Did you check "Synchronize with CiviCalendar"?  
    
  [![enter image description here](https://i.sstatic.net/TK6jj.jpg)](https://i.sstatic.net/TK6jj.jpg)
  
  ---
  
  Did you **clear the cache** afterwards?
  
  > **Comments:**
  > **username_0**: Thanks for the prompt reply! The calendar was synched.  I just cleared the cache on my browser and reconnected with CiviMobile, but no change.  I'm the administrator that recently set up this test domain.  The Drupal, Civi everything.  I can see and edit my contacts and Events in CiviCRM. When I look at the Drupal > People > Permissions they all have a greyed out check mark under Administrator, except a few of the more basic permissions where Anonymous and Authenticated users are checked.  I can't find rest.php anywhere (see the end of my original question).  Is that a problem?  
  > **username_3**: Yes, it is! Did you upgrade from an older drupal version? Have a look at https://www.drupal.org/project/drupal/issues/3153769#comment-13948137 I don't run CiviCRM/CiviMobile on Drupal, therefore I'm not sure, if this corresponds to the wrong feature behaviour in your case...  
  > **username_0**: It's a fresh install of everything. I didn't upgrade Drupal. Thanks for the link, but it doesn't say how to find the file that needs editing.  
  > **username_3**: rest.php should be in /drupal/sites/all/modules/civicrm/extern/rest.php Probably the path to the civicrm.settings.php file is not correct and as consequence the APIv3 Rest query doesn't work?!  
  > **username_0**: I'm still stuck and frustrated. Please see Update to my original post.  Thanks in advance...  
  > **username_0**: I got CiviMobile to work reasonably well on a WordPress website.  Is anyone using 5.6.1 CiviMobile with Drupal 9?  
  
  ---
  
  