| 00:14 | * | EThorn has joined |
| 01:07 | * | farmBOT has joined |
| 01:08 | * | EThorn has quit (Ping timeout: 240 seconds) |
| 01:31 | * | EThorn has joined |
| 01:32 | * | EThorn has quit (Client Quit) |
| 02:49 | * | mstenta has quit (Ping timeout: 250 seconds) |
| 13:06 | * | EThorn has joined |
| 13:09 | * | mstenta has joined |
| 13:21 | mstenta | EThorn: Hey! Sorry, been running around a bunch this weekend... saw your message about the gray lines not showing though... |
| 13:21 | mstenta | EThorn: I have a hypothesis... |
| 13:21 | mstenta | EThorn: when you created your areas, did you set the "Area Type" on them? |
| 13:21 | EThorn | if I change line 194 of area views default to full path it is fixed |
| 13:22 | mstenta | Oh! |
| 13:22 | mstenta | Ok... so maybe related to the other bug you found? |
| 13:22 | EThorn | they all have area type....it is another path issue, but I can't seem to get url() towork |
| 13:22 | mstenta | OK... |
| 13:22 | mstenta | Yea, because you have farmOS installed in a subdirectory... ok... want to file a new bug report? |
| 13:23 | mstenta | I'll take a quick look... gotta jump off in a minute though - getting my field plowed today for winter rye |
| 13:23 | EThorn | the really weird thing is if I view source it is actually looking for the path as /FarmOS/Farmos/farm/area/json so it doubles the directory |
| 13:23 | EThorn | I will file bug |
| 13:25 | mstenta | line 194 of what file? |
| 13:26 | mstenta | farm_area.views_default.inc? |
| 13:26 | mstenta | hmm - if so... that shouldn't be an issue... that's just exported from the Views module - which knows how to handle paths correctly... hmmmm |
| 13:27 | mstenta | oh i have an idea... |
| 13:27 | mstenta | there is some openlayers config code that actually references that path, however... to suck in the JSON... so maybe THAT'S where the issue is... |
| 13:28 | mstenta | Line 31 of farm_area.default_openlayers_sources.inc |
| 13:28 | mstenta | try making the change there instead.. |
| 13:28 | mstenta | If that works, then this is probably a bug in the Openlayers module |
| 13:29 | mstenta | I know the developer in charge of that module, and I've helped him fix a number of bugs, so I can escalate that up |
| 13:32 | EThorn | was looking at the line 31 thing and it does not seem to be where the path is coming from. |
| 13:35 | mstenta | EThorn: the path itself is defined by the Views export code you found (line 194 of farm_area.views_default.inc) - but that path is being requested when the map is built - by the code in farm_area.default_openlayers_sources.inc |
| 13:35 | mstenta | EThorn: did you try just going to the path itself? outside of the map? |
| 13:35 | mstenta | You can do that to make sure that the View is working properly to produce the JSON |
| 13:36 | EThorn | I think in this case it is an issue with the json file generating in the format href=\u0022\/FarmOS\/farm\/area\/high-tunnel so FarmOS is tacked on in json and in generating path |
| 13:36 | mstenta | But make sure you revert line 194 if you changed it (and make sure you revert the View in the UI because it may be overridden now) |
| 13:36 | EThorn | yea the json is there |
| 13:36 | mstenta | oh ok cool - and what's the path now? is it still what it was originally or did you change it? |
| 13:37 | EThorn | well...what I just said doesn't make sense either cause it can't even get to the json file |
| 13:37 | mstenta | what can't? |
| 13:38 | EThorn | so the path the editing map uses to look for the json file to get the geometry is generated wrong. So the problem isn't in the json, because if I tell it an exact path it finds the json and the geometry works gine |
| 13:38 | EThorn | fine* |
| 13:39 | mstenta | ok cool - that's what i suspected - a bug in the openlayers code |
| 13:39 | mstenta | that module is great - but i have definitely found a number of bugs in it ;-) |
| 13:39 | EThorn | it has a lot going on |
| 13:39 | mstenta | for little edge cases like this |
| 13:39 | mstenta | yes it does |
| 13:40 | EThorn | I might just go back and reinstall in server root...ha |
| 13:40 | mstenta | so let's start an issue in the farmOS issue queue... i'll try to find the exact bug and then move it to the Openlayers queue |
| 13:40 | mstenta | haha - yea if you're not interested in finding these subdirectory bugs :-) |
| 13:40 | mstenta | that might be easier |
| 13:41 | EThorn | it would at least be helpful to see the unbugged version to compare |
| 13:41 | EThorn | u want bug in farmarea or farmos |
| 13:45 | mstenta | farm_area please :-) |
| 13:48 | mstenta | oh... so actually i think this is a bug in farm_area... not in openlayers core |
| 13:49 | mstenta | i'm looking closer at it... |
| 13:50 | mstenta | here... i've got a fix you can try... |
| 13:51 | mstenta | change line 31 to: |
| 13:51 | mstenta | 'url' => url('farm/areas/json/' . $key, array('absolute' => TRUE)), |
| 13:54 | mstenta | if you do that... you will have to clear your cache... and you will also want to check the Openlayers > Sources tab to see if any are "overridden" |
| 13:55 | mstenta | and make sure that they are reverted to default |
| 13:55 | EThorn | so is line 31 generating the json? |
| 13:55 | mstenta | no - but line 31 is the url that Openlayers is trying to use to access the JSON form |
| 13:56 | mstenta | and it's wrong, because it's assuming that the site is installed in the root directory |
| 13:56 | mstenta | so Openlayers can't find the JSON |
| 13:56 | mstenta | by making the change I pasted above, it will change the URL to be absolute, which means Openlayers will be looking for it in the correct place |
| 13:57 | mstenta | i'll be right back... need to move some stuff outside real quick |
| 14:08 | EThorn | Line 31 is not at work in the case of the editing/adding geometry views. as an experiment I changed path to jxson on line 31 and it happily changes json path for main area map, but is found nowhere in add/edit map. path is set by line 192 and your url() works there...so that will fix that. I'm not sure why my attempt to use url() there failed before...oh well |
| 14:08 | EThorn | sorry line 194: $handler->display->display_options['path'] = url('farm/areas/json/' , array('absolute' => TRUE)); |
| 14:19 | EThorn | no...something else broke so neither works again. I gotta get goin, but I will get to the bottom of this |
| 14:30 | * | EThorn has quit (Ping timeout: 240 seconds) |
| 18:47 | * | EThorn has joined |
| 19:48 | * | EThorn has quit (Ping timeout: 240 seconds) |
| 21:25 | * | EThorn has joined |
| 21:49 | * | EThorn has quit (Ping timeout: 240 seconds) |
| 23:37 | * | EThorn has joined |