Git Product home page Git Product logo

Comments (6)

viktormorales avatar viktormorales commented on July 28, 2024

Same here. My wordpress blog is under "/web" and get the same error message as sarbjitarora. Any ideas/solutions?

from thermal-api.

johnciacia avatar johnciacia commented on July 28, 2024

I cannot confirm this issue. I just set up WordPress in a subdirectory using thermal on the master branch and tested the posts endpoint (http://thermal.dev/wordpress/wp_api/v1/posts/) and it works fine for me. What do your .htaccess and vhosts look like?

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

# END WordPress
<VirtualHost *:80>
    DocumentRoot "/Users/johnciacia/projects/thermal"
    ServerName thermal.dev
    ErrorLog "/var/log/apache2/thermal.dev-error_log"

    <Directory /Users/johnciacia/projects/thermal>
        Options All
        AllowOverride All
        order allow,deny
        allow from all
    </Directory>
</VirtualHost>

from thermal-api.

kevinlangleyjr avatar kevinlangleyjr commented on July 28, 2024

@sarbjitarora and @viktormorales can you provide any more info on this that might help us track down the issues you were having?

from thermal-api.

Sammaye avatar Sammaye commented on July 28, 2024

I just had this issue too (and a few others).

I believe the documentation is wrong. It states:

By default the API root is set to 'wp_api'. For example, the v0.1 will have a root URL of:

So I used v0.7.5 in my URL but this did not work. Once I changed it to v1 it worked. I originally saw this from the directory structure.

Also I think there should be a mention that if you must use index.php in your wordpress URL then you will infact need to do something like:

http://www.xxx.com/xxx/index.php/wp_api/v1/posts

To get it to work.

from thermal-api.

prettyboymp avatar prettyboymp commented on July 28, 2024

@Sammaye, the API version is different than the plugin version. The current API version is v1. This acts as a promise that the interface to the API will not change through out this version even though updates may be made to the plugin itself. The plugin version is currently 0.7.5.

For the use of index.php, you should only have to do that if you aren't running mod_rewrite or don't have the .htaccess file setup to automatically run all requests through index.php.

from thermal-api.

Sammaye avatar Sammaye commented on July 28, 2024

Ah ok that was some confusion since I used what looked like the only displaying version number.

Indeed I am in the position where, due to our very weird setup, I have to use wordpress like this. I searched Google forever to figure out how plugin URLs actually work (I actually guessed that index.php factored off for plugins as well in the end since Google wouldnt tell me), would have been a lot easier if this plugins documentation could have pointed me there instantly.

from thermal-api.

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.