| 01:07 | * | JustTB has joined |
| 02:01 | * | JustTB has quit (Quit: Leaving.) |
| 08:34 | * | konstamtin has joined |
| 08:34 | konstamtin | Hi everybody. Trying to install and set-up FarmOS - have several issues and questions |
| 08:37 | konstamtin | PHP Version 5.4.20, FreeBSD. Onw hosting platform, Database - MySQL. During installation while configuring modules - had several subsequent errors about impropes use of empty function |
| 08:38 | konstamtin | After minor changes in related modules (commentsing some fool-profing blocks of code) I have it installed. |
| 08:39 | konstamtin | Now farmOS is works, but I have issue with GoogleMaps integration. I've got API key, put it into setting but still have error with map |
| 08:40 | konstamtin | In console - NoAPIkey error |
| 08:41 | konstamtin | Any ideas where I can check the settings. How I can ensure that API key entered in setting successfully transferred into code in modules? |
| 08:46 | konstamtin | I have created temporary FarmViewer account for our discussion. URL: farm.kostello.ru Login: test PWD: test!123 |
| 08:54 | konstamtin | Also after installation - I have updated the opanlayers and feeds modules - they were marked with available updates in Modules configuration |
| 09:22 | konstamtin | And yes, I used pre-packaged Drupal distribution from www.drupal.org/project/farm |
| 12:17 | * | trentf has joined |
| 15:49 | * | JustTB has joined |
| 16:02 | mstenta_ | Hi konstamtin |
| 16:03 | mstenta_ | Regarding improper use of empty() function - I've never experienced this. Can you tell me which pieces of code you had to comment out? |
| 16:03 | mstenta_ | Your PHP version seems fine... I'm not sure why you would be getting that error. I haven't tried installing on FreeBSD, but I don't think that would be different. Are you using Apache? |
| 16:04 | mstenta_ | Regarding broken Google maps: you should undo your Openlayers module upgrade. |
| 16:04 | mstenta_ | I'm not sure if that is the original cause... but it will cause other issues regardless. |
| 16:05 | mstenta_ | The newer version of farmOS I am working on will update Openlayers, but there are some required patches and other updates necessary. |
| 16:05 | mstenta_ | Simply updating the module without applying the patches, and without making the necessary updates to farmOS itself will break your maps. |
| 16:05 | mstenta_ | That might be what happened. |
| 16:06 | mstenta_ | The best way to roll back is to download the 7.x-1.0-beta15 zip file from drupal.org/project/farm, unzip it in another folder, and get the /profiles/farm/modules/contrib/openlayers folder - use that to replace your current folder. That will include the patches. |
| 16:07 | mstenta_ | The Feeds module upgrade should be harmless - but in general you shouldn't need to worry about updating individual modules. When the next version of farmOS is available, it will include all the updates. |
| 16:08 | mstenta_ | I try to make sure that all the modules work together without issues. Openlayers is a very special case in farmOS because it requires a number of patches in order to work correctly. |
| 16:08 | mstenta_ | After you roll back your Openlayers module code, clear your cache. |
| 16:08 | mstenta_ | Then, go to /admin/config/farm/map - you should see a field there for the Google Maps API key. |
| 16:09 | mstenta_ | If you don't see your key there, enter it and save (and let me know - hopefully there is not a bug during installation in saving that value). |
| 16:09 | mstenta_ | If you do see a value, and it's still not working, you can confirm that it is being used in the Openlayers configuration by doing the following: |
| 16:09 | mstenta_ | 1) go to /admin/modules, and enable the Openlayers UI module |
| 16:10 | * | efraim has quit (Remote host closed the connection) |
| 16:10 | * | efraim has joined |
| 16:10 | mstenta_ | 2) go to /admin/structure/openlayers/sources/list/farm_map_source_google_hybrid/edit/options - and you should see the key there as well. |
| 16:11 | mstenta_ | The form at /admin/config/farm/map is a shortcut to fill in that field in the Openlayers Source configuration |
| 16:11 | mstenta_ | If the key is in both places, but still isn't working - make sure you have set it up properly in Google (and copied it properly, with no spaces to the left/right of it) |
| 16:12 | mstenta_ | Instructions are here: farmos.org/hosting/googlemaps/ |
| 16:12 | mstenta_ | Good luck! Let me know if you don't figure it out. |
| 16:12 | mstenta_ | I will be traveling tomorrow, and won't be back for the rest of the week. I won't be on IRC. |
| 16:12 | mstenta_ | If you want to file a bug report on Github, I will see that and respond when I can. |
| 16:17 | konstamtin | Hi Michael, thanks for your instruction. I will try to do everything you've recommended and report |
| 16:24 | konstamtin | As for empty() function I can try to create another instance on my hosting platform in order to reproduce the erroe |
| 16:32 | konstamtin | Ok, openlayers is copied from original source, cache cleared. As for /admin/config/farm/map - that's could be problem. I can see only checkbox for "Show dashboar map". I've entered Google Key in /admin/config/content/geocoder section |
| 16:38 | konstamtin | farm_map_source_google_hybrid/edit have no Google Map API Key field at all |
| 16:47 | mstenta_ | konstamtin: Hmm - are you using farmOS 7.x-1.0-beta15? |
| 16:47 | mstenta_ | You may be on an older version |
| 16:48 | mstenta_ | konstamtin: oh wait... nevermidn - I'm wrong |
| 16:49 | mstenta_ | Sorry - I gave you instructions for the development version - not the latest release |
| 16:49 | mstenta_ | I added the shortcut API Key field to /admin/config/farm/map recently - but it hasn't been released yet - sorry that was my mistake |
| 16:50 | mstenta_ | With that in mind, you should just enter the API key in /admin/structure/openlayers/sources/list/farm_map_source_google_hybrid/edit/options |
| 16:50 | mstenta_ | The form at /admin/config/content/geocoder is actually a different thing - it is for the Geocoder module - not for the Openlayers module |
| 16:51 | mstenta_ | (That was a common mistake people made, which is why I added the shortcut form - that will be available in the next release) |
| 16:51 | mstenta_ | Hope that helps! |
| 16:52 | mstenta_ | I am curious about the empty() function issues... if you do set up another instance let me know what you find. |
| 16:52 | mstenta_ | I'm curious if it was a PHP error/warning/notice you saw - or if it came from something else |
| 17:25 | * | JustTB has quit (Quit: Leaving.) |
| 17:43 | konstamtin | farm-7.x-1.0-beta15-core |
| 17:44 | konstamtin | as for empty - it was php errors |
| 17:58 | mstenta_ | konstamtin: thanks |
| 17:59 | mstenta_ | i've never seen a php error about "improper use of empty()" |
| 18:00 | konstamtin | it's not the exact error description. It's was something about that empty can't use not defined parameter |
| 18:00 | konstamtin | When I reproduce - I'll let you know |
| 18:06 | konstamtin | Michael, thanks a lot - Maps works now! |
| 18:06 | mstenta_ | konstamtin: great! |
| 18:06 | mstenta_ | glad to hear it's working! |
| 18:07 | mstenta_ | yes, please do forward along the specific error message when you can! thanks! |
| 18:07 | konstamtin | Honestly - it was not obvious for me to find and setup. Maybe next release it will be easier to navigate as you said |
| 18:07 | mstenta_ | The Google Maps API? |
| 18:08 | konstamtin | yes |
| 18:08 | mstenta_ | Yes - I've improved that in the next release - it will be a step in the installation |
| 18:08 | mstenta_ | So you just copy and paste your key when you are setting up your other initial configuration options, and it gets filled in in the background |
| 18:14 | konstamtin | I also have some issue with Mushrooms module. I've created Substrate type, Species/Breeds records. When I try to create substrate record - it doesn't display relevant fields for Name, Substrate type and Species/Breeds. Only Location filed is displayed. So when I specify Location and try to save - the error displayed that I have to enter Name |
| 18:15 | mstenta_ | konstamtin: hmm - that might be because the mushroom module has been updated for the new version of farmOS (which hasn't been released yet) |
| 18:16 | mstenta_ | konstamtin: are you comfortable with Git? I can give you a specific commit ID to checkout for the mushroom module that should work with the beta15 of farmOS |
| 18:16 | konstamtin | I think I can try |
| 18:17 | mstenta_ | ok - it's pretty easy if you have Git |
| 18:25 | mstenta_ | Here is the commit you need: c53b2e5a320df0aa7a9738178a9286dc10be857d |
| 18:25 | mstenta_ | It is actually the one right before the latest commit |
| 18:48 | konstamtin | ok, when I try to install new instance of farmOS the following error displayed during install profile: "An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: farm1.kostello.ru/install.php?profile=fa StatusText: Internal Server Error ResponseText:" |
| 18:48 | konstamtin | server logs: PHP Fatal error: Can't use function return value in write context in /www/kostello/users/kostello-farm1/www/htdocs/profiles/farm/modules/farm/farm_import/farm_import.feeds_importer_default.inc on line 217, referer: farm1.kostello.ru/install.php?profile=fa |
| 18:48 | mstenta_ | right now farm_mushroom (and a few others) don't have "official" releases... so they aren't pegged to a specific version of farmOS, even though they need to be... i will try to make that a priority moving forward, adn release versions of them that depend on a specific version of farmOS, to avoid that issue |
| 18:49 | mstenta_ | konstamtin: ok thanks... let me take a look at that file right now... one moment... |
| 18:50 | konstamtin | Server configuration farm.kostello.ru/info.php |
| 18:50 | konstamtin | I had about 10 similar errors during installation in different modules |
| 18:51 | mstenta_ | ok - yea i see why that might be a problem |
| 18:52 | mstenta_ | i think i have a fix for it |
| 18:52 | mstenta_ | can you test it for me? |
| 18:52 | konstamtin | yes |
| 18:53 | mstenta_ | pastebin.com/2ztgGdcK |
| 18:53 | mstenta_ | replace the whole farm_import_add_importer_fields() function with that |
| 18:54 | mstenta_ | in [webroot]/profiles/farm/modules/farm/farm_import/farm_import.feeds_importer_default.inc |
| 19:02 | konstamtin | ok, now the following in error log Can't use function return value in write context in /www/kostello/users/kostello-farm1/www/htdocs/profiles/farm/modules/farm/farm_import/farm_import.feeds_importer_default.inc on line 228 |
| 19:03 | konstamtin | actually the same - but row number is shifted due to new function code |
| 19:04 | mstenta_ | ok.. hmm looking... |
| 19:06 | mstenta_ | ah ok... one sec... |
| 19:06 | mstenta_ | (thanks for helping to test this) |
| 19:09 | mstenta_ | konstamtin: hmm - actually - what does that line look like in your code? |
| 19:10 | mstenta_ | I did find that there were some similar lines in farm_import.feeds_tamper_default.inc (not the same file) - those should probably be fixed too and may be part of the issue |
| 19:11 | konstamtin | if (!empty(field_info_instance($type, $field, $bundle))) { |
| 19:12 | mstenta_ | oh - that's not what was in my paste... was it? |
| 19:12 | mstenta_ | are you sure you pasted correctly? |
| 19:13 | mstenta_ | that line should have changed |
| 19:13 | mstenta_ | i made two changes in my fix |
| 19:13 | mstenta_ | because there were two lines that were trying to do the same thing |
| 19:14 | mstenta_ | replace the whole function with the contents of my paste |
| 19:15 | konstamtin | ok, I have git installed and configured wiith basics. Which github url I have enter to get the project clone? |
| 19:15 | mstenta_ | and when you're done with that, before you run another test... also replace the entire contents of farm_import.feeds_tamper_default.inc with this: pastebin.com/N3zcbD8i |
| 19:17 | mstenta_ | clone farm_mushroom from: github.com/farmOS/farm_mushroom.git |
| 19:17 | mstenta_ | and after you have it cloned, go into the directory in your terminal and run: |
| 19:17 | mstenta_ | AH BUT! |
| 19:17 | mstenta_ | before you do that... |
| 19:18 | mstenta_ | make sure that you uninstall the module from farmOS first |
| 19:18 | mstenta_ | that means first disable it in /admin/modules |
| 19:18 | mstenta_ | and then uninstall it in /admin/modules/uninstall |
| 19:19 | mstenta_ | after you do that... clone the repo... and then go into the module directory and run the following command: |
| 19:19 | mstenta_ | git reset --hard c53b2e5a320df0aa7a9738178a9286dc10be857d |
| 19:22 | konstamtin | ok, now we are progressing - next module /farm/modules/farm/farm_log/farm_log_movement/farm_log_movement.module on line 118 |
| 19:22 | mstenta_ | ok |
| 19:23 | mstenta_ | so i figured out why i haven't experienced this issue before too... |
| 19:23 | mstenta_ | it is because PHP 5.5 allows that kind of code, and I've been testing on PHP 5.6 |
| 19:23 | mstenta_ | would it be possible for you to upgrade to PHP 5.6? |
| 19:24 | mstenta_ | there are probably going to be a lot of instances of that issue... |
| 19:25 | mstenta_ | i think it will make more sense for me to fix the requirements on farmos.org/hosting/installing/ to say PHP 5.5+ |
| 19:27 | konstamtin | 5.5 is only available for qiuck resolution - just changing the version in htaccess file. Newer versions - only with special request to hosting support |
| 19:28 | konstamtin | after changes in htaccess info.php sows that PHP version 5.5.5 |
| 19:28 | mstenta_ | ok great - that should solve your problems |
| 19:28 | mstenta_ | i don't think you need 5.6 - just 5.5 |
| 19:29 | mstenta_ | i am going to update farmOS.org requirements... it will be hard to find all the places in code that need to be fixed to support 5.4 |
| 19:30 | konstamtin | yes, after version changed - installation finished fine |
| 19:32 | mstenta_ | great! |
| 19:32 | mstenta_ | thanks for helping to figure that out - i wasn't aware of that limitation |
| 19:34 | mstenta_ | i updated farmOS.org |
| 19:34 | konstamtin | thanks for your great project FarmOS - I hope it helps me a lot |
| 19:34 | mstenta_ | me too! |
| 19:34 | mstenta_ | lots of improvements coming in the next version too... |
| 19:35 | mstenta_ | i announce new released via my farmier.com newsletter if you would like to get an email when it's ready |
| 19:35 | konstamtin | yes, it will be great |
| 19:36 | konstamtin | I'm going to share my farmOS experience on upcoming meeting of farmers in Moscow, Russia |
| 19:37 | konstamtin | Not many of them speaks English and able to cinfigure whatever site |
| 19:37 | mstenta_ | great! |
| 19:37 | mstenta_ | ah yea - i am looking forward to adding translations |
| 19:37 | mstenta_ | it is technically possible in Drupal 7 - but it will be easier in Drupal 8 |
| 19:38 | konstamtin | yes, I can contribute with translation |
| 19:38 | mstenta_ | that would be great! |
| 19:38 | mstenta_ | i plan to announce a translation initiative via the newsletter as well - to ask for help |
| 19:49 | konstamtin | As for mushrooms - the problem the same after update |
| 19:50 | konstamtin | I've got new version, updated the files, re-installed the module, cleared cache' |
| 19:51 | konstamtin | Only location and Status field are visible on "add mushroom substrate" form |
| 19:52 | mstenta_ | did you check out the specific commit? |
| 19:52 | mstenta_ | you actually need a version that came right before the latest version, not the latest |
| 19:53 | mstenta_ | inside the farm_mushroom directory, you need to run the following command: |
| 19:53 | mstenta_ | git reset --hard c53b2e5a320df0aa7a9738178a9286dc10be857d |
| 19:54 | mstenta_ | you can try that and clear the cache (without uninstalling and reinstalling) and see if that works... but you may need to uninstall/reinstall |
| 19:56 | konstamtin | yes i did git reset. and recreated the module after it. Should I use git commit also? |
| 19:58 | mstenta_ | nope |
| 19:58 | mstenta_ | hmm |
| 19:59 | mstenta_ | can you take a screenshot of the add mushroom form? |
| 19:59 | mstenta_ | and post it to imgur.com |
| 20:10 | konstamtin | imgur.com/4IpjIBh |
| 20:20 | mstenta_ | konstamtin: hmm strange |
| 20:20 | mstenta_ | does the same thing happen on any other asset types? |
| 20:20 | mstenta_ | or just mushrooms? |
| 20:20 | konstamtin | I discovered it only for mushrooms |
| 20:21 | konstamtin | I haven't try to create any type of records in FarmOS yet |
| 20:23 | mstenta_ | you could try going to /admin/structure/features, and clicking on the Contrib tab |
| 20:23 | mstenta_ | and see if the mushroom feature says "Overridden" |
| 20:30 | konstamtin | No State is Default |
| 20:32 | konstamtin | and Signature is Unavailable |
| 20:32 | mstenta_ | huh. very strange |
| 20:33 | mstenta_ | i will have to test that myself on a new install and see if i can replicate it |
| 20:33 | mstenta_ | i have to go now, though |
| 20:33 | mstenta_ | if you have a moment, could you create a bug report on github.com/farmOS/farmOS/issues so I don't forget? |
| 20:34 | konstamtin | ok, I also have to go. It was a pleasure to talk with you today. By the way - nice pictures on your site :) |
| 20:34 | mstenta_ | thank you! :-) |
| 20:35 | mstenta_ | and thanks again for the help! |
| 20:35 | mstenta_ | talk to you again soon i hope! |
| 20:41 | * | konstamtin has quit (Ping timeout: 260 seconds) |
| 21:04 | * | trentf has quit (Remote host closed the connection) |
| 21:32 | * | trentf has joined |