Fix Error 500 on some installs #1

Closed
opened 2017-02-27 08:56:03 -06:00 by mattbk · 5 comments
mattbk commented 2017-02-27 08:56:03 -06:00 (Migrated from github.com)

DD drops an Error 500 on the final checkout button, but it works on END (I'm obfuscating website names that I am working on).

  • Some PHP or server setting? GoDaddy fails while Green Geeks works?
  • Drupal in subdirectory on DD, wonder if it's still not configured right in settings.php.
DD drops an Error 500 on the final checkout button, but it works on END (I'm obfuscating website names that I am working on). - Some PHP or server setting? GoDaddy fails while Green Geeks works? - Drupal in subdirectory on DD, wonder if it's still not configured right in settings.php.
mattbk commented 2017-02-27 18:56:57 -06:00 (Migrated from github.com)

Set a base URL, still having the issue (subdirectory is temporary during staging):

/**
 * Base URL (optional).
 *
 * If Drupal is generating incorrect URLs on your site, which could
 * be in HTML headers (links to CSS and JS files) or visible links on pages
 * (such as in menus), uncomment the Base URL statement below (remove the
 * leading hash sign) and fill in the absolute URL to your Drupal installation.
 *
 * You might also want to force users to use a given domain.
 * See the .htaccess file for more information.
 *
 * Examples:
 *   $base_url = 'http://www.example.com';
 *   $base_url = 'http://www.example.com:8888';
 *   $base_url = 'http://www.example.com/drupal';
 *   $base_url = 'https://www.example.com:8888/drupal';
 *
 * It is not allowed to have a trailing slash; Drupal will add it
 * for you.
 */
 $base_url = 'https://dd.org/drupal';  // NO trailing slash! 
Set a base URL, still having the issue (subdirectory is temporary during staging): ``` /** * Base URL (optional). * * If Drupal is generating incorrect URLs on your site, which could * be in HTML headers (links to CSS and JS files) or visible links on pages * (such as in menus), uncomment the Base URL statement below (remove the * leading hash sign) and fill in the absolute URL to your Drupal installation. * * You might also want to force users to use a given domain. * See the .htaccess file for more information. * * Examples: * $base_url = 'http://www.example.com'; * $base_url = 'http://www.example.com:8888'; * $base_url = 'http://www.example.com/drupal'; * $base_url = 'https://www.example.com:8888/drupal'; * * It is not allowed to have a trailing slash; Drupal will add it * for you. */ $base_url = 'https://dd.org/drupal'; // NO trailing slash! ```
mattbk commented 2017-02-27 19:14:29 -06:00 (Migrated from github.com)

It has something to do with the metadata I added. Installing from snapshot at 0e2671b975 lets me complete checkout.

It has something to do with the metadata I added. Installing from snapshot at https://github.com/mattbk/uc_stripe/tree/0e2671b975300cfbf34cac67e38f9807a13de6a1 lets me complete checkout.
mattbk commented 2017-02-27 19:14:59 -06:00 (Migrated from github.com)

Also noting that it was actually .htaccess I was thinking of. Working with this setting right now.

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /
Also noting that it was actually .htaccess I was thinking of. Working with this setting right now. ``` # Modify the RewriteBase if you are using Drupal in a subdirectory or in a # VirtualDocumentRoot and the rewrite rules are not working properly. # For example if your site is at http://example.com/drupal uncomment and # modify the following line: # RewriteBase /drupal # # If your site is running in a VirtualDocumentRoot at http://example.com/, # uncomment the following line: # RewriteBase / ```
mattbk commented 2017-02-27 19:18:27 -06:00 (Migrated from github.com)

It's not the readme changes (I figured I would check just in case).

It's not the readme changes (I figured I would check just in case).
mattbk commented 2017-02-27 19:23:14 -06:00 (Migrated from github.com)

I left some dpm() calls in from troubleshooting when I added the title and model metadata fields. I assume Drupal went looking for dpm() and couldn't find it, hence the error!

I left some `dpm()` calls in from troubleshooting when I added the title and model metadata fields. I assume Drupal went looking for `dpm()` and couldn't find it, hence the error!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: matt/uc_stripe#1
No description provided.