< 092016-04-10⋎11 >

farmOS (farmos.org) is a free open source, web-based farm management system, built on Drupal. Official documentation: docs.farmos.orgSet by mstenta on 2016-02-03 at 22:19
02:30*andygraybeal has quit (Ping timeout: 276 seconds)
02:44*andygraybeal has joined
02:50*mmn has quit (Quit: goodbye)
02:51*mmn has joined
08:38*Lil has quit (Ping timeout: 250 seconds)
13:48*Lil has joined
14:07*andygraybeal has quit (Ping timeout: 252 seconds)
14:19*andygraybeal has joined
15:23*mstenta has joined
15:51*mikael_ has joined
15:51mikael_good morning Mike
16:01mstentamikael_: good morning
16:01mstentamikael_: so let's see if we can figure out what's wrong with your site...
16:02mstentayou said you upgraded to beta10, right? and that's when the issue started?
16:09mikael_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
16:09mikael_could it be something to do with the logintobbogan module having been removed?
16:10mstentamikael_: hmm maybe - especially if you upgraded from beta8 to beta10
16:10mstentabeta9 had some upgrade code to disable modules, and beta10 removed them
16:11mstentabut we can figure it out...
16:11mikael_last night i downloaded beta nine and tried that but still no access
16:11mstentado you have access to the database?
16:12mikael_I do, mysql on my own server
16:12mstentaok - open up the {menu_router} table
16:12mstentaand look for the /farm path
16:12mstentatell me what is listed in the page_callback column
16:15mstentain 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
16:15mstentawww.drupal.org/node/2651442
16:15mikael_ok give me a few to find this
16:16mstentaalso, try running this drush command:
16:16mstentadrush dis panels page_manager
16:18mikael_ok that command says page manager is already disabled
16:18mstentaok good - wanted to make sure
16:21mikael_i use webmin to manage my ubuntu server, i'm not finding this /farm
16:22mikael_webmin has a mysql database manager that will display the tables if I select the correct ones.
16:23mstentamaybe look for /farm/dashboard instead
16:23mstentathere should be one for /farm - but /farm and /farm/dashboard both go to the same place
16:26mstentacan you run an SQL query directly? if so... what do you see when you run this?
16:26mstentaselect page_callback from menu_router where path = 'farm';
16:26*Lil has quit (Ping timeout: 252 seconds)
16:27mstentai get "farm_admin_dashboard" (on a working beta10 site)
16:30mstentaif running an SQL query is difficult, we might be able to try other things
16:32mikael_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
16:33mstentaok - so the table you want to look for is called "menu_router"
16:33mikael_stupid me, i just realised that as you typed it, yes the menu router table is there
16:34mstentaif 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
16:34mstentain the "path" column, it shows ALL the paths in Drupal
16:34mstentaso i'm curious to see the row with path = "farm"
16:35mstentaspecifically, what is in the "page_callback" column of the "farm" row
16:37*Lil has joined
16:43mikael_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
16:44mstentahmm - usually it is displayed as columns and rows - what are you seeing?
16:46mikael_ill send you a screen shot
16:46mstentaok - can you upload it to imgur.com?
16:46mstentafree and easy - file transfers over IRC don't work for me
16:51*andygraybeal has quit (Read error: Connection reset by peer)
16:53mikael_ok got it, in that column and row it has farm_admin_dashboard
16:53mstentaok good
16:54mstentaso... you said your site is installed in a subdirectory, right? something like www.mysite.com/farmos/farm, right?
16:54mstentaand when you go to www.mysite.com/farmos/farm, you see access denied, right? but you also see the map, correct?
16:54mstentado you see a username and password field?
16:55mikael_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
16:56mstentaok - are you logged in as user #1?
16:57mstentaside-question: do you have more than one user account set up in farmOS?
16:58mikael_you'll have to forgive my ignorance, logged in where? without the username and password field how do I log in?
16:58mikael_just one user
16:59mstentamikael_: do you mind sending me a private IRC message with the URL of your farmOS site so I can see what you see?
17:00mikael_blackpoplar.ca/farmos
17:00mstentathanks
17:01mstentaok i see... i am seeing the same map and "You are not authorized to access this page"
17:01mstentaso that means you are not logged in (but the map shouldn't be showing up - that's a separate issue)
17:02mstentahmm - it looks like Clean URLs is not working too
17:02mstentago to blackpoplar.ca/farmos/?q=user
17:02mstentathat is the login page for farmOS
17:04mikael_oh for crying out loud. i tried /user /admin /login /=user /=login hehe so simple
17:05mikael_clean urls must have got turned off when I re-installed from scratch back in december
17:05mstentaok - yea the reason those don't work is because your clean urls isn't working
17:06mstentai 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
17:06mstentablackpoplar.ca/farmos/user
17:06mikael_yah i noticed that too
17:07mikael_i am not an expert at this, learning as I go
17:07mstentathat could explain some of the weirdness - but i'm not sure why it's doing that
17:07mstentai generally recommend that farmOS is installed in a root directory - not in a subdomain
17:07mstentasorry, i meant to say "subdirectory" - not "subdomain"
17:07mikael_it is in the route, side by side with the blackpoplar.ca site
17:08mstentaside-by-side? or inside?
17:08mikael_both sites are in the public_html folder
17:08mstentabut farmOS is in the /farmos subdirectory
17:09mikael_one folder for blackpoplar.ca and one for farmos at the same level, each running their own drupal core
17:09mstentais blackpoplar.ca in a subdirectory too?
17:09mstentaoh
17:09mstentahow did you configure blackpoplar.ca to show at blackpoplar.ca and farmOS to show at blackpoplar.ca/farmos?
17:10mstentait seems that there might be something wrong with that configuration
17:10mikael_sorry, your right, it goes /public_html with the files for blackpoplar.ca which includes the farmos directory
17:11mstentaok that's what i thought
17:11mstentawell - maybe it will work
17:11mstentanow that you are logged in, does it look like farmOS is working properly?
17:11mstentaand did you turn clean urls back on?
17:12mikael_not yet, got to remember where to find that
17:15mstentablackpoplar.ca/farmos/admin/config/searc
17:15mstenta(make sure you are in the farmOS site, and not in the blackpoplar.ca site when you go there)
17:18mikael_access denied. my user credentials for the farmos site must have got wiped too
17:23mstentawell i'm going to head outside - make use of the nice weather! sounds like you can figure it out from here right?
17:23mstentamake sure you run update.php - it sounds like you didn't, right? because you weren't logged in?
17:23mstentaand make sure that all of your features are reverted (unless you've made customizations)
17:23mikael_it ran update.php no prob
17:25mstentahow did you run update.php? via drush?
17:26mikael_blackpoplar.ca/farmos/update.php
17:26mstentahmmmmmmmmm
17:26mstentawait a minute
17:26mstentasomething is wrong
17:26mstentai can access that page
17:26mikael_its says clean urls cannot be enabled
17:26mstentai shouldn't be able to access that page
17:27mstentado you have $update_free_access set to TRUE in settings.php?
17:27mikael_i set it to true and then back to false, let me go check it might not have saved in the text editor
17:28mstentaok - as long as you don't leave it set to TRUE - because then anyone can access it
17:28mikael_its in false
17:28mstentai can still access it
17:30mstentare: "its says clean urls cannot be enabled" - you can learn how to fix that here: www.drupal.org/getting-started/clean-url
17:31mikael_could this be permissions related on the server itself?
17:34mstentamikael_: 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
17:34mstentahave you managed to log in yet?
17:35mikael_yes, I am logged into the farmos admin panel, still working on the clean-urls
17:36mstentawhen you have a moment: go to blackpoplar.ca/farmos/admin/structure/fe - and check to see if any features are overridden
17:36mstenta(not for clean urls - just to make sure farmOS is using all defaults)
17:38mstentaso 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
17:39mikael_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
17:40mstentahmm - do you have it open in another window perhaps?
17:40mikael_nope
17:40mikael_i set it to false again, can you still access it?
17:40mstentanope - i got access denied now - that's good :-)
17:43mikael_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
17:43mstentaok - have you made any customizations to your farmOS modules before this?
17:43mstenta(added new fields, changed fields, change config, etc)
17:43mstentaor were you using all default farmOS?
17:44mikael_no customizations other than entering some data for logs and assets
17:44mstentaok - so then you can go ahead and revert those three features that need review
17:45mstentaclick on each one, and in the right column there will be different sections - and the overridden sections will have checkboxes next to them
17:45mstentacheck all the boxes, and then click revert at the bottom (for each of the three features)
17:49mikael_ok done
17:51mstentai should add a note about doing that to the upgrade instructions docs.farmos.org/hosting/updating/
17:51mstentausually you don't need to revert features, but sometimes you do
17:53mstentai made a note so i don't forget: github.com/farmOS/documentation/issues/7
17:54mstentaalso - i think the map showing up is actually a bug - i will file a report for that too
17:54mstentai'm hoping to release beta11 soon - maybe this week
17:55mstentareally cool stuff in beta11! you'll be able to see the calculated size of areas (acreage/hectares)
17:55mstentaand a new "Area Generator" that helps auto-generate lots of little "Beds" within a bigger area
17:56mikael_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.
17:57mikael_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
17:58mstentamikael_: yea there is definitely a learning curve to Drupal
17:58mstentathat's why I also started Farmier - to provide hosting for farmOS sites - so you can bypass all that trouble
17:59mstentaand also to help support development
17:59mstentaon 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.
17:59mikael_Hehe, I like this tinkering too much to let someone else do it! I learned lots today!! thanks for the help, and patience
18:00mstentaSure, that makes sense too. :-)
18:00mstentaWell if you're ever interested in having your site hosted, I'd be happy to help import your content
18:01mstentait's great to see people setting it up themselves too! that's the whole reason it's open source, after all!
18:02mstentamikael_: LoginToboggan provided the login form on all access denied pages - so it did provide an easy way to login
18:02mstentamikael_: 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
18:02mstentajust put it in /sites/all/modules (not in /profiles/farm/modules - so you don't lose it when you upgrade)
18:03mikael_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
18:03mstentayea that should work
18:03mikael_ok, thats a good option too then. I will try and fix this clean url problem
18:04mstentaalright, well i'm gonna run - good luck!
18:04mstentai'm usually in this room, so feel free to ping me in the future
18:04mstentasometimes it takes me a little while to response - but there are some nifty chat features provided by farmBOT
18:04mikael_i will, thanks again
18:05mstentafor example:
18:05mstentafarmBOT: tell mikael_ This is how you leave a message.
18:05farmBOTmstenta: I'll pass that on when mikael_ is around.
18:05mikael_cool
18:05farmBOTmikael_: 20 sec ago <mstenta> tell mikael_ This is how you leave a message.
18:06mstentaAlso, the room is logged - you can get a link to the logs at their current point by saying:
18:06mstentafarmBOT: log pointer?
18:06farmBOTfarmos.org/bot/log/farmOS/2016-04-10#T85
18:08mstentagood luck with the clean URLs - if you have trouble you can also try asking the folks in #drupal-support
18:08mstentatalk to you later!
18:08mikael_thanks Mike, take care
18:09*mikael_ has left ("Leaving")
19:18*andygraybeal has joined
19:34*mstenta has quit (Ping timeout: 268 seconds)
19:49*mstenta has joined
23:26*mstenta1 has joined
23:28*mstenta has quit (Ping timeout: 264 seconds)

< 092016-04-10⋏11 >