Skip to content

DOCSP-50185: Connection troubleshooting #272

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

Merged

Conversation

norareidy
Copy link
Collaborator

@norareidy norareidy commented Jun 16, 2025

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-50185

This PR uses the copy from the shared Connection Troubleshooting page but removes information about connection pooling, which the PHP library does not support.

Staging Links

  • connect/connection-troubleshooting
  • connect
  • connect/connection-options
  • Self-Review Checklist

    • Is this free of any warnings or errors in the RST?
    • Did you run a spell-check?
    • Did you run a grammar-check?
    • Are all the links working?
    • Are the facets and meta keywords accurate?
    • Are the page titles greater than 20 characters long and SEO relevant?
    • Did you add redirects?

    Copy link

    netlify bot commented Jun 16, 2025

    Deploy Preview for docs-php-library ready!

    Name Link
    🔨 Latest commit 7582ea1
    🔍 Latest deploy log https://app.netlify.com/projects/docs-php-library/deploys/6851a7aa7c8d3400086a4d73
    😎 Deploy Preview https://deploy-preview-272--docs-php-library.netlify.app
    📱 Preview on mobile
    Toggle QR Code...

    QR Code

    Use your smartphone camera to open QR code link.

    To edit notification comments on pull requests, go to your Netlify project configuration.

    Copy link
    Collaborator

    @mcmorisi mcmorisi left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    A few small things but LGTM overall!

    Comment on lines 54 to 55
    port is ``27017``. The default port value for an instance of MongoDB Server is
    ``27017``, but you can configure MongoDB to listen on another port.
    Copy link
    Collaborator

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Suggested change
    port is ``27017``. The default port value for an instance of MongoDB Server is
    ``27017``, but you can configure MongoDB to listen on another port.
    port is ``27017``. The default port value for a {+mdb-server+} deployment is
    ``27017``, but you can configure MongoDB to listen on another port.

    Comment on lines +83 to +84
    The {+driver-short+} may be unable connect to a MongoDB deployment if
    the authorization is not configured correctly. In these cases, the library
    Copy link
    Collaborator

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Suggested change
    The {+driver-short+} may be unable connect to a MongoDB deployment if
    the authorization is not configured correctly. In these cases, the library
    The {+driver-short+} may fail to connect to a MongoDB deployment if
    the authorization is not configured correctly. In these cases, the library

    Copy link
    Collaborator Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    I'll keep as "unable" for style guide reasons


    The following sections describe methods that might help resolve the issue.

    Check the Connection String
    Copy link
    Collaborator

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Thoughts about changing all occurrences of "connection string" to "connection URI"? Seems to be the wording we've been trending towards across our docs.

    Comment on lines 111 to 112
    If your username or password includes any of the following characters, you
    must `percent-encode <https://tools.ietf.org/html/rfc3986#section-2.1>`__ it:
    Copy link
    Collaborator

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Suggested change
    If your username or password includes any of the following characters, you
    must `percent-encode <https://tools.ietf.org/html/rfc3986#section-2.1>`__ it:
    You
    must `percent-encode <https://tools.ietf.org/html/rfc3986#section-2.1>`__ the following characters if they appear in your username or password:

    @norareidy norareidy requested review from a team and GromNaN and removed request for a team June 17, 2025 18:22
    Copy link
    Member

    @GromNaN GromNaN left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Just a question.
    LGTM.

    @@ -34,7 +34,7 @@ Set Connection Options
    You can configure your connection by specifying options in the connection URI or by
    passing them to the ``MongoDB\Client`` constructor.

    .. _php-connection-uri:
    .. _php-connection-options-uri:
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Why should this be changed? The previous slug matched the title better.

    Copy link
    Collaborator Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    This was a duplicate label - there's another php-connection-uri for this section of the Create a Client page, and it seemed like more of a general overview of URIs

    @norareidy norareidy merged commit 8e52a11 into mongodb:comp-cov Jun 25, 2025
    6 of 7 checks passed
    @norareidy norareidy deleted the DOCSP-50185-connect-troubleshoot branch June 25, 2025 20:02
    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 this pull request may close these issues.

    3 participants