Comments (6)
Same here. My wordpress blog is under "/web" and get the same error message as sarbjitarora. Any ideas/solutions?
from thermal-api.
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.
@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.
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.
@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.
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)
- Post Type HOT 1
- Get Post Types Categories HOT 4
- strange case of invalid route HOT 1
- Nevermind - not an issue
- termal-api installation error HOT 1
- API Listing Scheduled Posts as 'Publish' HOT 4
- Caching not fetching recently created category HOT 2
- 500 error when obtaining posts
- Feature Requests: Custom fields, Featured Image, Attachment URL's
- Is there a way to query by post date range? HOT 3
- Per page on taxonomies route
- the url of the avatar of the authors appear to me no HOT 2
- Render Shortcodes before sending JSON HOT 1
- 144 posts but only 4 posts got in the JSON HOT 1
- 404 when using thermal in its own directory HOT 3
- Custom Post Type endpoint returning attachments HOT 2
- Exception when sizes is undefined
- Voce\Thermal\API_ROOT constant has no affect, documentation inaccurate, plugin incomplete.
- Querying a large per_page number of posts HOT 3
- Problem with UTF8 chars and JSON_encode HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thermal-api.