Answers.Body: <p>Okay there were a lot of distractors but in the end what seemed to solve the server error was to give the public access to ajax via the Joomla ACL settings.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-26T07:47:47.140Z
Answers.LastActivityDate: 2022-09-26T07:47:47.140Z
Answers.UserDisplayName: Elin
Body: <p>I have a paid event set up for front end registration (Joomla). When &quot;pay later&quot; is used it works fine but when a credit card is used (Stripe processing) the user gets an &quot;Internal server error&quot; message.</p>
  <p>Edited to remove all of the logging that was misleading and to add the logging which helped.</p>
  <p>In the ConfigAndLog cache</p>
  <pre><code>Sep 25 21:11:40  [info] $IDS Detector Details = Array
  (
      [0] =&gt; Array
          (
              [name] =&gt; mp_52e5e0805583e8a410f1ed50d8e0c049_mixpanel
              [value] =&gt; {&quot;distinct_id&quot;: &quot;182a8fbd1b8e23-08597f4ac8da3f-1b525635-157188-182a8fbd1b91e3&quot;,&quot;$device_id&quot;: &quot;182a8fbd1b8e23-08597f4ac8da3f-1b525635-157188-182a8fbd1b91e3&quot;,&quot;$initial_referrer&quot;: &quot;$direct&quot;,&quot;$initial_referring_domain&quot;: &quot;$direct&quot;}
              [page] =&gt; /index.php?option=com_civicrm&amp;task=civicrm/ajax/rest&amp;Itemid=484
  
  .....
  
     [1] =&gt; Array
          (
              [name] =&gt; IDS_request_uri
              [value] =&gt; /index.php?option=com_civicrm&amp;task=civicrm/ajax/rest&amp;Itemid=484
              [page] =&gt; /index.php?option=com_civicrm&amp;task=civicrm/ajax/rest&amp;Itemid=484
      
      .....
  Sep 25 21:11:40  [error] 
  $Fatal Error Details = array:3 [
    &quot;message&quot; =&gt; &quot;You do not have permission to access this page.&quot;
    &quot;code&quot; =&gt; null
    &quot;exception&quot; =&gt; CRM_Core_Exception {#1613
      -errorData: array:1 [
        &quot;error_code&quot; =&gt; 0
      ]
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-09-19T18:26:11.830Z
Comments.Text: I think the error in the log is a different issue - that one's from a status check and is "correct" in the sense that it's checking that you shouldn't be able to delete arbitrary files. Any other errors listed?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-09-19T19:57:57.033Z
Comments.Text: Well that error is happening every time I try to use a credit card, so it's related although you could be right that it is some secondary consequence.
Comments.UserDisplayName: Elin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-09-25T15:51:53.857Z
Comments.Text: Is CiviCRM.ffda733e09f1091580d2e4d0.log owned by root? It should be writable by the web server user. Sometimes cron runs as root or something else and creates the file which then can't be written by the web server, so the log entries that would help troubleshoot this never get written.
Comments.UserDisplayName: Demerit
Tags: <civievent><joomla><stripe>
Title: Server access error for event registration with credit card
ThreadText: # Server access error for event registration with credit card
  
  (Asked by: username_0 on 2022-09-19)
  
  I have a paid event set up for front end registration (Joomla). When "pay later" is used it works fine but when a credit card is used (Stripe processing) the user gets an "Internal server error" message.
  Edited to remove all of the logging that was misleading and to add the logging which helped.
  In the ConfigAndLog cache
  Sep 25 21:11:40  [info] $IDS Detector Details = Array
  (
      [0] => Array
          (
              [name] => mp_52e5e0805583e8a410f1ed50d8e0c049_mixpanel
              [value] => {"distinct_id": "182a8fbd1b8e23-08597f4ac8da3f-1b525635-157188-182a8fbd1b91e3","$device_id": "182a8fbd1b8e23-08597f4ac8da3f-1b525635-157188-182a8fbd1b91e3","$initial_referrer": "$direct","$initial_referring_domain": "$direct"}
              [page] => /index.php?option=com_civicrm&task=civicrm/ajax/rest&Itemid=484
  
  .....
  
     [1] => Array
          (
              [name] => IDS_request_uri
              [value] => /index.php?option=com_civicrm&task=civicrm/ajax/rest&Itemid=484
              [page] => /index.php?option=com_civicrm&task=civicrm/ajax/rest&Itemid=484
      
      .....
  Sep 25 21:11:40  [error] 
  $Fatal Error Details = array:3 [
    "message" => "You do not have permission to access this page."
    "code" => null
    "exception" => CRM_Core_Exception {#1613
      -errorData: array:1 [
        "error_code" => 0
      ]
  
  **Tags:** civievent, joomla, stripe
  
  > **Comments:**
  > **username_1**: I think the error in the log is a different issue - that one's from a status check and is "correct" in the sense that it's checking that you shouldn't be able to delete arbitrary files. Any other errors listed?  
  > **username_0**: Well that error is happening every time I try to use a credit card, so it's related although you could be right that it is some secondary consequence.  
  > **username_1**: Is CiviCRM.ffda733e09f1091580d2e4d0.log owned by root? It should be writable by the web server user. Sometimes cron runs as root or something else and creates the file which then can't be written by the web server, so the log entries that would help troubleshoot this never get written.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-09-26. Score: 1 | Accepted answer
  
  Okay there were a lot of distractors but in the end what seemed to solve the server error was to give the public access to ajax via the Joomla ACL settings.
  
  
  ---
  
  