| [22:30:51] | * andygraybeal has quit (Ping timeout: 276 seconds) |
| [22:44:30] | * andygraybeal has joined #farmos |
| [22:50:37] | * mmn has quit (Quit: goodbye) |
| [22:51:18] | * mmn has joined #farmos |
| [04:38:39] | * Lil has quit (Ping timeout: 250 seconds) |
| [09:48:23] | * Lil has joined #farmos |
| [10:07:19] | * andygraybeal has quit (Ping timeout: 252 seconds) |
| [10:19:59] | * andygraybeal has joined #farmos |
| [11:23:10] | * mstenta has joined #farmos |
| [11:51:22] | * mikael_ has joined #farmos |
| [11:51:32] | <mikael_> | good morning Mike |
| [12:01:24] | <mstenta> | mikael_: good morning |
| [12:01:46] | <mstenta> | mikael_: so let's see if we can figure out what's wrong with your site... |
| [12:02:07] | <mstenta> | you said you upgraded to beta10, right? and that's when the issue started? |
| [12:09:28] | <mikael_> | that's correct. I was running beta 8 and then followed your upgrade procedure to beta 10 and the upgrading went well but for the denial of access |
| [12:09:46] | <mikael_> | could it be something to do with the logintobbogan module having been removed? |
| [12:10:39] | <mstenta> | mikael_: hmm maybe - especially if you upgraded from beta8 to beta10 |
| [12:10:52] | <mstenta> | beta9 had some upgrade code to disable modules, and beta10 removed them |
| [12:11:05] | <mstenta> | but we can figure it out... |
| [12:11:13] | <mikael_> | last night i downloaded beta nine and tried that but still no access |
| [12:11:14] | <mstenta> | do you have access to the database? |
| [12:12:00] | <mikael_> | I do, mysql on my own server |
| [12:12:09] | <mstenta> | ok - open up the {menu_router} table |
| [12:12:17] | <mstenta> | and look for the /farm path |
| [12:12:31] | <mstenta> | tell me what is listed in the page_callback column |
| [12:15:00] | <mstenta> | in beta10, the farm_admin module (which provides the dashboard) switched from using panels to using a normal page callback - i'm wondering if that might be the issue |
| [12:15:29] | <mstenta> | https://www.drupal.org/node/2651442 |
| [12:15:43] | <mikael_> | ok give me a few to find this |
| [12:16:06] | <mstenta> | also, try running this drush command: |
| [12:16:24] | <mstenta> | drush dis panels page_manager |
| [12:18:18] | <mikael_> | ok that command says page manager is already disabled |
| [12:18:27] | <mstenta> | ok good - wanted to make sure |
| [12:21:32] | <mikael_> | i use webmin to manage my ubuntu server, i'm not finding this /farm |
| [12:22:22] | <mikael_> | webmin has a mysql database manager that will display the tables if I select the correct ones. |
| [12:23:00] | <mstenta> | maybe look for /farm/dashboard instead |
| [12:23:53] | <mstenta> | there should be one for /farm - but /farm and /farm/dashboard both go to the same place |
| [12:26:25] | <mstenta> | can you run an SQL query directly? if so... what do you see when you run this? |
| [12:26:26] | <mstenta> | select page_callback from menu_router where path = 'farm'; |
| [12:26:28] | * Lil has quit (Ping timeout: 252 seconds) |
| [12:27:00] | <mstenta> | i get "farm_admin_dashboard" (on a working beta10 site) |
| [12:30:52] | <mstenta> | if running an SQL query is difficult, we might be able to try other things |
| [12:32:10] | <mikael_> | ok, so i've got a whole list of all the tables and no farm_admin_dashboard, I am using the command line logged into mysql, im not very familiar with this but can learn quick |
| [12:33:07] | <mstenta> | ok - so the table you want to look for is called "menu_router" |
| [12:33:57] | <mikael_> | stupid me, i just realised that as you typed it, yes the menu router table is there |
| [12:34:06] | <mstenta> | if you can, open up the contents of that table - it will be big - but you should see columns named: path, load_functions, to_arg_functions, etc |
| [12:34:30] | <mstenta> | in the "path" column, it shows ALL the paths in Drupal |
| [12:34:58] | <mstenta> | so i'm curious to see the row with path = "farm" |
| [12:35:31] | <mstenta> | specifically, what is in the "page_callback" column of the "farm" row |
| [12:37:01] | * Lil has joined #farmos |
| [12:43:45] | <mikael_> | do you know of a way to have mysql display this stuff in an organised way, I've got it to show the data, but its not organised into columns or row |
| [12:44:28] | <mstenta> | hmm - usually it is displayed as columns and rows - what are you seeing? |
| [12:46:29] | <mikael_> | ill send you a screen shot |
| [12:46:43] | <mstenta> | ok - can you upload it to imgur.com? |
| [12:46:53] | <mstenta> | free and easy - file transfers over IRC don't work for me |
| [12:51:06] | * andygraybeal has quit (Read error: Connection reset by peer) |
| [12:53:17] | <mikael_> | ok got it, in that column and row it has farm_admin_dashboard |
| [12:53:43] | <mstenta> | ok good |
| [12:54:11] | <mstenta> | so... you said your site is installed in a subdirectory, right? something like www.mysite.com/farmos/farm, right? |
| [12:54:38] | <mstenta> | and when you go to www.mysite.com/farmos/farm, you see access denied, right? but you also see the map, correct? |
| [12:54:50] | <mstenta> | do you see a username and password field? |
| [12:55:20] | <mikael_> | on the server the file path is /blackpoplar.ca/public_html/farmos and yes i see the map but no username or password field that is correct |
| [12:56:36] | <mstenta> | ok - are you logged in as user #1? |
| [12:57:19] | <mstenta> | side-question: do you have more than one user account set up in farmOS? |
| [12:58:04] | <mikael_> | you'll have to forgive my ignorance, logged in where? without the username and password field how do I log in? |
| [12:58:19] | <mikael_> | just one user |
| [12:59:41] | <mstenta> | mikael_: do you mind sending me a private IRC message with the URL of your farmOS site so I can see what you see? |
| [13:00:42] | <mikael_> | blackpoplar.ca/farmos |
| [13:00:54] | <mstenta> | thanks |
| [13:01:20] | <mstenta> | ok i see... i am seeing the same map and "You are not authorized to access this page" |
| [13:01:47] | <mstenta> | so that means you are not logged in (but the map shouldn't be showing up - that's a separate issue) |
| [13:02:07] | <mstenta> | hmm - it looks like Clean URLs is not working too |
| [13:02:12] | <mstenta> | go to https://blackpoplar.ca/farmos/?q=user |
| [13:02:27] | <mstenta> | that is the login page for farmOS |
| [13:04:50] | <mikael_> | oh for crying out loud. i tried /user /admin /login /=user /=login hehe so simple |
| [13:05:16] | <mikael_> | clean urls must have got turned off when I re-installed from scratch back in december |
| [13:05:20] | <mstenta> | ok - yea the reason those don't work is because your clean urls isn't working |
| [13:06:17] | <mstenta> | i notice something else that's weird - if i get a 404, it is shown in the blackpoplar.ca site - not in the farmOS site - i think something is wrong with your server configuration |
| [13:06:19] | <mstenta> | https://blackpoplar.ca/farmos/user |
| [13:06:53] | <mikael_> | yah i noticed that too |
| [13:07:14] | <mikael_> | i am not an expert at this, learning as I go |
| [13:07:21] | <mstenta> | that could explain some of the weirdness - but i'm not sure why it's doing that |
| [13:07:36] | <mstenta> | i generally recommend that farmOS is installed in a root directory - not in a subdomain |
| [13:07:52] | <mstenta> | sorry, i meant to say "subdirectory" - not "subdomain" |
| [13:07:58] | <mikael_> | it is in the route, side by side with the blackpoplar.ca site |
| [13:08:12] | <mstenta> | side-by-side? or inside? |
| [13:08:28] | <mikael_> | both sites are in the public_html folder |
| [13:08:42] | <mstenta> | but farmOS is in the /farmos subdirectory |
| [13:09:02] | <mikael_> | one folder for blackpoplar.ca and one for farmos at the same level, each running their own drupal core |
| [13:09:09] | <mstenta> | is blackpoplar.ca in a subdirectory too? |
| [13:09:18] | <mstenta> | oh |
| [13:09:53] | <mstenta> | how did you configure blackpoplar.ca to show at http://blackpoplar.ca and farmOS to show at http://blackpoplar.ca/farmos? |
| [13:10:42] | <mstenta> | it seems that there might be something wrong with that configuration |
| [13:10:52] | <mikael_> | sorry, your right, it goes /public_html with the files for blackpoplar.ca which includes the farmos directory |
| [13:11:03] | <mstenta> | ok that's what i thought |
| [13:11:20] | <mstenta> | well - maybe it will work |
| [13:11:31] | <mstenta> | now that you are logged in, does it look like farmOS is working properly? |
| [13:11:57] | <mstenta> | and did you turn clean urls back on? |
| [13:12:30] | <mikael_> | not yet, got to remember where to find that |
| [13:15:15] | <mstenta> | http://blackpoplar.ca/farmos/admin/config/search/clean-urls |
| [13:15:28] | <mstenta> | (make sure you are in the farmOS site, and not in the blackpoplar.ca site when you go there) |
| [13:18:40] | <mikael_> | access denied. my user credentials for the farmos site must have got wiped too |
| [13:23:08] | <mstenta> | well i'm going to head outside - make use of the nice weather! sounds like you can figure it out from here right? |
| [13:23:27] | <mstenta> | make sure you run update.php - it sounds like you didn't, right? because you weren't logged in? |
| [13:23:42] | <mstenta> | and make sure that all of your features are reverted (unless you've made customizations) |
| [13:23:51] | <mikael_> | it ran update.php no prob |
| [13:25:51] | <mstenta> | how did you run update.php? via drush? |
| [13:26:09] | <mikael_> | blackpoplar.ca/farmos/update.php |
| [13:26:20] | <mstenta> | hmmmmmmmmm |
| [13:26:26] | <mstenta> | wait a minute |
| [13:26:33] | <mstenta> | something is wrong |
| [13:26:41] | <mstenta> | i can access that page |
| [13:26:43] | <mikael_> | its says clean urls cannot be enabled |
| [13:26:45] | <mstenta> | i shouldn't be able to access that page |
| [13:27:10] | <mstenta> | do you have $update_free_access set to TRUE in settings.php? |
| [13:27:44] | <mikael_> | i set it to true and then back to false, let me go check it might not have saved in the text editor |
| [13:28:08] | <mstenta> | ok - as long as you don't leave it set to TRUE - because then anyone can access it |
| [13:28:25] | <mikael_> | its in false |
| [13:28:50] | <mstenta> | i can still access it |
| [13:30:44] | <mstenta> | re: "its says clean urls cannot be enabled" - you can learn how to fix that here: https://www.drupal.org/getting-started/clean-urls |
| [13:31:47] | <mikael_> | could this be permissions related on the server itself? |
| [13:34:02] | <mstenta> | mikael_: i don't know - there seem to be a number of different things going on here - it's hard to say without knowing the exact configuration of your server |
| [13:34:59] | <mstenta> | have you managed to log in yet? |
| [13:35:35] | <mikael_> | yes, I am logged into the farmos admin panel, still working on the clean-urls |
| [13:36:38] | <mstenta> | when you have a moment: go to http://blackpoplar.ca/farmos/admin/structure/features - and check to see if any features are overridden |
| [13:36:58] | <mstenta> | (not for clean urls - just to make sure farmOS is using all defaults) |
| [13:38:03] | <mstenta> | so far, all of the problems seem to be general Drupal issues - not farmOS specific - except for one: the map should not show up on the farmOS homepage if you are not logged in |
| [13:39:40] | <mikael_> | going back to the update.php for a second. I logged into the server as a user with sudo privileges and checked the update free access field and it was set to false. I logged out and logged back in as root and checked the same file again and it was set to true. Bizarre |
| [13:40:05] | <mstenta> | hmm - do you have it open in another window perhaps? |
| [13:40:10] | <mikael_> | nope |
| [13:40:31] | <mikael_> | i set it to false again, can you still access it? |
| [13:40:53] | <mstenta> | nope - i got access denied now - that's good :-) |
| [13:43:03] | <mikael_> | had me worried the server been compromised, phew. okay on the features it has three that need review: farm-area farm-crop and farm-log |
| [13:43:24] | <mstenta> | ok - have you made any customizations to your farmOS modules before this? |
| [13:43:37] | <mstenta> | (added new fields, changed fields, change config, etc) |
| [13:43:48] | <mstenta> | or were you using all default farmOS? |
| [13:44:26] | <mikael_> | no customizations other than entering some data for logs and assets |
| [13:44:59] | <mstenta> | ok - so then you can go ahead and revert those three features that need review |
| [13:45:23] | <mstenta> | click on each one, and in the right column there will be different sections - and the overridden sections will have checkboxes next to them |
| [13:45:33] | <mstenta> | check all the boxes, and then click revert at the bottom (for each of the three features) |
| [13:49:41] | <mikael_> | ok done |
| [13:51:39] | <mstenta> | i should add a note about doing that to the upgrade instructions http://docs.farmos.org/hosting/updating/ |
| [13:51:50] | <mstenta> | usually you don't need to revert features, but sometimes you do |
| [13:53:21] | <mstenta> | i made a note so i don't forget: https://github.com/farmOS/documentation/issues/7 |
| [13:54:19] | <mstenta> | also - i think the map showing up is actually a bug - i will file a report for that too |
| [13:54:30] | <mstenta> | i'm hoping to release beta11 soon - maybe this week |
| [13:55:01] | <mstenta> | really cool stuff in beta11! you'll be able to see the calculated size of areas (acreage/hectares) |
| [13:55:27] | <mstenta> | and a new "Area Generator" that helps auto-generate lots of little "Beds" within a bigger area |
| [13:56:41] | <mikael_> | cool, I've been following this from the get go. My biggest hurdle is having to learn drupal. i switched from using wordpress to drupal, and from having hosted services to my own just so i could tinker with farmos, it's been a steep learning curve. |
| [13:57:45] | <mikael_> | it might be good to have some function to force a user login at the /farmos url so that regardless of clean urls or not a user can get logged in |
| [13:58:34] | <mstenta> | mikael_: yea there is definitely a learning curve to Drupal |
| [13:58:53] | <mstenta> | that's why I also started Farmier - to provide hosting for farmOS sites - so you can bypass all that trouble |
| [13:59:02] | <mstenta> | and also to help support development |
| [13:59:45] | <mstenta> | on Farmier, you just have a login and a [myfarm].farmos.net URL - you log in there and you don't need to think about Drupal or hosting at all. Updates happen automatically too. |
| [13:59:55] | <mikael_> | Hehe, I like this tinkering too much to let someone else do it! I learned lots today!! thanks for the help, and patience |
| [14:00:10] | <mstenta> | Sure, that makes sense too. :-) |
| [14:00:44] | <mstenta> | Well if you're ever interested in having your site hosted, I'd be happy to help import your content |
| [14:01:18] | <mstenta> | it's great to see people setting it up themselves too! that's the whole reason it's open source, after all! |
| [14:02:14] | <mstenta> | mikael_: LoginToboggan provided the login form on all access denied pages - so it did provide an easy way to login |
| [14:02:37] | <mstenta> | mikael_: I removed LoginToboggan from farmOS, but I still use it on Farmier to make it easier for people - and you can also install it yourself on your farmOS site |
| [14:02:56] | <mstenta> | just put it in /sites/all/modules (not in /profiles/farm/modules - so you don't lose it when you upgrade) |
| [14:03:21] | <mikael_> | ahh, so that was the culprit after all, I saw that in the release notes while trying to figure it out. Now that I know ?/= for non clean urls I should be in the clear |
| [14:03:50] | <mstenta> | yea that should work |
| [14:03:52] | <mikael_> | ok, thats a good option too then. I will try and fix this clean url problem |
| [14:04:12] | <mstenta> | alright, well i'm gonna run - good luck! |
| [14:04:23] | <mstenta> | i'm usually in this room, so feel free to ping me in the future |
| [14:04:54] | <mstenta> | sometimes it takes me a little while to response - but there are some nifty chat features provided by farmBOT |
| [14:04:57] | <mikael_> | i will, thanks again |
| [14:05:01] | <mstenta> | for example: |
| [14:05:16] | <mstenta> | farmBOT: tell mikael_ This is how you leave a message. |
| [14:05:16] | <farmBOT> | mstenta: I'll pass that on when mikael_ is around. |
| [14:05:36] | <mikael_> | cool |
| [14:05:36] | <farmBOT> | mikael_: 20 sec ago <mstenta> tell mikael_ This is how you leave a message. |
| [14:06:00] | <mstenta> | Also, the room is logged - you can get a link to the logs at their current point by saying: |
| [14:06:04] | <mstenta> | farmBOT: log pointer? |
| [14:06:04] | <farmBOT> | http://farmos.org/bot/log/farmOS/2016-04-10#T8508 |
| [14:08:12] | <mstenta> | good luck with the clean URLs - if you have trouble you can also try asking the folks in #drupal-support |
| [14:08:19] | <mstenta> | talk to you later! |
| [14:08:57] | <mikael_> | thanks Mike, take care |
| [14:09:40] | * mikael_ has left #farmos ("Leaving") |
| [15:18:46] | * andygraybeal has joined #farmos |
| [15:34:31] | * mstenta has quit (Ping timeout: 268 seconds) |
| [15:49:15] | * mstenta has joined #farmos |
| [19:26:49] | * mstenta1 has joined #farmos |
| [19:28:40] | * mstenta has quit (Ping timeout: 264 seconds) |