Giter Site home page Giter Site logo

Comments (18)

timnolte avatar timnolte commented on July 20, 2024 1

Be advised, if you are using a Let's Encrypt SSL certificate that directory is used by it. It will get recreated when your cert renews.

from wordpress-activitypub.

skotperez avatar skotperez commented on July 20, 2024

Any news from this? Anything i can do to help?

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

We're experiencing the exact same issue here: https://webfinger.net/lookup/?resource=nina%40blog.ninapaley.com

I can tell the plugin is working and the URL config is correct, because this page returns a JSON response: https://blog.ninapaley.com/.well-known/webfinger?resource=acct%3Anina%40blog.ninapaley.com

It says "Missing parameter(s): resource"

I'm in the process of checking if openssl PHP-extension is installed.

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

We confirmed openssl is installed

IMG_20190907_130001

Anything else we can check?

from wordpress-activitypub.

pfefferle avatar pfefferle commented on July 20, 2024

Do you both use a caching plugin that also caches the wp-json api?

from wordpress-activitypub.

pfefferle avatar pfefferle commented on July 20, 2024

@skotperez and @alexgleason what is the PHP/WordPress version you are using?

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

WordPress 5.2.3.

I'm looking through the installed plugins now and nothing seems insane. It has "Quick Cache" so I added the .well-known path to the ignore list and cleared it. No change.

Should I can send you an email with a lot more info about the server and all installed plugins?

In theory since the endpoint is reached and properly returning json I think an interference with a plugin doesn't make sense to me.

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

PHP 7.2.22. Sorry, I missed that question.

from wordpress-activitypub.

pfefferle avatar pfefferle commented on July 20, 2024

You have to also add wp-json to the ignore path

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

I have 2 wordpress sites running on DreamHost.

ActivityPub works on my test site (a fresh install) and doesn't work on the other (an old site running for several years).

On my test site I installed the same plugins of the old site. I could not reproduce the problem.

I also compared phpinfo. The configuration is identical. Same PHP version, same MySQL, same Apache, same extensions installed.

The error, "Missing parameter(s): resource", seems to imply that PHP cannot read the GET parameter even though it's being passed. I wonder if this is a rewrite issue or something to do with Apache configuration. I'm requesting FTP access to the server to take a closer look.

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

Even after deactivating the plugin, the /.well-known/webfinger path still loads in my browser. I think you may be right that this is a caching issue.

I discovered a drop-in plugin called "advanced-cache.php". Gonna try to disable it. I'll report back if that helps.

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

I think I discovered where the issue lies:

My first thought is that there's some issue with Apache trying to route /.well-known, but it does seem to be handled by wp-json...

I'm not quite sure where to go from here, but glad I narrowed it down. I'm beginning to understand how this wp-json thing works.

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

I got it! It was due to already having a .well-known directory in the root of the webserver. Deleting that fixed it.

from wordpress-activitypub.

alexgleason avatar alexgleason commented on July 20, 2024

Yes, I'm a bit concerned DreamHost is going to automatically recreate it when the cert updates and it'll break this plugin. Trying to figure out a way around that.

from wordpress-activitypub.

pfefferle avatar pfefferle commented on July 20, 2024

OK, then it is a problem with the default rewrite rules, WordPress adds to the .htaccess. Can you try to add them explicitly? I will try to reproduce it.

from wordpress-activitypub.

skotperez avatar skotperez commented on July 20, 2024

@skotperez and @alexgleason what is the PHP/WordPress version you are using?

PHP 5.6 (yes, i have to upgrade!) and WordPpress 5.2.3. No cache plugin. I'm also using Let's Encrypt certs so .well-known directory was already there.

I've just tested after some months and... it is working now for me.

I've made a little change in the resource param. This is the good format that's working for me:
/.well-known/webfinger?resource=acct:[email protected]

from wordpress-activitypub.

pfefferle avatar pfefferle commented on July 20, 2024

This is weird 😳

from wordpress-activitypub.

stale avatar stale commented on July 20, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from wordpress-activitypub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.