Closed (fixed)
Project:
Drupal RETS Real Estate Framework (dRealty)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2016 at 18:33 UTC
Updated:
18 Aug 2016 at 17:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
avo webworks commentedI also experience same error as @bloomt
PHP Fatal error: Call to undefined method drealtyConnection::is_connected() in ..sites/all/modules/drealty/drealty.daemon.php on line 1167
I can generate the queue but not process the queue. It doesn't matter if I try to process the queue via drush or via cron.
This is on a clean Drupal 7 install with 7.x-3.0-rc1 installed.
Comment #3
shauntyndall commentedCould you clarify which version of PHP you are running and seeing this error?
Comment #4
bloomt commentedMy test server runs PHP 5.5.9
I will test on other php versions and let you know if my results change.
Comment #5
bloomt commentedDo you have a recommended PHP version?
Comment #6
bloomt commentedTesting results from drush rpm
PHP version drush is running - Error message
5.3 - Error - unexpected '=', expecting ')' - Same as https://www.drupal.org/node/2765971
5.4 - Error - unexpected '=', expecting ')' - Same as https://www.drupal.org/node/2765971
5.5 - Error: Call to undefined method drealtyConnection::is_connected()
5.6 - Error: Call to undefined method drealtyConnection::is_connected()
7.0 - Error: Call to undefined method drealtyConnection::is_connected()
Comment #7
bloomt commentedIt seems as though the issue is that is_connected in
$this->dc->is_connected
is not defined anywhere in the file.
I assume that this is supposed to be there to assure that there is an active connection before attempting to import.
I created a patch that removes some code from the line 1167 that makes the image import work. My patch is definitely not best practice but it will most likely work for other people having issues.
Comment #8
avo webworks commentedI am also on PHP version 5.5.9.
The patch provided by @bloomt gives me a WSOD with error:
PHP Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in .../drealty.daemon.php on line 1271
Comment #9
jrbThis bug appears to have been introduced with this commit for the work for #1951580.
http://cgit.drupalcode.org/drealty/commit/drealty.daemon.php?id=27b06c9f...
It calls is_connected(), but that method doesn't exist for drealtyConnection. I've attached a patch this just adds this as a simple method of drealtyConnection that returns the value of $this->connected. I'm guessing that's what the intention was.
Comment #10
avo webworks commentedThe above patch #9 by @jrb works well. I am now able to import media both via drush and drealty import. Thank you.
Comment #11
notanumber6789 commentedI can confirm patch #9 works with PHP 5.3.10-1ubuntu3.23
I encountered this bug when running rets-process-media from drush. This was the first time I ran that script because until this update, my images would download and update with my daily rets-import cron job. Since 7.x-3.0-rc1 no media is updated so I ran rets-import-media and then rets-process-media.
Can anyone explain whether something has changed with this update such that I should run both rets-import and rets-process-media to get a full listings import? Also everything is updated, even items that have not changed in MLS. I don't recall things working this way prior to 7.x-3.0-rc1, am I mistaken? Shouldn't only modified and new items be imported?
Comment #12
veronicaseveryn commentedYes, the patch provided in #9 is what should be there.
I guess, when I was assembling the release code, this piece of code slipped away from me...
As for the changes related to this release, there have been implemented quite a few of them which changed the way we process data (with Drush and with Cron).
I will try to update README file some time soon to have everything described to eliminate confusion.
Comment #13
bloomt commentedCan we get it patched into the dev version?
Comment #15
veronicaseveryn commentedHas been committed to 7.x-3.x-dev branch.