Forum Replies Created
-
AuthorPosts
-
Topher DeRosia
ParticipantI got the above worked out, it was variable naming. Now, how can I make this a google map instead of OSM?
Topher DeRosia
ParticipantThere are a couple problems with this doc. One is that the JS looks for #map_ID and the html provides id="map". I worked through that.
Once that's fixed we get this error:
Uncaught Error: Set map center and zoom first.This despite the fact that they are indeed set. I don't know JS well enough to debug this. Any ideas?
Topher DeRosia
ParticipantThat was it! Thanks! You ca close this issue.
Topher DeRosia
ParticipantYes, that's what I'm talking about, there's no UI under the advanced tab.
Topher DeRosia
ParticipantI figured it out, it was from another part of the page.
Topher DeRosia
ParticipantYes, I know, it's coming from the map code, and I'm asking WHY it's there. As you can see in the code above, there is no anchor tag.
Topher DeRosia
ParticipantTopher DeRosia
Participant

Topher DeRosia
ParticipantFeel free to close.
Topher DeRosia
ParticipantI figured it out. I had some logic dictating when my class was instantiated. It was there for the front of the admin page, but not there for submission. I loosened the logic and it works fine.
Topher DeRosia
ParticipantThe issue was that I had exported the code and made a plugin WITHOUT the requirement, but left the one on in the Builder, so it was over-riding my code. You can close this one.
Topher DeRosia
ParticipantClosing this. We didn't really fix the query, I THINK it was erroring because I was trying to detect a connection where there wasn't one. This was causing an IN statement with no IDs, which MariaDB gave an error on, but MySQL did not.
The way I "fixed" it was putting in more tests to make sure it was only looking for a connection on pages that really should have one, and THEN storing the object it got back in meta on the post.
DO NOT fetch this meta in the admin area, catastrophic error loss will occur.
Topher DeRosia
ParticipantAny help with this one? I really need to get it fixed.
Topher DeRosia
ParticipantI have the ID of the post I'm on, how do I know the ID of the other end, to check?
In other words, I want to know if current post is connected to ANY of the other post type.
Topher DeRosia
ParticipantThe problem is that it always works when there's a connection to be had. I think it's returning those errors on all the posts that don't have relationships.
I tried storing the related post object in meta, but it corrupts the data going into the editor.
I thought about storing it in a transient, but that fills up the database fast and makes wp_load_alloptions go too slow.
How can I properly cache these relationships?
-
AuthorPosts