Comments (16)
I changed my date format in Wordpress away from the first option (F j, Y) to the second option (arbitrarily chosen, Y-m-d). and This was resolved for me.
from gridsome-starter-wordpress.
I modified the plugin file to test out possible avenues for a solution. Line 171 seems to be where it breaks:
const { status } = response.data.data
Above that line I added:
console.warn(response);
And the error printed out is a 403 status produced by the wordpress url */wp-json/wp/v2/users
I don't know what the next step is but it's a start.
from gridsome-starter-wordpress.
This error should be fixed by gridsome/gridsome#905
from gridsome-starter-wordpress.
Getting this too, but only intermittently. Not every time.
from gridsome-starter-wordpress.
I have the same issue.
from gridsome-starter-wordpress.
@devellopah @seansmyth
I found how to workaround.
Inside gridsome.config.js, you need to add the baseUrl.
It's not well explained.
from gridsome-starter-wordpress.
@devellopah @seansmyth
I found how to workaround.
Inside gridsome.config.js, you need to add the baseUrl.
It's not well explained.
It hasn't fixed the issue for me.
from gridsome-starter-wordpress.
console.warn(response.data)
gives me html string
no property data
on response.data
is available
Initializing plugins...
Loading data from https://woo.islamibakaev.ru
response <html><head><meta http-equiv='refresh' content='1'></head><body><script type='text/javascript' src='//woo.islamibakaev.ru/hostia-antibot.js'></script><noscript><div align="center" style="color:#a16c18;font-family:'Arial';line-height:28px;"><div style="font-size:18px;font-weight:600;font-family:'Arial';color:#fe6e0e;margin:50px 0px 15px 0px;">Хостинг ХостиЯ. Сработала защита против взлома!</div>Если Вы видите это сообщение, Ваш браузер не поддерживает <b>JavaScript</b>!<br />Включите поддержку <b>JavaScript</b> в настройках браузера, чтобы страница загрузилась!</div></noscript><script>if (!navigator.cookieEnabled) {document.write('<div align="center" style="color:#a16c18;font-family:Arial;line-height:28px;"><div style="font-size:18px;font-weight:600;font-family:Arial;color:#fe6e0e;margin:50px 0px 15px 0px;">Хостинг ХостиЯ. Сработала защита против взлома!</div>Если Вы видите это сообщение, Ваш браузер не поддерживает <b>Cookie</b>!<br />Включите поддержку <b>Cookie</b> в настройках браузера, чтобы страница загрузилась!</div>');}</script></body></html>
from gridsome-starter-wordpress.
status
is available at response
itself, so looks like
const { status } = response.data.data
needs to be replaced with
const { status } = response
but then i get error
Error: 412 - https://woo.islamibakaev.ru/wp-json/wp/v2/media
from gridsome-starter-wordpress.
Did someone found a fix for this ?
I didn't even start developing and after installing with gridsome create project wordpress
, created a .env file and ran gridsome develop
got the same error
TypeError: Cannot destructure property `status` of 'undefined' or 'null'.
at WordPressSource.fetch (/home/pedroferreira/Documents/Projetos/imo/wp-content/themes/imo-gridsome/imo-zalox/node_modules/@gridsome/source-wordpress/index.js:171:40)
at process._tickCallback (internal/process/next_tick.js:68:7)
from gridsome-starter-wordpress.
Unfortunately, it seems that the fix is not working in my case.
OS: elementaryOS Hera 5.1
node: v10.16.0
@gridsome/cli: v0.3.1
gridsome: v0.7.12
Any new ideas perhaps?
from gridsome-starter-wordpress.
What version is @gridsome/source-wordpress
? I don't think @hjvedvik has published the updates yet...
from gridsome-starter-wordpress.
Thank you @thetre97 for your quick reply and sorry I forgot to mention, the version of @gridsome/source-wordpress
is 0.5.2.
I was afraid that the latest commit wasn't published yet so I've downloaded and replaced index.js
but that resulted in a different error so I stopped digging myself deeper.
Cheers.
from gridsome-starter-wordpress.
It hasn't fixed the issue for me.
Nor my either.
But looking deeper into my gridsome.config.js file I see my defaults need updating such as:
use: '~/src/plugins/wp-source/',
the tilde would link to your users home directory, but once I corrected to in my case:
use: '/Users/tom/Dropbox/Sites/therockfactory.net/', // was originally set to ~/src/plugins/wp-source/
Boom! It's working. Sort of.
from gridsome-starter-wordpress.
I had another site where this wasn't working. Besides changing the date format, I see that I also needed to change my permalink settings in WordPress away from the 'Plain' format. That got me past this error on my second site.
from gridsome-starter-wordpress.
TypeError: Cannot destructure property 'product' of 'productDetails' as it is undefined.
function ProductScreen(props) {
7 | const [qty, setQty] = useState(1);
8 | const productDetails = useSelector((state) => state.productDetails);
9 | const { product,loading,error } = productDetails;
10 | const dispatch = useDispatch();
11 |
12 | useEffect(()=>{
View compiled
▶ 16 stack frames were collapsed.
from gridsome-starter-wordpress.
Related Issues (20)
- Cannot query field "url" HOT 3
- Error: Cannot query field "allWordPressPost" on type "Query". Did you mean "allGraphqlPost"? HOT 6
- Failed to fetch baseUrl HOT 9
- Page Template HOT 1
- sourceUrl error HOT 10
- Error: ECONNREFUSED - /wp-json/wp/v2/types HOT 9
- vue-svg-loader giving Error: Cannot query field "allWordPressP ost" on type "Query".
- Failed to make route like WordPress custom permalink
- Can't have pages with children render correctly: routes: { page: ':link', HOT 11
- Updating for v0.7, Routes/Templates HOT 3
- Custom Post Types 'rest_base' starting with '/' HOT 1
- Failed to compile with 2 errors HOT 4
- Use :category as path
- WordPress Multisite support HOT 1
- custom post types support?
- QUESTION: Support for JWT authentication
- Error graphQl run dev
- fails on POST with 400 HOT 3
- Clarification
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 gridsome-starter-wordpress.