Comments (9)
@ghoshnirmalya if you modify this line https://github.com/postlight/headless-wp-starter/blob/master/frontend/components/Header.js#L17 to add a / after main, and avoid that redirect, does it make a difference?
Also, just to confirm: is this Mac or Linux?
from headless-wp-starter.
@ginatrapani No change happens even if I add /
after main.
I'm using Mac.
from headless-wp-starter.
I can't seem to reproduce this. Anyone else seeing it?
from headless-wp-starter.
weird, did you just cloned/download did yarn install && yarn start
on wp server folder then went to ./frontend
and did yarn install && yarn dev
and it gave you this?
from headless-wp-starter.
@johhansantana Yes.
from headless-wp-starter.
Now, again I cloned the repo and followed the following steps:
yarn install && yarn start
cd frontend && yarn install && yarn start
- I log into the
wp-admin
and change the theme toPostlight Headless WordPress
.
Now, when I go to http://localhost:3000/
, I get the following:
maximum redirect reached at: http://localhost:8080/wp-json/
FetchError: maximum redirect reached at: http://localhost:8080/wp-json/
at ClientRequest.<anonymous> (/Users/nirmalya/Development/personal/github/headless-wp-starter/frontend/node_modules/node-fetch/index.js:147:13)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:551:20)
and, when I go to http://localhost:8080/wp-json/
, I get the following:
This page isnβt working
localhost redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
from headless-wp-starter.
I log into the wp-admin and change the theme to Postlight Headless WordPress.
You shouldn't have to do this part, that should've happened during yarn install
. Could you share the output of that command?
from headless-wp-starter.
This is the output:
yarn install v1.3.2
$ chmod +x install.sh && ./install.sh
Warning: homebrew/php/wp-cli 1.4.1 is already installed
Warning: homebrew/php/robo 1.1.1 is already installed
Warning: mysql 5.7.20 is already installed, it's just not linked.
You can use `brew link mysql` to link this version.
Starting MySQL
SUCCESS!
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 143
Server version: 5.5.5-10.2.11-MariaDB Homebrew
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> 171203 11:08:19 mysqld_safe A mysqld process already exists
exit
Bye
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
[4/4] π Building fresh packages...
success Saved lockfile.
$ robo wordpress:setup
This will replace your current WordPress install. Are you sure you want to do this? (yes/no) [no]:
>
β¨ Done in 14.07s.
from headless-wp-starter.
Ah, the issue is this message:
Warning: mysql 5.7.20 is already installed, it's just not linked.
You can usebrew link mysql
to link this version.
See this comment:
from headless-wp-starter.
Related Issues (20)
- Frontend ERR_EMPTY_RESPONSE HOT 3
- Sub navigation? HOT 1
- functions acf_register_block_type and acf_register_block do not exist
- wp-headless container: No such file or directory HOT 1
- Nonce doesn't work for draft previews HOT 1
- Errors popping up while installing since wordpress 5.3
- Errors installing Windows 10 LTSC HOT 11
- Changed current directory to /var/www/.composer error
- faild to build wp-headless : Permission denied HOT 1
- How to deploy it on server?
- CORS errors HOT 1
- Which frontend if SEO is important HOT 1
- No Schema Available HOT 2
- Multisite setup - SSR wpapi connection issue
- Is there a complete guide from A to Z how to setup this repo INCLUDING details like setting up the users node and www-data? HOT 1
- Getting a rest_post_invalid_id when i try to visit wp-admin
- [meta]: Project status? HOT 1
- wp-headless: permission denied
- How can I make a PR? HOT 2
- Error loading Requests.php file in WordPress Docker container
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 headless-wp-starter.